v1

package
v0.0.0-...-0fb09b5 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeBuilder initializes a scheme builder
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is a global function that registers this API group & version to a scheme
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: "stable.wbsnail.com", Version: "v1"}

SchemeGroupVersion is group version used to register these objects

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Rabbit

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

	// This is where you can define
	// your own custom spec
	Spec RabbitSpec `json:"spec,omitempty"`
}

Rabbit is a top-level type

func (*Rabbit) DeepCopy

func (in *Rabbit) DeepCopy() *Rabbit

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

func (*Rabbit) DeepCopyInto

func (in *Rabbit) DeepCopyInto(out *Rabbit)

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

func (*Rabbit) DeepCopyObject

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

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

type RabbitList

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

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

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

func (*RabbitList) DeepCopy

func (in *RabbitList) DeepCopy() *RabbitList

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

func (*RabbitList) DeepCopyInto

func (in *RabbitList) DeepCopyInto(out *RabbitList)

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

func (*RabbitList) DeepCopyObject

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

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

type RabbitSpec

type RabbitSpec struct {
	Color string `json:"color,omitempty"`
}

func (*RabbitSpec) DeepCopy

func (in *RabbitSpec) DeepCopy() *RabbitSpec

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

func (*RabbitSpec) DeepCopyInto

func (in *RabbitSpec) DeepCopyInto(out *RabbitSpec)

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