platform

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RdtActuator

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

RdtActuator represents the actual RDT actuator.

func NewRdtActuator

func NewRdtActuator(client kubernetes.Interface, tracer controller.Tracer, cfg RdtConfig) *RdtActuator

NewRdtActuator initializes a new actuator.

func (RdtActuator) Effect

func (rdt RdtActuator) Effect(state *common.State, profiles map[string]common.Profile)

func (RdtActuator) Group

func (rdt RdtActuator) Group() string

func (RdtActuator) Name

func (rdt RdtActuator) Name() string

func (RdtActuator) NextState

func (rdt RdtActuator) NextState(state *common.State, goal *common.State, profiles map[string]common.Profile) ([]common.State, []float64, []planner.Action)

func (RdtActuator) Perform

func (rdt RdtActuator) Perform(state *common.State, plan []planner.Action)

type RdtConfig

type RdtConfig struct {
	Interpreter           string   `json:"interpreter"`
	Analytics             string   `json:"analytics_script"`
	Prediction            string   `json:"prediction_script"`
	Options               []string `json:"options"`
	Port                  int      `json:"port"`
	Endpoint              string   `json:"endpoint"`
	MongoEndpoint         string   `json:"mongo_endpoint"`
	PluginManagerEndpoint string   `json:"plugin_manager_endpoint"`
	PluginManagerPort     int      `json:"plugin_manager_port"`
}

RdtConfig holds the specific configs for this actuator.

Jump to

Keyboard shortcuts

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