Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package,register +groupName=meta.kcp.io +k8s:openapi-gen=true
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: metaapi.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 APIResource ¶
type APIResource struct { metav1.TypeMeta `json:",inline"` // Standard object metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata // +optional metav1.ObjectMeta `json:"metadata,omitempty"` // +optional Spec APIResourceSpec `json:"spec,omitempty"` }
APIResource describes a kind of API object.
+crd +genclient +genclient:nonNamespaced +kubebuilder:resource:scope=Cluster +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*APIResource) DeepCopy ¶
func (in *APIResource) DeepCopy() *APIResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIResource.
func (*APIResource) DeepCopyInto ¶
func (in *APIResource) DeepCopyInto(out *APIResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*APIResource) DeepCopyObject ¶
func (in *APIResource) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type APIResourceList ¶
type APIResourceList struct { metav1.TypeMeta `json:",inline"` // Standard list metadata. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds // +optional metav1.ListMeta `json:"metadata,omitempty"` Items []APIResource `json:"items"` }
APIResourceList is the API type for a list of APIResource
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*APIResourceList) DeepCopy ¶
func (in *APIResourceList) DeepCopy() *APIResourceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIResourceList.
func (*APIResourceList) DeepCopyInto ¶
func (in *APIResourceList) DeepCopyInto(out *APIResourceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*APIResourceList) DeepCopyObject ¶
func (in *APIResourceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type APIResourceSpec ¶
type APIResourceSpec struct { // name is the plural name of the resource. Name string `json:"name" protobuf:"bytes,1,opt,name=name"` // singularName is the singular name of the resource. This allows clients to handle plural and singular opaquely. // The singularName is more correct for reporting status on a single item and both singular and plural are allowed // from the kubectl CLI interface. SingularName string `json:"singularName" protobuf:"bytes,6,opt,name=singularName"` // namespaced indicates if a resource is namespaced or not. Namespaced bool `json:"namespaced" protobuf:"varint,2,opt,name=namespaced"` // group is the preferred group of the resource. // For subresources, this may have a different value, for example: Scale". Group string `json:"group,omitempty" protobuf:"bytes,8,opt,name=group"` // version is the preferred version of the resource. Version string `json:"version,omitempty" protobuf:"bytes,9,opt,name=version"` // kind is the kind for the resource (e.g. 'Foo' is the kind for a resource 'foo') Kind string `json:"kind" protobuf:"bytes,3,opt,name=kind"` // verbs is a list of supported kube verbs (this includes get, list, watch, create, // update, patch, delete, deletecollection, and proxy) Verbs metav1.Verbs `json:"verbs" protobuf:"bytes,4,opt,name=verbs"` }
func (*APIResourceSpec) DeepCopy ¶
func (in *APIResourceSpec) DeepCopy() *APIResourceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIResourceSpec.
func (*APIResourceSpec) DeepCopyInto ¶
func (in *APIResourceSpec) DeepCopyInto(out *APIResourceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.