Documentation ¶ Index ¶ Constants Variables type Period func New(period *common.ScalerPeriod) (*Period, error) Constants ¶ View Source const ( PeriodFixedName = "fixed" PeriodRecurringName = "recurring" ) Variables ¶ View Source var ( ErrBadDay = errors.New("invalid day notation") ErrFixedTimeFormat = errors.New("bad time format for fixed period") ErrRecurringTimeFormat = errors.New("bad time format for recurring period") ) Functions ¶ This section is empty. Types ¶ type Period ¶ type Period struct { Period *common.RecurringPeriod Type string IsActive bool Hash string GetStartTime time.Time GetEndTime time.Time Once *bool MinReplicas *int32 MaxReplicas *int32 } func New ¶ func New(period *common.ScalerPeriod) (*Period, error) Source Files ¶ View all Source files consts.go period.go types.go vars.go Click to show internal directories. Click to hide internal directories.