zrepl/internal/pruning/keep_not_replicated.go
2024-10-18 19:21:17 +02:00

14 lines
309 B
Go

package pruning
type KeepNotReplicated struct{}
func (*KeepNotReplicated) KeepRule(snaps []Snapshot) (destroyList []Snapshot) {
return filterSnapList(snaps, func(snapshot Snapshot) bool {
return snapshot.Replicated()
})
}
func NewKeepNotReplicated() *KeepNotReplicated {
return &KeepNotReplicated{}
}