Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KeepGrid ¶
type KeepGrid struct {
// contains filtered or unexported fields
}
KeepGrid fits snapshots that match a given regex into a retentiongrid.Grid, uses the most recent snapshot among those that match the regex as 'now', and deletes all snapshots that do not fit the grid specification.
func MustNewKeepGrid ¶ added in v0.7.4
type KeepLastN ¶
type KeepLastN struct {
// contains filtered or unexported fields
}
func MustKeepLastN ¶ added in v0.7.4
type KeepNotReplicated ¶
type KeepNotReplicated struct{}
func NewKeepNotReplicated ¶
func NewKeepNotReplicated() *KeepNotReplicated
func (*KeepNotReplicated) KeepRule ¶
func (*KeepNotReplicated) KeepRule(snaps []Snapshot) (destroyList []Snapshot)
type KeepRegex ¶
type KeepRegex struct {
// contains filtered or unexported fields
}
func MustKeepRegex ¶
type KeepRule ¶
func RuleFromConfig ¶
func RuleFromConfig(in config.PruningEnum) (KeepRule, error)
func RulesFromConfig ¶
func RulesFromConfig(in []config.PruningEnum) (rules []KeepRule, err error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.