Fix #2: support pruning and forget via snapshot policies

This commit is contained in:
Eliot Berriot
2019-12-02 14:20:19 +01:00
parent 652158d1ed
commit 57ffa1e3fa
5 changed files with 144 additions and 6 deletions

View File

@@ -62,9 +62,21 @@ export type Backend =
export type Backends = { [name: string]: Backend }
export type ForgetPolicy = {
last?: number,
hourly?: number,
daily?: number,
weekly?: number,
monthly?: number,
yearly?: number,
within?: string,
tags?: string[],
}
export type Location = {
from: string
to: string | string[]
keep?: ForgetPolicy
}
export type Locations = { [name: string]: Location }