Documentation
¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the gcp v1alpha1 API group +kubebuilder:object:generate=true +groupName=gcp.cloudscaler.io
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "gcp.cloudscaler.io", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type Scaler ¶
type Scaler struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ScalerSpec `json:"spec,omitempty"` Status common.ScalerStatus `json:"status,omitempty"` }
Scaler is the Schema for the scalers API
func (*Scaler) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Scaler.
func (*Scaler) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Scaler) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ScalerList ¶
type ScalerList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Scaler `json:"items"` }
ScalerList contains a list of Scaler
func (*ScalerList) DeepCopy ¶
func (in *ScalerList) DeepCopy() *ScalerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScalerList.
func (*ScalerList) DeepCopyInto ¶
func (in *ScalerList) DeepCopyInto(out *ScalerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ScalerList) DeepCopyObject ¶
func (in *ScalerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ScalerSpec ¶
type ScalerSpec struct { // dry-run mode DryRun bool `json:"dryRun,omitempty"` // Time period to scale Periods []*common.ScalerPeriod `json:"periods"` }
ScalerSpec defines the desired state of Scaler
func (*ScalerSpec) DeepCopy ¶
func (in *ScalerSpec) DeepCopy() *ScalerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ScalerSpec.
func (*ScalerSpec) DeepCopyInto ¶
func (in *ScalerSpec) DeepCopyInto(out *ScalerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.