Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetTimeZone ¶
SetTimeZone will configure the timezone in which schedules strings are defined.
Types ¶
type Schedule ¶
type Schedule struct { Description string `json:"Description"` // contains filtered or unexported fields }
Schedule is the object that describes the schedule. It contains one read-only attribute "Description". To actually use it, use one of the public methods on this object.
func (*Schedule) GetNextTrigger ¶
GetNextTrigger will return the time the next trigger that occurs after given time (now) should occur according to this schedule.
func (*Schedule) GetReplicas ¶
GetReplicas will return the number of replicas that should be applied according to the schedule.
func (*Schedule) GetState ¶
GetState will return the state that should be applied according to the schedule.
func (*Schedule) GetTriggers ¶
GetTriggers will return the reference codes of the triggers that should be triggered.
func (*Schedule) HasReplicas ¶
HasReplicas checks if the given schedule has a replicas settings that should be applied.