scheduling

package
v0.0.0-...-bf7e782 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidScheduleType   = errors.New("invalid schedule type")
	ErrInvalidConditionValue = errors.New("invalid condition value")
	ErrInvalidReleaseID      = errors.New("invalid release ID")

	ErrNonexistentSchedulingRule = errors.New("nonexistent scheduling rule")
)

Functions

func GetScheduledDevices

func GetScheduledDevices(devices []models.Device, schedulingRule models.SchedulingRule) ([]models.ScheduledDevice, error)

func IsApplicationScheduled

func IsApplicationScheduled(device models.Device, schedulingRule models.SchedulingRule) (bool, *models.ScheduledDevice, error)

func SchedulingRuleFromQuery

func SchedulingRuleFromQuery(query map[string][]string) (*models.SchedulingRule, error)

func ValidateSchedulingRule

func ValidateSchedulingRule(schedulingRule models.SchedulingRule, releaseIdExists func(string) (bool, error)) (
	validationErr error,
	err error,
)

Types

This section is empty.

Jump to

Keyboard shortcuts

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