Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Schedule ¶
type Schedule struct { SpecReplicas []SpecReplicas Name string Namespace string TargetGroupVersionKind schema.GroupVersionKind }
Schedule is a high-level way of schedule and scaling action
type ScheduleLoader ¶
type ScheduleLoader interface {
Load(typemeta *v1.TypeMeta, objmeta *v1.ObjectMeta) (*Schedule, error)
}
ScheduleLoader is the interface that wraps the Load method. Load loads the name of the target to operate on, the number to scale, and the time from the annotations included in the kubernetes manifest.
func NewDefaultScheduleLoader ¶
func NewDefaultScheduleLoader(annotationParser annotations.Parser) ScheduleLoader
NewDefaultScheduleLoader return defaultScheduleLoader object with the given annotation parser.
type SpecReplicas ¶
type SpecReplicas struct { Spec string `json:"spec,omitempty"` Replicas uint `json:"replicas,omitempty"` }
func (*SpecReplicas) Validate ¶
func (sr *SpecReplicas) Validate() error
Click to show internal directories.
Click to hide internal directories.