Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package +groupName=example.loft.sh
Package v1 contains API Schema definitions for the config v1beta1 API group +kubebuilder:object:generate=true +groupName=example.loft.sh
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "example.loft.sh", Version: "v1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme // SchemeGroupVersion is a shim that expect this to be present in the api package SchemeGroupVersion = GroupVersion )
Functions ¶
This section is empty.
Types ¶
type Car ¶
type Car struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CarSpec `json:"spec,omitempty"` Status CarStatus `json:"status,omitempty"` }
Car holds the webhook configuration +k8s:openapi-gen=true +kubebuilder:subresource:status
func (*Car) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Car.
func (*Car) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Car) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CarList ¶
type CarList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Car `json:"items"` }
CarList contains a list of cars
func (*CarList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CarList.
func (*CarList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CarList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CarSpec ¶
type CarSpec struct { // Type is the type of the car Type CarType `json:"type,omitempty"` // Number of seats within the car // +optional Seats int `json:"seats,omitempty"` }
func (*CarSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CarSpec.
func (*CarSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CarStatus ¶
type CarStatus struct{}
func (*CarStatus) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CarStatus.
func (*CarStatus) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.