Documentation ¶
Index ¶
- func NewActuatorAndOptions(actuatorProto *policyprivatev1.LoadActuator, componentID runtime.ComponentID, ...) (runtime.Component, fx.Option, error)
- func NewConfigSyncOptions(loadSchedulerProto *policylangv1.LoadScheduler, ...) (fx.Option, error)
- func ParseAIADLoadScheduler(aiadLoadScheduler *policylangv1.AIADLoadScheduler, ...) (*runtime.ConfiguredComponent, *policylangv1.NestedCircuit, error)
- func ParseAIMDLoadScheduler(aimdLoadScheduler *policylangv1.AIMDLoadScheduler, ...) (*runtime.ConfiguredComponent, *policylangv1.NestedCircuit, error)
- func ParseLoadScheduler(loadScheduler *policylangv1.LoadScheduler, componentID runtime.ComponentID, ...) (*runtime.ConfiguredComponent, *policylangv1.NestedCircuit, error)
- func ParseRangeDrivenLoadScheduler(rangeDrivenLoadScheduler *policylangv1.RangeDrivenLoadScheduler, ...) (*runtime.ConfiguredComponent, *policylangv1.NestedCircuit, error)
- type Actuator
- func (la *Actuator) DynamicConfigUpdate(event notifiers.Event, unmarshaller config.Unmarshaller)
- func (la *Actuator) Execute(inPortReadings runtime.PortToReading, circuitAPI runtime.CircuitAPI) (runtime.PortToReading, error)
- func (la *Actuator) GetJob() jobs.Job
- func (*Actuator) IsActuator() bool
- func (*Actuator) Name() string
- func (la *Actuator) NotifyCompletion()
- func (la *Actuator) ShortDescription() string
- func (*Actuator) Type() runtime.ComponentType
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) IsActuator ¶
IsActuator implements runtime.Component.
func (*Actuator) NotifyCompletion ¶ added in v2.15.0
func (la *Actuator) NotifyCompletion()
NotifyCompletion implements runtime.BackgroundJob.NotifyCompletion.
func (*Actuator) ShortDescription ¶
ShortDescription implements runtime.Component.
func (*Actuator) Type ¶
func (*Actuator) Type() runtime.ComponentType
Type implements runtime.Component.