rpo

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL