loadscheduler

package
v2.18.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewActuatorAndOptions

func NewActuatorAndOptions(
	actuatorProto *policyprivatev1.LoadActuator,
	componentID 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 ParseAIADLoadScheduler added in v2.17.0

func ParseAIADLoadScheduler(
	aiadLoadScheduler *policylangv1.AIADLoadScheduler,
	componentID runtime.ComponentID,
) (*runtime.ConfiguredComponent, *policylangv1.NestedCircuit, error)

ParseAIADLoadScheduler parses a AIADLoadScheduler component and returns a configured component and a nested circuit.

func ParseAIMDLoadScheduler added in v2.17.0

func ParseAIMDLoadScheduler(
	aimdLoadScheduler *policylangv1.AIMDLoadScheduler,
	componentID runtime.ComponentID,
) (*runtime.ConfiguredComponent, *policylangv1.NestedCircuit, error)

ParseAIMDLoadScheduler parses a AIMDLoadScheduler component and returns a configured component and a nested circuit.

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.

func ParseRangeDrivenLoadScheduler added in v2.17.0

func ParseRangeDrivenLoadScheduler(
	rangeDrivenLoadScheduler *policylangv1.RangeDrivenLoadScheduler,
	componentID runtime.ComponentID,
) (*runtime.ConfiguredComponent, *policylangv1.NestedCircuit, error)

ParseRangeDrivenLoadScheduler parses a range driven load scheduler component.

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, circuitAPI runtime.CircuitAPI) (runtime.PortToReading, error)

Execute implements runtime.Component.Execute.

func (*Actuator) GetJob added in v2.15.0

func (la *Actuator) GetJob() jobs.Job

GetJob implements runtime.BackgroundJob.GetJob.

func (*Actuator) IsActuator

func (*Actuator) IsActuator() bool

IsActuator implements runtime.Component.

func (*Actuator) Name

func (*Actuator) Name() string

Name implements runtime.Component.

func (*Actuator) NotifyCompletion added in v2.15.0

func (la *Actuator) NotifyCompletion()

NotifyCompletion implements runtime.BackgroundJob.NotifyCompletion.

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