Documentation
¶
Overview ¶
Package v1 is the v1 version of the API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
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 )
var SchemeGroupVersion = schema.GroupVersion{Group: building.GroupName, Version: version}
SchemeGroupVersion is group version used to register these objects
Functions ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new House.
func (*House) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*House) DeepCopyObject ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HouseList.
func (*HouseList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HouseList) DeepCopyObject ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HouseSpec.
func (*HouseSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.