25typedef uint64_t GenerationNumber;
64typedef std::list<Generation> Generations;
84std::pair<Generations, std::optional<GenerationNumber>> findGenerations(
Path profile);
114void deleteGeneration(
const Path & profile, GenerationNumber gen);
130void deleteGenerations(
131 const Path & profile,
132 const std::set<GenerationNumber> & gensToDelete,
148void deleteGenerationsGreaterThan(
149 const Path & profile, GenerationNumber max,
bool dryRun, NeverAsync = {}
160void deleteOldGenerations(
const Path & profile,
bool dryRun,
NeverAsync = {});
171void deleteGenerationsOlderThan(
const Path & profile, time_t t,
bool dryRun,
NeverAsync = {});
178time_t parseOlderThanTimeSpec(std::string_view timeSpec);
186void switchLink(
Path link,
Path target);
192void switchGeneration(
193 const Path & profile,
194 std::optional<GenerationNumber> dstGen,
215std::string optimisticLockProfile(
const Path & profile);
226Path rootProfilesDir();
231Path defaultChannelsDir();
236Path rootChannelsDir();
243Path getDefaultProfile();
Definition local-fs-store.hh:36
Definition pathlocks.hh:36
Definition profiles.hh:34
time_t creationTime
Definition profiles.hh:58
GenerationNumber number
Definition profiles.hh:39
Path path
Definition profiles.hh:51
std::string Path
Definition types.hh:28