Documentation ¶
Overview ¶
Package v1 is the v1 version of the API. +groupName=cronhpa.shareit.com
Index ¶
Constants ¶
const ( HpaTypeForNative = "native" HpaTypeForConfig = "config" )
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: cronhpa.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 CronHpa ¶
type CronHpa struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CronHpaSpec `json:"spec"` Status CronHpaStatus `json:"status,omitempty"` }
CronHpa is a specification for a Foo resource
func (*CronHpa) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CronHpa.
func (*CronHpa) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CronHpa) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CronHpaList ¶
type CronHpaList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []CronHpa `json:"items"` }
CronHpaList is a list of CronHpa resources
func (*CronHpaList) DeepCopy ¶
func (in *CronHpaList) DeepCopy() *CronHpaList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CronHpaList.
func (*CronHpaList) DeepCopyInto ¶
func (in *CronHpaList) DeepCopyInto(out *CronHpaList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CronHpaList) DeepCopyObject ¶
func (in *CronHpaList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CronHpaSpec ¶
type CronHpaSpec struct { HpaName string `json:"hpa_name"` HpaType string `json:"hpa_type"` Cycles []Cycle `json:"cycles"` }
CronHpaSpec is the spec for a CronHpa resource
func (*CronHpaSpec) DeepCopy ¶
func (in *CronHpaSpec) DeepCopy() *CronHpaSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CronHpaSpec.
func (*CronHpaSpec) DeepCopyInto ¶
func (in *CronHpaSpec) DeepCopyInto(out *CronHpaSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CronHpaStatus ¶
type CronHpaStatus struct {
Cycles []Cycle `json:"cycles"`
}
CronHpaStatus is the status for a CronHpa resource
func (*CronHpaStatus) DeepCopy ¶
func (in *CronHpaStatus) DeepCopy() *CronHpaStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CronHpaStatus.
func (*CronHpaStatus) DeepCopyInto ¶
func (in *CronHpaStatus) DeepCopyInto(out *CronHpaStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Cycle ¶
Cycle is the struct of hour and capacity
func (*Cycle) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cycle.
func (*Cycle) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.