period

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

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