Documentation
¶
Overview ¶
+groupName=dummy.example.com +versionName=v1alpha1 +kubebuilder:object:generate=true
Index ¶
Constants ¶
const GroupName = "dummy.example.com"
GroupName is the group name use in this package.
const GroupVersion = "v1alpha1"
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme // SchemeGroupVersion is group version used to register these objects. SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: GroupVersion} )
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource.
Types ¶
type NamespacedThing ¶
type NamespacedThing struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ThingSpec `json:"spec"` }
func (*NamespacedThing) DeepCopy ¶
func (in *NamespacedThing) DeepCopy() *NamespacedThing
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespacedThing.
func (*NamespacedThing) DeepCopyInto ¶
func (in *NamespacedThing) DeepCopyInto(out *NamespacedThing)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NamespacedThing) DeepCopyObject ¶
func (in *NamespacedThing) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type NamespacedThingList ¶
type NamespacedThingList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []NamespacedThing `json:"items"` }
NamespacedThingList contains a list of NamespacedThings.
func (*NamespacedThingList) DeepCopy ¶
func (in *NamespacedThingList) DeepCopy() *NamespacedThingList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespacedThingList.
func (*NamespacedThingList) DeepCopyInto ¶
func (in *NamespacedThingList) DeepCopyInto(out *NamespacedThingList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*NamespacedThingList) DeepCopyObject ¶
func (in *NamespacedThingList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type Thing ¶
type Thing struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ThingSpec `json:"spec"` }
func (*Thing) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Thing.
func (*Thing) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Thing) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ThingList ¶
type ThingList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Thing `json:"items"` }
ThingList contains a list of Things.
func (*ThingList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ThingList.
func (*ThingList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ThingList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ThingSpec ¶
type ThingSpec struct { Username string `json:"username"` Address string `json:"address,omitempty"` }
func (*ThingSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ThingSpec.
func (*ThingSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ThingStatus ¶
type ThingStatus struct {
CurrentVersion string `json:"currentVersion"`
}
func (*ThingStatus) DeepCopy ¶
func (in *ThingStatus) DeepCopy() *ThingStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ThingStatus.
func (*ThingStatus) DeepCopyInto ¶
func (in *ThingStatus) DeepCopyInto(out *ThingStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ThingWithStatus ¶
type ThingWithStatus struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ThingSpec `json:"spec"` // NB: In this test resource, status exists but is *NOT* a subresource! Status ThingStatus `json:"status,omitempty"` }
func (*ThingWithStatus) DeepCopy ¶
func (in *ThingWithStatus) DeepCopy() *ThingWithStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ThingWithStatus.
func (*ThingWithStatus) DeepCopyInto ¶
func (in *ThingWithStatus) DeepCopyInto(out *ThingWithStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ThingWithStatus) DeepCopyObject ¶
func (in *ThingWithStatus) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ThingWithStatusList ¶
type ThingWithStatusList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ThingWithStatus `json:"items"` }
ThingWithStatusList contains a list of ThingWithStatus objects.
func (*ThingWithStatusList) DeepCopy ¶
func (in *ThingWithStatusList) DeepCopy() *ThingWithStatusList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ThingWithStatusList.
func (*ThingWithStatusList) DeepCopyInto ¶
func (in *ThingWithStatusList) DeepCopyInto(out *ThingWithStatusList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ThingWithStatusList) DeepCopyObject ¶
func (in *ThingWithStatusList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ThingWithStatusSubresource ¶
type ThingWithStatusSubresource struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ThingSpec `json:"spec"` Status ThingStatus `json:"status,omitempty"` }
func (*ThingWithStatusSubresource) DeepCopy ¶
func (in *ThingWithStatusSubresource) DeepCopy() *ThingWithStatusSubresource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ThingWithStatusSubresource.
func (*ThingWithStatusSubresource) DeepCopyInto ¶
func (in *ThingWithStatusSubresource) DeepCopyInto(out *ThingWithStatusSubresource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ThingWithStatusSubresource) DeepCopyObject ¶
func (in *ThingWithStatusSubresource) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ThingWithStatusSubresourceList ¶
type ThingWithStatusSubresourceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ThingWithStatusSubresource `json:"items"` }
ThingWithStatusSubresourceList contains a list of ThingWithStatusSubresources.
func (*ThingWithStatusSubresourceList) DeepCopy ¶
func (in *ThingWithStatusSubresourceList) DeepCopy() *ThingWithStatusSubresourceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ThingWithStatusSubresourceList.
func (*ThingWithStatusSubresourceList) DeepCopyInto ¶
func (in *ThingWithStatusSubresourceList) DeepCopyInto(out *ThingWithStatusSubresourceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ThingWithStatusSubresourceList) DeepCopyObject ¶
func (in *ThingWithStatusSubresourceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.