v1alpha2

package
v0.11.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const GroupName = "core.antrea.tanzu.vmware.com"

GroupName is the group name used in this package.

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha2"}

SchemeGroupVersion is group version used to register these objects.

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind

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 Endpoint

type Endpoint struct {
	// IP associated with this endpoint.
	IP string `json:"ip,omitempty"`
	// Name identifies this endpoint. Could be the network interface name in case of VMs.
	// +optional
	Name string `json:"name,omitempty"`
}

Endpoint refers to an endpoint associated with the ExternalEntity.

func (*Endpoint) DeepCopy

func (in *Endpoint) DeepCopy() *Endpoint

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Endpoint.

func (*Endpoint) DeepCopyInto

func (in *Endpoint) DeepCopyInto(out *Endpoint)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

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 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 ExternalEntitySpec

type ExternalEntitySpec struct {
	// Endpoints is a list of external endpoints associated with this entity.
	Endpoints []Endpoint `json:"endpoints,omitempty"`
	// Ports maintain the list of named ports.
	Ports []NamedPort `json:"ports,omitempty"`
	// ExternalNode is the opaque identifier of the agent/controller responsible
	// for additional processing or handling of this external entity.
	ExternalNode string `json:"externalNode,omitempty"`
}

ExternalEntitySpec defines the desired state for ExternalEntity.

func (*ExternalEntitySpec) DeepCopy

func (in *ExternalEntitySpec) DeepCopy() *ExternalEntitySpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExternalEntitySpec.

func (*ExternalEntitySpec) DeepCopyInto

func (in *ExternalEntitySpec) DeepCopyInto(out *ExternalEntitySpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type NamedPort

type NamedPort struct {
	// The protocol (TCP, UDP, or SCTP) which traffic must match.
	// If not specified, this field defaults to TCP.
	// +optional
	Protocol v1.Protocol `json:"protocol,omitempty"`
	// The port on the given protocol.
	// +optional
	Port int32 `json:"port,omitempty"`
	// Name associated with the Port.
	// +optional
	Name string `json:"name,omitempty"`
}

NamedPort describes the port and protocol to match in a rule.

func (*NamedPort) DeepCopy

func (in *NamedPort) DeepCopy() *NamedPort

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamedPort.

func (*NamedPort) DeepCopyInto

func (in *NamedPort) DeepCopyInto(out *NamedPort)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL