Versions in this module Expand all Collapse all v0 v0.31.1 Sep 18, 2020 v0.30.0 Jul 22, 2020 v0.29.0 Jul 6, 2020 v0.28.0 Jul 2, 2020 v0.27.0 Mar 27, 2020 v0.26.0 Mar 12, 2020 v0.25.0 Mar 6, 2020 v0.24.0 Feb 9, 2020 v0.23.0 Feb 4, 2020 v0.22.0 Nov 6, 2019 v0.21.4 Sep 10, 2019 v0.21.3 Aug 10, 2019 Changes in this version + const DailyRetain + const DailyType + const MonthlyRetain + const MonthlyType + const PeriodicType + const WeeklyRetain + const WeeklyType + var ParseCLI = map[string]func(string) (RetainIntervalSpec, error) + func IntervalType(interval Interval) string + func IsIntervalType(t string) bool + func ParseScheduleAndPolicies(scheduleString string) ([]RetainInterval, *PolicyTags, error) + func SamePolicyTags(p1, p2 *PolicyTags) bool + func ScheduleIntervalSummary(items []Interval, policyTags *PolicyTags) string + func ScheduleString(items []RetainIntervalSpec, p *PolicyTags) (string, error) + func ScheduleStringRetainInv(intvs []RetainInterval, p *PolicyTags) (string, error) + func ScheduleSummary(items []RetainInterval, policyTags *PolicyTags) string + func SpeedUp() + type Interval interface + IntervalType func() string + Spec func() IntervalSpec + String func() string + func Daily(hour int, minute int) Interval + func Monthly(day int, hour int, minute int) Interval + func Periodic(period time.Duration) Interval + func Weekly(dow time.Weekday, hour int, minute int) Interval + type IntervalSpec struct + Day int + Freq string + Hour int + Minute int + Month int + Period uint64 + Weekday int + type PolicyTags struct + Names []string + func NewPolicyTags(policies string) (*PolicyTags, error) + func NewPolicyTagsFromSlice(policies []string) (*PolicyTags, error) + func ParsePolicyTags(policyTagsStr string) (*PolicyTags, error) + func (p *PolicyTags) String() string + func (p *PolicyTags) Summary() string + type RetainInterval interface + RetainIntervalSpec func() RetainIntervalSpec + RetainNumber func() uint32 + func NewRetainInterval(iv Interval) RetainInterval + func ParseSchedule(schedule string) ([]RetainInterval, error) + func SetupIntvWithDefaults(intvs []RetainInterval) []RetainInterval + type RetainIntervalImpl struct + func (p RetainIntervalImpl) IntervalType() string + func (p RetainIntervalImpl) RetainIntervalSpec() RetainIntervalSpec + func (p RetainIntervalImpl) RetainNumber() uint32 + func (p RetainIntervalImpl) Spec() IntervalSpec + func (p RetainIntervalImpl) String() string + type RetainIntervalSpec struct + Retain uint32 + func ParsePeriodic(input string) (RetainIntervalSpec, error)