actions

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ActionTypeScaleVerticalCPU       = "SCALE_VERTICAL_CPU"
	ActionTypeScaleVerticalMemory    = "SCALE_VERTICAL_MEMORY"
	ActionTypeScaleReplicasNumber    = "SCALE_REPLICAS_NUMBER"
	ActionTypeScaleDataFlowBandwidth = "SCALE_DATAFLOW_BANDWIDTH"
	ActionTypeScaleDataFlowLatency   = "SCALE_DATAFLOW_LATENCY"
	ActionTypeRegionRecommended      = "REGION_RECOMMENDED"
)

set of allowed actions

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionValidator

type ActionValidator struct {
	ParametersValidator ParametersValidator
}

ActionValidator is able to validate the raw parameters

func NewActionValidator

func NewActionValidator(actionTypeSpec v1alpha1.ActionTypeSpec) (validator *ActionValidator, err error)

NewActionValidator returns a validator for the given actionType

func NewDataFlowScalingActionValidator

func NewDataFlowScalingActionValidator() *ActionValidator

NewDataFlowScalingActionValidator function creates a new ActionValidator for DataFlowScaling parameters

func NewRegionRecommendedActionValidator

func NewRegionRecommendedActionValidator() *ActionValidator

NewRegionRecommendedActionValidator function creates a new ActionValidator for RegionRecommended parameters

func NewReplicaScalingActionValidator

func NewReplicaScalingActionValidator() *ActionValidator

NewReplicaScalingActionValidator function creates a new ActionValidator for ReplicaScaling parameters

func NewVerticalScalingActionValidator

func NewVerticalScalingActionValidator() *ActionValidator

NewVerticalScalingActionValidator function creates a new ActionValidator for VerticalScaling parameters

type DataFlowScalingParametersValidator

type DataFlowScalingParametersValidator struct{}

DataFlowScalingParametersValidator is used to define functions for SCALE_DATAFLOW_*

func (DataFlowScalingParametersValidator) ValidateParameters

func (actionType DataFlowScalingParametersValidator) ValidateParameters(parameters v1alpha1.ParameterSpec) (v1alpha1.ParameterSpec, error)

ValidateParameters method parses DataFlowScaling parameters

type ParametersValidator

type ParametersValidator interface {
	ValidateParameters(parameters v1alpha1.ParameterSpec) (v1alpha1.ParameterSpec, error)
}

ParametersValidator defines an interface for the enforcement of requirements on parameters

type RegionRecommendedParametersValidator

type RegionRecommendedParametersValidator struct{}

RegionRecommendedParametersValidator is used to define functions for REGION_RECOMMENDED

func (RegionRecommendedParametersValidator) ValidateParameters

func (actionType RegionRecommendedParametersValidator) ValidateParameters(parameters v1alpha1.ParameterSpec) (v1alpha1.ParameterSpec, error)

ValidateParameters method parses RegionRecommended parameters

type ReplicaScalingParametersValidator

type ReplicaScalingParametersValidator struct{}

ReplicaScalingParametersValidator is used to define functions for SCALE_REPLICAS_NUMBER

func (ReplicaScalingParametersValidator) ValidateParameters

func (actionType ReplicaScalingParametersValidator) ValidateParameters(parameters v1alpha1.ParameterSpec) (v1alpha1.ParameterSpec, error)

ValidateParameters method parses ReplicaScaling parameters

type VerticalScalingParametersValidator

type VerticalScalingParametersValidator struct{}

VerticalScalingParametersValidator is used to define functions for SCALE_VERTICAL_*

func (VerticalScalingParametersValidator) ValidateParameters

func (actionType VerticalScalingParametersValidator) ValidateParameters(parameters v1alpha1.ParameterSpec) (v1alpha1.ParameterSpec, error)

ValidateParameters method parses VerticalScaling parameters

Jump to

Keyboard shortcuts

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