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: demo.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 PodSet ¶
type PodSet struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PodSetSpec `json:"spec"` Status PodSetStatus `json:"status"` }
PodSet is a specification for a PodSet resource
func (*PodSet) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSet.
func (*PodSet) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PodSet) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PodSetList ¶
type PodSetList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []PodSet `json:"items"` }
PodSetList is a list of PodSet resources
func (*PodSetList) DeepCopy ¶
func (in *PodSetList) DeepCopy() *PodSetList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSetList.
func (*PodSetList) DeepCopyInto ¶
func (in *PodSetList) DeepCopyInto(out *PodSetList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PodSetList) DeepCopyObject ¶
func (in *PodSetList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PodSetSpec ¶
type PodSetSpec struct {
Replicas int32 `json:"replicas"`
}
PodSetSpec is the spec for a PodSet resource
func (*PodSetSpec) DeepCopy ¶
func (in *PodSetSpec) DeepCopy() *PodSetSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSetSpec.
func (*PodSetSpec) DeepCopyInto ¶
func (in *PodSetSpec) DeepCopyInto(out *PodSetSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PodSetStatus ¶
type PodSetStatus struct {
AvailableReplicas int32 `json:"availableReplicas"`
}
PodSetStatus is the status for a PodSet resource
func (*PodSetStatus) DeepCopy ¶
func (in *PodSetStatus) DeepCopy() *PodSetStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodSetStatus.
func (*PodSetStatus) DeepCopyInto ¶
func (in *PodSetStatus) DeepCopyInto(out *PodSetStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.