finish pruner implementation

This commit is contained in:
Christian Schwarz
2018-08-29 19:00:45 +02:00
parent 0de17fd051
commit a2aa8e7bd7
8 changed files with 574 additions and 0 deletions
+1
View File
@@ -14,6 +14,7 @@ type Snapshot interface {
Date() time.Time
}
// The returned snapshot list is guaranteed to only contains elements of input parameter snaps
func PruneSnapshots(snaps []Snapshot, keepRules []KeepRule) []Snapshot {
if len(keepRules) == 0 {