loadscheduler

package
v2.12.0 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewActuatorAndOptions

func NewActuatorAndOptions(
	actuatorProto *policyprivatev1.LoadActuator,
	_ runtime.ComponentID,
	policyReadAPI iface.Policy,
) (runtime.Component, fx.Option, error)

NewActuatorAndOptions creates load actuator and its fx options.

func NewConfigSyncOptions

func NewConfigSyncOptions(
	loadSchedulerProto *policylangv1.LoadScheduler,
	componentID runtime.ComponentID,
	policyReadAPI iface.Policy,
) (fx.Option, error)

NewConfigSyncOptions creates fx options for syncing LoadScheduler objects with agent groups.

func ParseAdaptiveLoadScheduler

func ParseAdaptiveLoadScheduler(
	adaptiveLoadScheduler *policylangv1.AdaptiveLoadScheduler,
	componentID runtime.ComponentID,
) (*runtime.ConfiguredComponent, *policylangv1.NestedCircuit, error)

ParseAdaptiveLoadScheduler parses and returns nested circuit representation of AdaptiveLoadScheduler.

func ParseLoadScheduler

func ParseLoadScheduler(
	loadScheduler *policylangv1.LoadScheduler,
	componentID runtime.ComponentID,
	policyReadAPI iface.Policy,
) (*runtime.ConfiguredComponent, *policylangv1.NestedCircuit, error)

ParseLoadScheduler parses a load scheduler from a spec.

Types

type Actuator

type Actuator struct {
	// contains filtered or unexported fields
}

Actuator struct.

func (*Actuator) DynamicConfigUpdate

func (la *Actuator) DynamicConfigUpdate(event notifiers.Event, unmarshaller config.Unmarshaller)

DynamicConfigUpdate implements runtime.Component.DynamicConfigUpdate.

func (*Actuator) Execute

func (la *Actuator) Execute(inPortReadings runtime.PortToReading, tickInfo runtime.TickInfo) (runtime.PortToReading, error)

Execute implements runtime.Component.Execute.

func (*Actuator) IsActuator

func (*Actuator) IsActuator() bool

IsActuator implements runtime.Component.

func (*Actuator) Name

func (*Actuator) Name() string

Name implements runtime.Component.

func (*Actuator) ShortDescription

func (la *Actuator) ShortDescription() string

ShortDescription implements runtime.Component.

func (*Actuator) Type

func (*Actuator) Type() runtime.ComponentType

Type implements runtime.Component.

Jump to

Keyboard shortcuts

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