Documentation ¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: cat.GroupName, Version: "v1alpha1"}
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
Types ¶
type Cat ¶
type Cat struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CatSpec `json:"spec"` Status CatStatus `json:"status"` }
Cat is a specification for a Cat resource, which allows the user to create cats inside their k8s cluster
func (*Cat) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cat.
func (*Cat) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Cat) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CatCondition ¶
type CatCondition struct { Type CatConditionType `json:"type"` Status corev1.ConditionStatus `json:"status"` LastTransitionTime metav1.Time `json:"lastTransitionTime"` // +optional Reason string `json:"reason,omitempty"` // +optional Message string `json:"message,omitempty"` }
CatCondition holds a Condition that the Cat has entered into while being executed
func (*CatCondition) DeepCopy ¶
func (in *CatCondition) DeepCopy() *CatCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CatCondition.
func (*CatCondition) DeepCopyInto ¶
func (in *CatCondition) DeepCopyInto(out *CatCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CatConditionType ¶
type CatConditionType string
CatConditionType is the type for Cat conditions
var ( // CatConditionTypeNap represents whether or not this cat is taking a nap CatConditionTypeNap CatConditionType = "nap" // CatConditionTypeHungry represents whether or not this cat is hungry CatConditionTypeHungry CatConditionType = "hungry" )
type CatList ¶
type CatList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Cat `json:"items"` }
CatList is a list of Cat resources
func (*CatList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CatList.
func (*CatList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CatList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CatSpec ¶
type CatSpec struct { Name string `json:"name"` Phrase string `json:"phrase"` Breed BreedType `json:"breed"` }
CatSpec is the spec for a Cat resource
func (*CatSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CatSpec.
func (*CatSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CatStatus ¶
type CatStatus struct {
Conditions []CatCondition `json:"conditions"`
}
CatStatus is the status for a Cat resource
func (*CatStatus) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CatStatus.
func (*CatStatus) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.