Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeBuilder initializes a scheme builder SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme is a global function that registers this API group & version to a scheme AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: autoscalingrule.GroupName, Version: "v1"}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type AutoMode ¶
type AutoMode struct { DeltaMetric string `json:"deltaMetric"` ValueMetric string `json:"valueMetric"` Limits Limits `json:"limits"` }
func (*AutoMode) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AutoMode.
func (*AutoMode) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AutoscalingRule ¶
type AutoscalingRule struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec AutoscalingRuleSpec `json:"spec"` }
func (*AutoscalingRule) DeepCopy ¶
func (in *AutoscalingRule) DeepCopy() *AutoscalingRule
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AutoscalingRule.
func (*AutoscalingRule) DeepCopyInto ¶
func (in *AutoscalingRule) DeepCopyInto(out *AutoscalingRule)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AutoscalingRule) DeepCopyObject ¶
func (in *AutoscalingRule) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AutoscalingRuleList ¶
type AutoscalingRuleList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []AutoscalingRule `json:"items"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*AutoscalingRuleList) DeepCopy ¶
func (in *AutoscalingRuleList) DeepCopy() *AutoscalingRuleList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AutoscalingRuleList.
func (*AutoscalingRuleList) DeepCopyInto ¶
func (in *AutoscalingRuleList) DeepCopyInto(out *AutoscalingRuleList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AutoscalingRuleList) DeepCopyObject ¶
func (in *AutoscalingRuleList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AutoscalingRuleSpec ¶
type AutoscalingRuleSpec struct { MetricName string `json:"metricName"` TargetNamespace string `json:"targetNamespace"` Modes Modes `json:"modes"` Priority int32 `json:"priority"` Thresholds Thresholds `json:"thresholds"` AutoMode AutoMode `json:"autoMode"` }
func (*AutoscalingRuleSpec) DeepCopy ¶
func (in *AutoscalingRuleSpec) DeepCopy() *AutoscalingRuleSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AutoscalingRuleSpec.
func (*AutoscalingRuleSpec) DeepCopyInto ¶
func (in *AutoscalingRuleSpec) DeepCopyInto(out *AutoscalingRuleSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Limits ¶
type Limits struct { UpperLimit resource.Quantity `json:"upperLimit"` LowerLimit resource.Quantity `json:"lowerLimit"` DesiredUsage resource.Quantity `json:"desiredUsage"` MaxViolationCount float64 `json:"maxViolationCount"` }
func (*Limits) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Limits.
func (*Limits) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Modes ¶
type Modes struct { UpscalingMode string `json:"upscaling"` DownscalingMode string `json:"downscaling"` }
func (*Modes) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Modes.
func (*Modes) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Thresholds ¶
type Thresholds struct { UpperThreshold resource.Quantity `json:"upperThreshold"` LowerThreshold resource.Quantity `json:"lowerThreshold"` MaxViolationCount float64 `json:"maxViolationCount"` }
func (*Thresholds) DeepCopy ¶
func (in *Thresholds) DeepCopy() *Thresholds
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Thresholds.
func (*Thresholds) DeepCopyInto ¶
func (in *Thresholds) DeepCopyInto(out *Thresholds)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.