Documentation ¶
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func RegisterWebhook(in runtime.Object, webhook WebhookImpl) error
- func Resource(resource string) schema.GroupResource
- type ClusterGroup
- type ClusterGroupList
- type ExternalEntity
- func (in *ExternalEntity) DeepCopy() *ExternalEntity
- func (in *ExternalEntity) DeepCopyInto(out *ExternalEntity)
- func (in *ExternalEntity) DeepCopyObject() runtime.Object
- func (in *ExternalEntity) Default()
- func (in *ExternalEntity) ValidateCreate() error
- func (in *ExternalEntity) ValidateDelete() error
- func (in *ExternalEntity) ValidateUpdate(old runtime.Object) error
- type ExternalEntityList
- type WebhookImpl
Constants ¶
const GroupName = "core.antrea.tanzu.vmware.com"
GroupName is the group name used in this package.
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha2"}
SchemeGroupVersion is group version used to register these objects.
Functions ¶
func RegisterWebhook ¶
func RegisterWebhook(in runtime.Object, webhook WebhookImpl) error
RegisterWebhook registers webhook implementation of a resource.
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource.
Types ¶
type ClusterGroup ¶
type ClusterGroup struct { metav1.TypeMeta `json:",inline"` // Standard metadata of the object. metav1.ObjectMeta `json:"metadata,omitempty"` // Desired state of the group. Spec crdv1alpha2.GroupSpec `json:"spec"` // Most recently observed status of the group. Status crdv1alpha2.GroupStatus `json:"status"` }
func (*ClusterGroup) DeepCopy ¶
func (in *ClusterGroup) DeepCopy() *ClusterGroup
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterGroup.
func (*ClusterGroup) DeepCopyInto ¶
func (in *ClusterGroup) DeepCopyInto(out *ClusterGroup)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterGroup) DeepCopyObject ¶
func (in *ClusterGroup) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ClusterGroupList ¶
type ClusterGroupList struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ListMeta `json:"metadata,omitempty"` Items []ClusterGroup `json:"items,omitempty"` }
func (*ClusterGroupList) DeepCopy ¶
func (in *ClusterGroupList) DeepCopy() *ClusterGroupList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterGroupList.
func (*ClusterGroupList) DeepCopyInto ¶
func (in *ClusterGroupList) DeepCopyInto(out *ClusterGroupList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ClusterGroupList) DeepCopyObject ¶
func (in *ClusterGroupList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ExternalEntity ¶
type ExternalEntity struct { metav1.TypeMeta `json:",inline"` // Standard metadata of the object. metav1.ObjectMeta `json:"metadata,omitempty"` // Desired state of the external entity. Spec crdv1alpha2.ExternalEntitySpec `json:"spec,omitempty"` }
func (*ExternalEntity) DeepCopy ¶
func (in *ExternalEntity) DeepCopy() *ExternalEntity
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalEntity.
func (*ExternalEntity) DeepCopyInto ¶
func (in *ExternalEntity) DeepCopyInto(out *ExternalEntity)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ExternalEntity) DeepCopyObject ¶
func (in *ExternalEntity) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*ExternalEntity) Default ¶
func (in *ExternalEntity) Default()
Default implements webhook Defaulter.
func (*ExternalEntity) ValidateCreate ¶
func (in *ExternalEntity) ValidateCreate() error
ValidateCreate implements webhook Validator.
func (*ExternalEntity) ValidateDelete ¶
func (in *ExternalEntity) ValidateDelete() error
ValidateDelete implements webhook Validator.
func (*ExternalEntity) ValidateUpdate ¶
func (in *ExternalEntity) ValidateUpdate(old runtime.Object) error
ValidateUpdate implements webhook Validator.
type ExternalEntityList ¶
type ExternalEntityList struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ListMeta `json:"metadata,omitempty"` Items []ExternalEntity `json:"items,omitempty"` }
func (*ExternalEntityList) DeepCopy ¶
func (in *ExternalEntityList) DeepCopy() *ExternalEntityList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalEntityList.
func (*ExternalEntityList) DeepCopyInto ¶
func (in *ExternalEntityList) DeepCopyInto(out *ExternalEntityList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ExternalEntityList) DeepCopyObject ¶
func (in *ExternalEntityList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type WebhookImpl ¶
type WebhookImpl interface { Default(in *ExternalEntity) ValidateCreate(in *ExternalEntity) error ValidateUpdate(in *ExternalEntity, old runtime.Object) error ValidateDelete(in *ExternalEntity) error }
WebhookImpl implements webhook validator of a resource.