v1alpha1

package
v0.0.0-...-cd70a15 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API.

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: personscontroller.GroupName, Version: "v1alpha1"}

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 Person

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

	Spec   PersonSpec   `json:"spec"`
	Status PersonStatus `json:"status"`
}

Person is a specification for a Person resource

func (*Person) DeepCopy

func (in *Person) DeepCopy() *Person

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

func (*Person) DeepCopyInto

func (in *Person) DeepCopyInto(out *Person)

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

func (*Person) DeepCopyObject

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

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

type PersonList

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

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

PersonList is a list of Person resources

func (*PersonList) DeepCopy

func (in *PersonList) DeepCopy() *PersonList

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

func (*PersonList) DeepCopyInto

func (in *PersonList) DeepCopyInto(out *PersonList)

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

func (*PersonList) DeepCopyObject

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

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

type PersonSpec

type PersonSpec struct {
	FirstName string `json:"firstName"`
	LastName  string `json:"lastName"`
	Age       *int32 `json:"age"`
}

PersonSpec is the spec for a Person resource

func (*PersonSpec) DeepCopy

func (in *PersonSpec) DeepCopy() *PersonSpec

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

func (*PersonSpec) DeepCopyInto

func (in *PersonSpec) DeepCopyInto(out *PersonSpec)

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

type PersonStatus

type PersonStatus struct {
	IsAdult bool `json:"isAdult"`
}

PersonStatus is the status for a Person resource

func (*PersonStatus) DeepCopy

func (in *PersonStatus) DeepCopy() *PersonStatus

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

func (*PersonStatus) DeepCopyInto

func (in *PersonStatus) DeepCopyInto(out *PersonStatus)

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