v1

package
v0.0.0-...-72f50ef Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (

	// AddToScheme adds to the scheme.
	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{
	Group:   "examplecrd.jasonhancock.com",
	Version: "v1",
}

SchemeGroupVersion defines the group info of the API.

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type ExampleResource

type ExampleResource struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec ExampleResourceSpec `json:"spec"`
}

ExampleResource is our example resource. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*ExampleResource) DeepCopy

func (in *ExampleResource) DeepCopy() *ExampleResource

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

func (*ExampleResource) DeepCopyInto

func (in *ExampleResource) DeepCopyInto(out *ExampleResource)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ExampleResource) DeepCopyObject

func (in *ExampleResource) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ExampleResourceList

type ExampleResourceList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`

	Items []ExampleResource `json:"items"`
}

ExampleResourceList is a list of ExampleResource objects. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*ExampleResourceList) DeepCopy

func (in *ExampleResourceList) DeepCopy() *ExampleResourceList

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

func (*ExampleResourceList) DeepCopyInto

func (in *ExampleResourceList) DeepCopyInto(out *ExampleResourceList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*ExampleResourceList) DeepCopyObject

func (in *ExampleResourceList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type ExampleResourceSpec

type ExampleResourceSpec struct {
	Color string `json:"color"`
	Size  string `json:"size"`
}

ExampleResourceSpec is the spec of the ExampleResource object. +kubebuilder:object:generate=true

func (*ExampleResourceSpec) DeepCopy

func (in *ExampleResourceSpec) DeepCopy() *ExampleResourceSpec

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

func (*ExampleResourceSpec) DeepCopyInto

func (in *ExampleResourceSpec) DeepCopyInto(out *ExampleResourceSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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