zrepl/pruning
Christian Schwarz 428a60870a pruning: cleanup retention grid impl + tests + correct docs
package is now at 95% code coverage and the additional tests codify
all behavior specified in the docs

There is a slight change in behavior:
Intervals are now [duration) instead of (duration].
If the leftmost interval is not keep=all, the most recently created
snapshot will be destroyed if there are other snapshots within
that first interval.
Since we recommend keep=all all over the docs, and zrepl 0.3
will put holds on that snapshot if it is being replicated,
I feel like this is an acceptable change in behavior.

refs #292
fixup of 0bbe2befce
2020-09-02 22:45:44 +02:00
..
retentiongrid pruning: cleanup retention grid impl + tests + correct docs 2020-09-02 22:45:44 +02:00
keep_grid.go pruning: cleanup retention grid impl + tests + correct docs 2020-09-02 22:45:44 +02:00
keep_helpers_test.go format source tree using goimports 2019-03-22 19:41:12 +01:00
keep_helpers.go [#292] pruning: grid: add all snapshots that do not match the regex to the rule's destroy list 2020-09-02 22:45:44 +02:00
keep_last_n_test.go [#292] pruning: simplify table test driver 2020-09-02 22:45:44 +02:00
keep_last_n.go [#292] pruning: last_n: use snap name as fallback when creation is equal 2020-09-02 22:45:44 +02:00
keep_not_replicated_test.go pruning: fix tests + implement 'not_replicated' and 'keep_regex' keep rule 2018-08-30 11:46:47 +02:00
keep_not_replicated.go run golangci-lint and apply suggested fixes 2019-03-27 13:12:26 +01:00
keep_regex_test.go pruning: add 'Negate' option to KeepRegex and expose it in config 2018-11-16 12:21:54 +01:00
keep_regex.go format source tree using goimports 2019-03-22 19:41:12 +01:00
pruning_test.go [#292] pruning: grid: add all snapshots that do not match the regex to the rule's destroy list 2020-09-02 22:45:44 +02:00
pruning.go run golangci-lint and apply suggested fixes 2019-03-27 13:12:26 +01:00