Documentation ¶
Overview ¶
+kubebuilder:object:generate=true +kubebuilder:skip +groupName=test
Index ¶
- Variables
- type TestResource
- func (in *TestResource) DeepCopy() *TestResource
- func (in *TestResource) DeepCopyInto(out *TestResource)
- func (in *TestResource) DeepCopyObject() runtime.Object
- func (o *TestResource) GetGroupVersionResource() schema.GroupVersionResource
- func (o *TestResource) GetObjectMeta() *metav1.ObjectMeta
- func (o *TestResource) IsStorageVersion() bool
- func (o *TestResource) NamespaceScoped() bool
- func (o *TestResource) New() runtime.Object
- func (o *TestResource) NewList() runtime.Object
- type TestResourceList
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "test", Version: "v1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
Functions ¶
This section is empty.
Types ¶
type TestResource ¶
type TestResource struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Field1 string `json:"field1"` }
TestResource implements resource.Object
func (*TestResource) DeepCopy ¶
func (in *TestResource) DeepCopy() *TestResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestResource.
func (*TestResource) DeepCopyInto ¶
func (in *TestResource) DeepCopyInto(out *TestResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TestResource) DeepCopyObject ¶
func (in *TestResource) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*TestResource) GetGroupVersionResource ¶
func (o *TestResource) GetGroupVersionResource() schema.GroupVersionResource
GetGroupVersionResource returns the GroupVersionResource for this resource. The resource should be the all lowercase and pluralized kind
func (*TestResource) GetObjectMeta ¶
func (o *TestResource) GetObjectMeta() *metav1.ObjectMeta
GetObjectMeta returns the objects meta reference.
func (*TestResource) IsStorageVersion ¶
func (o *TestResource) IsStorageVersion() bool
IsStorageVersion returns true if the object is also the internal version -- i.e. is the type defined for the API group or an alias to this object. If false, the resource is expected to implement MultiVersionObject interface.
func (*TestResource) NamespaceScoped ¶
func (o *TestResource) NamespaceScoped() bool
NamespaceScoped returns true if the object is namespaced
func (*TestResource) New ¶
func (o *TestResource) New() runtime.Object
New returns a new instance of the resource
func (*TestResource) NewList ¶
func (o *TestResource) NewList() runtime.Object
NewList return a new list instance of the resource
type TestResourceList ¶
type TestResourceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []TestResource `json:"items"` }
TestResourceList contains a list of TestResources
func (*TestResourceList) DeepCopy ¶
func (in *TestResourceList) DeepCopy() *TestResourceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestResourceList.
func (*TestResourceList) DeepCopyInto ¶
func (in *TestResourceList) DeepCopyInto(out *TestResourceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TestResourceList) DeepCopyObject ¶
func (in *TestResourceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*TestResourceList) GetListMeta ¶
func (in *TestResourceList) GetListMeta() *metav1.ListMeta
GetListMeta returns the list meta reference.