Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package
Index ¶
Constants ¶
const ExampleResourcePlural = "examples"
const GroupName = "cr.client-go.k8s.io"
GroupName is the group name used in this package.
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"}
SchemeGroupVersion is the group version used to register these objects.
Functions ¶
func GetGeneratedDeepCopyFuncs
deprecated
added in
v1.8.0
func GetGeneratedDeepCopyFuncs() []conversion.GeneratedDeepCopyFunc
GetGeneratedDeepCopyFuncs returns the generated funcs, since we aren't registering them.
Deprecated: deepcopy registration will go away when static deepcopy is fully implemented.
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group-qualified GroupResource.
Types ¶
type Example ¶
type Example struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Spec ExampleSpec `json:"spec"` Status ExampleStatus `json:"status,omitempty"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*Example) DeepCopy ¶ added in v1.8.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Example.
func (*Example) DeepCopyInto ¶ added in v1.8.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Example) DeepCopyObject ¶ added in v1.8.0
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ExampleList ¶
type ExampleList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Example `json:"items"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*ExampleList) DeepCopy ¶ added in v1.8.0
func (in *ExampleList) DeepCopy() *ExampleList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExampleList.
func (*ExampleList) DeepCopyInto ¶ added in v1.8.0
func (in *ExampleList) DeepCopyInto(out *ExampleList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ExampleList) DeepCopyObject ¶ added in v1.8.0
func (in *ExampleList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ExampleSpec ¶
func (*ExampleSpec) DeepCopy ¶ added in v1.8.0
func (in *ExampleSpec) DeepCopy() *ExampleSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExampleSpec.
func (*ExampleSpec) DeepCopyInto ¶ added in v1.8.0
func (in *ExampleSpec) DeepCopyInto(out *ExampleSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ExampleState ¶
type ExampleState string
const ( ExampleStateCreated ExampleState = "Created" ExampleStateProcessed ExampleState = "Processed" )
type ExampleStatus ¶
type ExampleStatus struct { State ExampleState `json:"state,omitempty"` Message string `json:"message,omitempty"` }
func (*ExampleStatus) DeepCopy ¶ added in v1.8.0
func (in *ExampleStatus) DeepCopy() *ExampleStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExampleStatus.
func (*ExampleStatus) DeepCopyInto ¶ added in v1.8.0
func (in *ExampleStatus) DeepCopyInto(out *ExampleStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.