Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
create a SchemeBuilder which uses functions to add types to the scheme
var SchemeGroupVersion = schema.GroupVersion{ Group: customresource.GroupName, Version: "v1", }
SchemeGroupVersion is the identifier for the API which includes the name of the group and the version of the API
Functions ¶
Types ¶
type CustomResource ¶
type CustomResource struct { // TypeMeta is the metadata for the resource, e.g. kind / apiversion metaV1.TypeMeta `json:",inline"` // ObjectMeta is the metadata for the particular object, e.g. name / namespace / labels metaV1.ObjectMeta `json:"metadata,omitempty"` // Spec is the custom resource spec Spec CustomResourceSpec `json:"spec"` }
CustomResource defines a CustomResource resource
func (*CustomResource) DeepCopy ¶
func (in *CustomResource) DeepCopy() *CustomResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomResource.
func (*CustomResource) DeepCopyInto ¶
func (in *CustomResource) DeepCopyInto(out *CustomResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CustomResource) DeepCopyObject ¶
func (in *CustomResource) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CustomResourceList ¶
type CustomResourceList struct { metaV1.TypeMeta `json:",inline"` metaV1.ListMeta `json:"metadata"` Items []CustomResource `json:"items"` }
CustomResourceList is a list of CustomResource resources
func (*CustomResourceList) DeepCopy ¶
func (in *CustomResourceList) DeepCopy() *CustomResourceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomResourceList.
func (*CustomResourceList) DeepCopyInto ¶
func (in *CustomResourceList) DeepCopyInto(out *CustomResourceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CustomResourceList) DeepCopyObject ¶
func (in *CustomResourceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CustomResourceSpec ¶
type CustomResourceSpec struct { // Message and Count are example custom spec fields Message string `json:"message"` Count *int32 `json:"count"` }
CustomResourceSpec is the spec for a CustomResource resource
func (*CustomResourceSpec) DeepCopy ¶
func (in *CustomResourceSpec) DeepCopy() *CustomResourceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CustomResourceSpec.
func (*CustomResourceSpec) DeepCopyInto ¶
func (in *CustomResourceSpec) DeepCopyInto(out *CustomResourceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.