Documentation ¶
Overview ¶
Package v1alpha1 is the v1alpha1 version of the API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // SchemeBuilder initializes a scheme builder SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) // AddToScheme is a global function that registers this API group & version to a scheme AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: personscontroller.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 Person ¶
type Person struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec PersonSpec `json:"spec"` Status PersonStatus `json:"status"` }
Person is a specification for a Person resource
func (*Person) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Person.
func (*Person) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Person) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PersonList ¶
type PersonList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Person `json:"items"` }
PersonList is a list of Person resources
func (*PersonList) DeepCopy ¶
func (in *PersonList) DeepCopy() *PersonList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PersonList.
func (*PersonList) DeepCopyInto ¶
func (in *PersonList) DeepCopyInto(out *PersonList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*PersonList) DeepCopyObject ¶
func (in *PersonList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type PersonSpec ¶
type PersonSpec struct { FirstName string `json:"firstName"` LastName string `json:"lastName"` Age *int32 `json:"age"` }
PersonSpec is the spec for a Person resource
func (*PersonSpec) DeepCopy ¶
func (in *PersonSpec) DeepCopy() *PersonSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PersonSpec.
func (*PersonSpec) DeepCopyInto ¶
func (in *PersonSpec) DeepCopyInto(out *PersonSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PersonStatus ¶
type PersonStatus struct {
IsAdult bool `json:"isAdult"`
}
PersonStatus is the status for a Person resource
func (*PersonStatus) DeepCopy ¶
func (in *PersonStatus) DeepCopy() *PersonStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PersonStatus.
func (*PersonStatus) DeepCopyInto ¶
func (in *PersonStatus) DeepCopyInto(out *PersonStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.