Documentation ¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API. +groupName=cerebral.containership.io +groupGoName=Cerebral
Index ¶
- Variables
- func Resource(resource string) schema.GroupResource
- type AutoscalingEngine
- type AutoscalingEngineList
- type AutoscalingEngineSpec
- type AutoscalingGroup
- type AutoscalingGroupList
- type AutoscalingGroupSpec
- type AutoscalingGroupStatus
- type AutoscalingPolicy
- type AutoscalingPolicyList
- type AutoscalingPolicySpec
- type MetricsBackend
- type MetricsBackendList
- type MetricsBackendSpec
- type ScalingPolicy
- type ScalingPolicyConfiguration
- type ScalingStrategy
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeBuilder is used to add functions to the API dynamically SchemeBuilder runtime.SchemeBuilder // AddToScheme adds functions to the Scheme AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: cerebralcontainershipio.GroupName, Version: "v1alpha1"}
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 AutoscalingEngine ¶
type AutoscalingEngine struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec AutoscalingEngineSpec `json:"spec"` }
AutoscalingEngine describes an engine to use for autoscaling
func (*AutoscalingEngine) DeepCopy ¶
func (in *AutoscalingEngine) DeepCopy() *AutoscalingEngine
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AutoscalingEngine.
func (*AutoscalingEngine) DeepCopyInto ¶
func (in *AutoscalingEngine) DeepCopyInto(out *AutoscalingEngine)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AutoscalingEngine) DeepCopyObject ¶
func (in *AutoscalingEngine) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AutoscalingEngineList ¶
type AutoscalingEngineList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []AutoscalingEngine `json:"items"` }
AutoscalingEngineList is a list of AutoscalingEngines
func (*AutoscalingEngineList) DeepCopy ¶
func (in *AutoscalingEngineList) DeepCopy() *AutoscalingEngineList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AutoscalingEngineList.
func (*AutoscalingEngineList) DeepCopyInto ¶
func (in *AutoscalingEngineList) DeepCopyInto(out *AutoscalingEngineList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AutoscalingEngineList) DeepCopyObject ¶
func (in *AutoscalingEngineList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AutoscalingEngineSpec ¶
type AutoscalingEngineSpec struct { Type string `json:"type"` Configuration map[string]string `json:"configuration"` }
AutoscalingEngineSpec describes the spec for the AutoscalingEngine
func (*AutoscalingEngineSpec) DeepCopy ¶
func (in *AutoscalingEngineSpec) DeepCopy() *AutoscalingEngineSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AutoscalingEngineSpec.
func (*AutoscalingEngineSpec) DeepCopyInto ¶
func (in *AutoscalingEngineSpec) DeepCopyInto(out *AutoscalingEngineSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AutoscalingGroup ¶
type AutoscalingGroup struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec AutoscalingGroupSpec `json:"spec"` Status AutoscalingGroupStatus `json:"status"` }
AutoscalingGroup describes a node group for autoscaling
func (*AutoscalingGroup) DeepCopy ¶
func (in *AutoscalingGroup) DeepCopy() *AutoscalingGroup
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AutoscalingGroup.
func (*AutoscalingGroup) DeepCopyInto ¶
func (in *AutoscalingGroup) DeepCopyInto(out *AutoscalingGroup)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AutoscalingGroup) DeepCopyObject ¶
func (in *AutoscalingGroup) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AutoscalingGroupList ¶
type AutoscalingGroupList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []AutoscalingGroup `json:"items"` }
AutoscalingGroupList is a list of autoscaling groups.
func (*AutoscalingGroupList) DeepCopy ¶
func (in *AutoscalingGroupList) DeepCopy() *AutoscalingGroupList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AutoscalingGroupList.
func (*AutoscalingGroupList) DeepCopyInto ¶
func (in *AutoscalingGroupList) DeepCopyInto(out *AutoscalingGroupList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AutoscalingGroupList) DeepCopyObject ¶
func (in *AutoscalingGroupList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AutoscalingGroupSpec ¶
type AutoscalingGroupSpec struct { NodeSelector map[string]string `json:"nodeSelector"` Policies []string `json:"policies"` Engine string `json:"engine"` CooldownPeriod int `json:"cooldownPeriod"` Suspended bool `json:"suspended"` MinNodes int `json:"minNodes"` MaxNodes int `json:"maxNodes"` ScalingStrategy *ScalingStrategy `json:"scalingStrategy,omitempty"` }
AutoscalingGroupSpec is the spec for a autoscaling group
func (*AutoscalingGroupSpec) DeepCopy ¶
func (in *AutoscalingGroupSpec) DeepCopy() *AutoscalingGroupSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AutoscalingGroupSpec.
func (*AutoscalingGroupSpec) DeepCopyInto ¶
func (in *AutoscalingGroupSpec) DeepCopyInto(out *AutoscalingGroupSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AutoscalingGroupStatus ¶
type AutoscalingGroupStatus struct { // LastUpdatedAt is a Unix time, time.Time is not a valid type for code gen LastUpdatedAt metav1.Time `json:"lastUpdatedAt"` }
AutoscalingGroupStatus is the status for a autoscaling group
func (*AutoscalingGroupStatus) DeepCopy ¶
func (in *AutoscalingGroupStatus) DeepCopy() *AutoscalingGroupStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AutoscalingGroupStatus.
func (*AutoscalingGroupStatus) DeepCopyInto ¶
func (in *AutoscalingGroupStatus) DeepCopyInto(out *AutoscalingGroupStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AutoscalingPolicy ¶
type AutoscalingPolicy struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec AutoscalingPolicySpec `json:"spec"` }
AutoscalingPolicy describes a node group for autoscaling
func (*AutoscalingPolicy) DeepCopy ¶
func (in *AutoscalingPolicy) DeepCopy() *AutoscalingPolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AutoscalingPolicy.
func (*AutoscalingPolicy) DeepCopyInto ¶
func (in *AutoscalingPolicy) DeepCopyInto(out *AutoscalingPolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AutoscalingPolicy) DeepCopyObject ¶
func (in *AutoscalingPolicy) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AutoscalingPolicyList ¶
type AutoscalingPolicyList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []AutoscalingPolicy `json:"items"` }
AutoscalingPolicyList is a list of autoscaling groups.
func (*AutoscalingPolicyList) DeepCopy ¶
func (in *AutoscalingPolicyList) DeepCopy() *AutoscalingPolicyList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AutoscalingPolicyList.
func (*AutoscalingPolicyList) DeepCopyInto ¶
func (in *AutoscalingPolicyList) DeepCopyInto(out *AutoscalingPolicyList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AutoscalingPolicyList) DeepCopyObject ¶
func (in *AutoscalingPolicyList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AutoscalingPolicySpec ¶
type AutoscalingPolicySpec struct { MetricsBackend string `json:"metricsBackend"` Metric string `json:"metric"` MetricConfiguration map[string]string `json:"metricConfiguration"` ScalingPolicy ScalingPolicy `json:"scalingPolicy"` PollInterval int `json:"pollInterval"` SamplePeriod int `json:"samplePeriod"` }
AutoscalingPolicySpec is the spec for a autoscaling group
func (*AutoscalingPolicySpec) DeepCopy ¶
func (in *AutoscalingPolicySpec) DeepCopy() *AutoscalingPolicySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AutoscalingPolicySpec.
func (*AutoscalingPolicySpec) DeepCopyInto ¶
func (in *AutoscalingPolicySpec) DeepCopyInto(out *AutoscalingPolicySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MetricsBackend ¶
type MetricsBackend struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec MetricsBackendSpec `json:"spec"` }
MetricsBackend describes a source for metrics for autoscaling
func (*MetricsBackend) DeepCopy ¶
func (in *MetricsBackend) DeepCopy() *MetricsBackend
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricsBackend.
func (*MetricsBackend) DeepCopyInto ¶
func (in *MetricsBackend) DeepCopyInto(out *MetricsBackend)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MetricsBackend) DeepCopyObject ¶
func (in *MetricsBackend) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MetricsBackendList ¶
type MetricsBackendList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []MetricsBackend `json:"items"` }
MetricsBackendList is a list of MetricsBackends.
func (*MetricsBackendList) DeepCopy ¶
func (in *MetricsBackendList) DeepCopy() *MetricsBackendList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricsBackendList.
func (*MetricsBackendList) DeepCopyInto ¶
func (in *MetricsBackendList) DeepCopyInto(out *MetricsBackendList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*MetricsBackendList) DeepCopyObject ¶
func (in *MetricsBackendList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type MetricsBackendSpec ¶
type MetricsBackendSpec struct { Type string `json:"type"` Configuration map[string]string `json:"configuration"` }
MetricsBackendSpec is the spec for a metrics backend
func (*MetricsBackendSpec) DeepCopy ¶
func (in *MetricsBackendSpec) DeepCopy() *MetricsBackendSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricsBackendSpec.
func (*MetricsBackendSpec) DeepCopyInto ¶
func (in *MetricsBackendSpec) DeepCopyInto(out *MetricsBackendSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ScalingPolicy ¶
type ScalingPolicy struct { ScaleUp *ScalingPolicyConfiguration `json:"scaleUp,omitempty"` ScaleDown *ScalingPolicyConfiguration `json:"scaleDown,omitempty"` }
ScalingPolicy holds the policy configurations for scaling up and down
func (*ScalingPolicy) DeepCopy ¶
func (in *ScalingPolicy) DeepCopy() *ScalingPolicy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScalingPolicy.
func (*ScalingPolicy) DeepCopyInto ¶
func (in *ScalingPolicy) DeepCopyInto(out *ScalingPolicy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ScalingPolicyConfiguration ¶
type ScalingPolicyConfiguration struct { Threshold float64 `json:"threshold"` ComparisonOperator string `json:"comparisonOperator"` AdjustmentType string `json:"adjustmentType"` AdjustmentValue float64 `json:"adjustmentValue"` }
A ScalingPolicyConfiguration defines the criterion for triggering a scale event
func (*ScalingPolicyConfiguration) DeepCopy ¶
func (in *ScalingPolicyConfiguration) DeepCopy() *ScalingPolicyConfiguration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScalingPolicyConfiguration.
func (*ScalingPolicyConfiguration) DeepCopyInto ¶
func (in *ScalingPolicyConfiguration) DeepCopyInto(out *ScalingPolicyConfiguration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ScalingStrategy ¶
ScalingStrategy defines the strategy that should be used when scaling up and down
func (*ScalingStrategy) DeepCopy ¶
func (in *ScalingStrategy) DeepCopy() *ScalingStrategy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScalingStrategy.
func (*ScalingStrategy) DeepCopyInto ¶
func (in *ScalingStrategy) DeepCopyInto(out *ScalingStrategy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.