mirror of
https://github.com/zrepl/zrepl.git
synced 2024-11-27 10:55:01 +01:00
14 lines
309 B
Go
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{}
|
|
}
|