Documentation ¶
Index ¶
- func NewConcurrencyLimiterOptions(concurrencyLimiterProto *policylangv1.ConcurrencyLimiter, ...) (fx.Option, string, error)
- func NewLoadActuatorAndOptions(loadActuatorProto *policylangv1.LoadActuator, componentIndex int, ...) (runtime.Component, fx.Option, error)
- func NewSchedulerAndOptions(schedulerProto *policylangv1.Scheduler, componentIndex int, ...) (runtime.Component, fx.Option, error)
- type LoadActuator
- func (la *LoadActuator) DynamicConfigUpdate(event notifiers.Event, unmarshaller config.Unmarshaller)
- func (la *LoadActuator) Execute(inPortReadings runtime.PortToValue, tickInfo runtime.TickInfo) (runtime.PortToValue, error)
- func (*LoadActuator) Name() string
- func (*LoadActuator) Type() runtime.ComponentType
- type Scheduler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewConcurrencyLimiterOptions ¶
func NewConcurrencyLimiterOptions( concurrencyLimiterProto *policylangv1.ConcurrencyLimiter, componentStackIndex int, policyReadAPI iface.Policy, ) (fx.Option, string, error)
NewConcurrencyLimiterOptions creates fx options for ConcurrencyLimiter and also returns the agent group name associated with it.
func NewLoadActuatorAndOptions ¶ added in v0.7.0
func NewLoadActuatorAndOptions( loadActuatorProto *policylangv1.LoadActuator, componentIndex int, policyReadAPI iface.Policy, agentGroup string, ) (runtime.Component, fx.Option, error)
NewLoadActuatorAndOptions creates load actuator and its fx options.
Types ¶
type LoadActuator ¶ added in v0.7.0
type LoadActuator struct {
// contains filtered or unexported fields
}
LoadActuator struct.
func (*LoadActuator) DynamicConfigUpdate ¶ added in v0.7.0
func (la *LoadActuator) DynamicConfigUpdate(event notifiers.Event, unmarshaller config.Unmarshaller)
DynamicConfigUpdate finds the dynamic config and syncs the decision to agent.
func (*LoadActuator) Execute ¶ added in v0.7.0
func (la *LoadActuator) Execute(inPortReadings runtime.PortToValue, tickInfo runtime.TickInfo) (runtime.PortToValue, error)
Execute implements runtime.Component.Execute.
func (*LoadActuator) Name ¶ added in v0.14.0
func (*LoadActuator) Name() string
Name implements runtime.Component.
func (*LoadActuator) Type ¶ added in v0.14.0
func (*LoadActuator) Type() runtime.ComponentType
Type implements runtime.Component.
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
Scheduler is part of the concurrency control component stack.
func (*Scheduler) DynamicConfigUpdate ¶ added in v0.4.0
func (s *Scheduler) DynamicConfigUpdate(event notifiers.Event, unmarshaller config.Unmarshaller)
DynamicConfigUpdate is a no-op for this component.
func (*Scheduler) Execute ¶
func (s *Scheduler) Execute(inPortReadings runtime.PortToValue, tickInfo runtime.TickInfo) (runtime.PortToValue, error)
Execute implements runtime.Component.Execute.
func (*Scheduler) Type ¶ added in v0.14.0
func (*Scheduler) Type() runtime.ComponentType
Type implements runtime.Component.
Click to show internal directories.
Click to hide internal directories.