Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the petstore v1alpha1 API group +kubebuilder:object:generate=true +groupName=petstore.example.com
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "petstore.example.com", Version: "v1alpha1"} // 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 )
Functions ¶
This section is empty.
Types ¶
type Pet ¶
type Pet struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PetSpec `json:"spec,omitempty"` Status PetStatus `json:"status,omitempty"` }
Pet is the Schema for the pets API
func (*Pet) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Pet.
func (*Pet) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Pet) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PetList ¶
type PetList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Pet `json:"items"` }
PetList contains a list of Pet
func (*PetList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PetList.
func (*PetList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PetList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PetSpec ¶
type PetSpec struct { // Name is the name of the pet Name string `json:"name"` // Type is the type of pet Type PetType `json:"type"` // Birthday is the date the pet was born Birthday metav1.Time `json:"birthday"` }
PetSpec defines the desired state of Pet
func (*PetSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PetSpec.
func (*PetSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PetStatus ¶
type PetStatus struct { // ID is the unique identifier created by the service for the pet ID string `json:"id,omitempty"` }
PetStatus defines the observed state of Pet
func (*PetStatus) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PetStatus.
func (*PetStatus) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.