Documentation ¶
Index ¶
- Constants
- type ActionValidator
- func NewActionValidator(actionTypeSpec v1alpha1.ActionTypeSpec) (validator *ActionValidator, err error)
- func NewDataFlowScalingActionValidator() *ActionValidator
- func NewRegionRecommendedActionValidator() *ActionValidator
- func NewReplicaScalingActionValidator() *ActionValidator
- func NewVerticalScalingActionValidator() *ActionValidator
- type DataFlowScalingParametersValidator
- type ParametersValidator
- type RegionRecommendedParametersValidator
- type ReplicaScalingParametersValidator
- type VerticalScalingParametersValidator
Constants ¶
const ( ActionTypeScaleVerticalCPULimit = "SCALE_VERTICAL_CPU_LIMIT" ActionTypeScaleVerticalCPURequests = "SCALE_VERTICAL_CPU_REQUESTS" ActionTypeScaleVerticalMemoryLimit = "SCALE_VERTICAL_MEMORY_LIMIT" ActionTypeScaleVerticalMemoryRequests = "SCALE_VERTICAL_MEMORY_REQUESTS" 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