v1

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

+k8s:deepcopy-gen=package +k8s:defaulter-gen=TypeMeta +groupName=rrk.com

Index

Constants

This section is empty.

Variables

View Source
var (
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{
	Group:   "rrk.com",
	Version: "v1",
}

Define your schema name and the version

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type HelloWorld

type HelloWorld struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// +optional
	Status HelloWorldStatus `json:"status,omitempty"`
	// This is where you can define
	// your own custom spec
	Spec HelloWorldSpec `json:"spec,omitempty"`
}

HelloType is a top-level type

func (*HelloWorld) DeepCopy

func (in *HelloWorld) DeepCopy() *HelloWorld

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

func (*HelloWorld) DeepCopyInto

func (in *HelloWorld) DeepCopyInto(out *HelloWorld)

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

func (*HelloWorld) DeepCopyObject

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

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

type HelloWorldList

type HelloWorldList struct {
	metav1.TypeMeta `json:",inline"`
	// +optional
	metav1.ListMeta `son:"metadata,omitempty"`

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

no client needed for list as it's been created in above

func (*HelloWorldList) DeepCopy

func (in *HelloWorldList) DeepCopy() *HelloWorldList

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

func (*HelloWorldList) DeepCopyInto

func (in *HelloWorldList) DeepCopyInto(out *HelloWorldList)

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

func (*HelloWorldList) DeepCopyObject

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

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

type HelloWorldSpec

type HelloWorldSpec struct {
	Message string `json:"message,omitempty"`
}

custom spec

func (*HelloWorldSpec) DeepCopy

func (in *HelloWorldSpec) DeepCopy() *HelloWorldSpec

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

func (*HelloWorldSpec) DeepCopyInto

func (in *HelloWorldSpec) DeepCopyInto(out *HelloWorldSpec)

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

type HelloWorldStatus

type HelloWorldStatus struct {
	Name string
}

custom status

func (*HelloWorldStatus) DeepCopy

func (in *HelloWorldStatus) DeepCopy() *HelloWorldStatus

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

func (*HelloWorldStatus) DeepCopyInto

func (in *HelloWorldStatus) DeepCopyInto(out *HelloWorldStatus)

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