Documentation ¶ Index ¶ func Rotate(ctx context.Context, s store.RevisionGetter, rev store.Revision, ...) (store.RevisionList, error) type Duration func (d Duration) Duration() time.Duration func (d Duration) MarshalJSON() ([]byte, error) func (d *Duration) UnmarshalJSON(b []byte) error type RPOPolicy Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Rotate ¶ func Rotate(ctx context.Context, s store.RevisionGetter, rev store.Revision, policy RPOPolicy) (store.RevisionList, error) Types ¶ type Duration ¶ type Duration time.Duration func (Duration) Duration ¶ func (d Duration) Duration() time.Duration func (Duration) MarshalJSON ¶ func (d Duration) MarshalJSON() ([]byte, error) func (*Duration) UnmarshalJSON ¶ func (d *Duration) UnmarshalJSON(b []byte) error type RPOPolicy ¶ type RPOPolicy struct { PurgeOlderThan Duration `json:"purgeOlderThan"` RPO Duration `json:"rpo"` } TODO maybe add some helper methods to this struct so users of it don't have to implement their own methods that determine whether a policy applies to them. e.g. RPOPolicy.ShouldPurge(Revision) Source Files ¶ View all Source files rpo.go Click to show internal directories. Click to hide internal directories.