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: "scaler.k8s.do", 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 AutoScaler ¶
type AutoScaler struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec *AutoScalerSpec `json:"spec,omitempty"` }
OpenGauss is a top-level type
func (*AutoScaler) DeepCopy ¶
func (in *AutoScaler) DeepCopy() *AutoScaler
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AutoScaler.
func (*AutoScaler) DeepCopyInto ¶
func (in *AutoScaler) DeepCopyInto(out *AutoScaler)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AutoScaler) DeepCopyObject ¶
func (in *AutoScaler) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AutoScalerList ¶
type AutoScalerList struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ListMeta `json:"metadata,omitempty"` Items []AutoScaler `json:"items"` }
no client needed for list as it's been created in above
func (*AutoScalerList) DeepCopy ¶
func (in *AutoScalerList) DeepCopy() *AutoScalerList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AutoScalerList.
func (*AutoScalerList) DeepCopyInto ¶
func (in *AutoScalerList) DeepCopyInto(out *AutoScalerList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AutoScalerList) DeepCopyObject ¶
func (in *AutoScalerList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type AutoScalerSpec ¶
type AutoScalerSpec struct { Cluster ClusterInfo `json:"cluster,omitempty"` Master *Component `json:"master,omitempty"` Worker *Component `json:"worker,omitempty"` }
func (*AutoScalerSpec) DeepCopy ¶
func (in *AutoScalerSpec) DeepCopy() *AutoScalerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AutoScalerSpec.
func (*AutoScalerSpec) DeepCopyInto ¶
func (in *AutoScalerSpec) DeepCopyInto(out *AutoScalerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ClusterInfo ¶
type ClusterInfo struct { Name string `json:"name,omitempty"` Namespace string `json:"namespace,omitempty"` }
func (*ClusterInfo) DeepCopy ¶
func (in *ClusterInfo) DeepCopy() *ClusterInfo
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterInfo.
func (*ClusterInfo) DeepCopyInto ¶
func (in *ClusterInfo) DeepCopyInto(out *ClusterInfo)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Component ¶
type Component struct {
Spec *autoscaling.HorizontalPodAutoscalerSpec `json:"spec,omitempty"`
}
func (*Component) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Component.
func (*Component) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.