Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package +k8s:defaulter-gen=TypeMeta +groupName=rrk.com
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( SchemeBuilder runtime.SchemeBuilder AddToScheme = localSchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{
Group: "rrk.com",
Version: "v1",
}
Define your schema name and the version
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type HelloWorld ¶
type HelloWorld struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty"` // +optional Status HelloWorldStatus `json:"status,omitempty"` // This is where you can define // your own custom spec Spec HelloWorldSpec `json:"spec,omitempty"` }
HelloType is a top-level type
func (*HelloWorld) DeepCopy ¶
func (in *HelloWorld) DeepCopy() *HelloWorld
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HelloWorld.
func (*HelloWorld) DeepCopyInto ¶
func (in *HelloWorld) DeepCopyInto(out *HelloWorld)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HelloWorld) DeepCopyObject ¶
func (in *HelloWorld) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type HelloWorldList ¶
type HelloWorldList struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ListMeta `son:"metadata,omitempty"` Items []HelloWorld `json:"items"` }
no client needed for list as it's been created in above
func (*HelloWorldList) DeepCopy ¶
func (in *HelloWorldList) DeepCopy() *HelloWorldList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HelloWorldList.
func (*HelloWorldList) DeepCopyInto ¶
func (in *HelloWorldList) DeepCopyInto(out *HelloWorldList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HelloWorldList) DeepCopyObject ¶
func (in *HelloWorldList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type HelloWorldSpec ¶
type HelloWorldSpec struct {
Message string `json:"message,omitempty"`
}
custom spec
func (*HelloWorldSpec) DeepCopy ¶
func (in *HelloWorldSpec) DeepCopy() *HelloWorldSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HelloWorldSpec.
func (*HelloWorldSpec) DeepCopyInto ¶
func (in *HelloWorldSpec) DeepCopyInto(out *HelloWorldSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HelloWorldStatus ¶
type HelloWorldStatus struct {
Name string
}
custom status
func (*HelloWorldStatus) DeepCopy ¶
func (in *HelloWorldStatus) DeepCopy() *HelloWorldStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HelloWorldStatus.
func (*HelloWorldStatus) DeepCopyInto ¶
func (in *HelloWorldStatus) DeepCopyInto(out *HelloWorldStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.