testresource

package
v0.33.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 12, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

+kubebuilder:object:generate=true +kubebuilder:skip +groupName=test

+kubebuilder:object:generate=true +kubebuilder:skip +groupName=test

Index

Constants

This section is empty.

Variables

View Source
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

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

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestResourceWithStatusList.

func (*TestResourceWithStatusList) DeepCopyInto

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TestResourceWithStatusStatus.

func (*TestResourceWithStatusStatus) DeepCopyInto

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL