MCPcopy
hub / github.com/wal-g/wal-g / FindTargetRetainAfter

Method FindTargetRetainAfter

internal/delete_handler.go:268–275  ·  view source on GitHub ↗

TODO: unit tests

(retentionCount int, afterStr string, modifier int)

Source from the content-addressed store, hash-verified

266
267// TODO: unit tests
268func (h *DeleteHandler) FindTargetRetainAfter(retentionCount int, afterStr string, modifier int) (BackupObject, error) {
269 timeLine, err := time.Parse(time.RFC3339, afterStr)
270 if err == nil {
271 return h.FindTargetRetainAfterTime(retentionCount, timeLine, modifier)
272 }
273
274 return h.FindTargetRetainAfterName(retentionCount, afterStr, modifier)
275}
276
277// TODO: unit tests
278func (h *DeleteHandler) FindTargetRetainAfterName(

Callers 2

Calls 2

Tested by

no test coverage detected