v1

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1 is the v1 version of the API.

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeBuilder is used to register the type to the Kubernetes CRD APIs.
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is used to register the type to the Kubernetes CRD APIs.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: building.GroupName, Version: version}

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.

func VersionKind

func VersionKind(kind string) schema.GroupVersionKind

VersionKind takes an unqualified kind and returns back a Group qualified GroupVersionKind.

Types

type House

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

	Spec HouseSpec `json:"spec,omitempty"`
}

House represents a house.

func (*House) DeepCopy

func (in *House) DeepCopy() *House

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

func (*House) DeepCopyInto

func (in *House) DeepCopyInto(out *House)

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

func (*House) DeepCopyObject

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

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

type HouseList

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

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

HouseList is a list of House resources.

func (*HouseList) DeepCopy

func (in *HouseList) DeepCopy() *HouseList

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

func (*HouseList) DeepCopyInto

func (in *HouseList) DeepCopyInto(out *HouseList)

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

func (*HouseList) DeepCopyObject

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

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

type HouseSpec

type HouseSpec struct {
	Name    string `json:"name"`
	Address string `json:"address"`
	Active  *bool  `json:"active,omitempty"`
	// +listType=map
	// +listMapKey=name
	Owners []User `json:"owners,omitempty"`
}

HouseSpec is the spec for a Team resource.

func (*HouseSpec) DeepCopy

func (in *HouseSpec) DeepCopy() *HouseSpec

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

func (*HouseSpec) DeepCopyInto

func (in *HouseSpec) DeepCopyInto(out *HouseSpec)

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

type User

type User struct {
	Name  string `json:"name"`
	Email string `json:"email"`
}

User is an user.

func (*User) DeepCopy

func (in *User) DeepCopy() *User

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

func (*User) DeepCopyInto

func (in *User) DeepCopyInto(out *User)

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