Documentation ¶
Overview ¶
+kubebuilder:object:generate=true +kubebuilder:skip +groupName=test
+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
- type TestResourceWithStatus
- func (in *TestResourceWithStatus) DeepCopy() *TestResourceWithStatus
- func (in *TestResourceWithStatus) DeepCopyInto(out *TestResourceWithStatus)
- func (in *TestResourceWithStatus) DeepCopyObject() runtime.Object
- func (o *TestResourceWithStatus) GetGroupVersionResource() schema.GroupVersionResource
- func (o *TestResourceWithStatus) GetObjectMeta() *metav1.ObjectMeta
- func (o *TestResourceWithStatus) IsStorageVersion() bool
- func (o *TestResourceWithStatus) NamespaceScoped() bool
- func (o *TestResourceWithStatus) New() runtime.Object
- func (o *TestResourceWithStatus) NewList() runtime.Object
- func (o *TestResourceWithStatus) SecretStorageGetStatus() status.StatusSubResource
- type TestResourceWithStatusList
- type TestResourceWithStatusStatus
- func (in *TestResourceWithStatusStatus) DeepCopy() *TestResourceWithStatusStatus
- func (in *TestResourceWithStatusStatus) DeepCopyInto(out *TestResourceWithStatusStatus)
- func (s *TestResourceWithStatusStatus) SecretStorageCopyTo(parent status.ObjectWithStatusSubResource)
- func (s TestResourceWithStatusStatus) SubResourceName() string
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.
type TestResourceWithStatus ¶
type TestResourceWithStatus struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Field1 string `json:"field1"` Status TestResourceWithStatusStatus `json:"status"` }
+kubebuilder:object:root=true TestResourceWithStatus implements resource.Object
func (*TestResourceWithStatus) DeepCopy ¶
func (in *TestResourceWithStatus) DeepCopy() *TestResourceWithStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestResourceWithStatus.
func (*TestResourceWithStatus) DeepCopyInto ¶
func (in *TestResourceWithStatus) DeepCopyInto(out *TestResourceWithStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TestResourceWithStatus) DeepCopyObject ¶
func (in *TestResourceWithStatus) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*TestResourceWithStatus) GetGroupVersionResource ¶
func (o *TestResourceWithStatus) GetGroupVersionResource() schema.GroupVersionResource
GetGroupVersionResource returns the GroupVersionResource for this resource. The resource should be the all lowercase and pluralized kind
func (*TestResourceWithStatus) GetObjectMeta ¶
func (o *TestResourceWithStatus) GetObjectMeta() *metav1.ObjectMeta
GetObjectMeta returns the objects meta reference.
func (*TestResourceWithStatus) IsStorageVersion ¶
func (o *TestResourceWithStatus) 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 (*TestResourceWithStatus) NamespaceScoped ¶
func (o *TestResourceWithStatus) NamespaceScoped() bool
NamespaceScoped returns true if the object is namespaced
func (*TestResourceWithStatus) New ¶
func (o *TestResourceWithStatus) New() runtime.Object
New returns a new instance of the resource
func (*TestResourceWithStatus) NewList ¶
func (o *TestResourceWithStatus) NewList() runtime.Object
NewList return a new list instance of the resource
func (*TestResourceWithStatus) SecretStorageGetStatus ¶
func (o *TestResourceWithStatus) SecretStorageGetStatus() status.StatusSubResource
GetStatus returns the status of the resource
type TestResourceWithStatusList ¶
type TestResourceWithStatusList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []TestResourceWithStatus `json:"items"` }
+kubebuilder:object:root=true TestResourceWithStatusList contains a list of TestResourceWithStatuss
func (*TestResourceWithStatusList) DeepCopy ¶
func (in *TestResourceWithStatusList) DeepCopy() *TestResourceWithStatusList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestResourceWithStatusList.
func (*TestResourceWithStatusList) DeepCopyInto ¶
func (in *TestResourceWithStatusList) DeepCopyInto(out *TestResourceWithStatusList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TestResourceWithStatusList) DeepCopyObject ¶
func (in *TestResourceWithStatusList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*TestResourceWithStatusList) GetListMeta ¶
func (in *TestResourceWithStatusList) GetListMeta() *metav1.ListMeta
GetListMeta returns the list meta reference.
type TestResourceWithStatusStatus ¶
type TestResourceWithStatusStatus struct {
Num int `json:"num"`
}
func (*TestResourceWithStatusStatus) DeepCopy ¶
func (in *TestResourceWithStatusStatus) DeepCopy() *TestResourceWithStatusStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestResourceWithStatusStatus.
func (*TestResourceWithStatusStatus) DeepCopyInto ¶
func (in *TestResourceWithStatusStatus) DeepCopyInto(out *TestResourceWithStatusStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*TestResourceWithStatusStatus) SecretStorageCopyTo ¶
func (s *TestResourceWithStatusStatus) SecretStorageCopyTo(parent status.ObjectWithStatusSubResource)
CopyTo copies the status to the given parent resource
func (TestResourceWithStatusStatus) SubResourceName ¶
func (s TestResourceWithStatusStatus) SubResourceName() string