Documentation ¶
Overview ¶
Package v1alpha1 contains API Schema definitions for the eno v1alpha1 API group +kubebuilder:object:generate=true +groupName=eno.k8s.io
Index ¶
- Variables
- type ConnectionPoint
- type ConnectionPointList
- type ConnectionPointSpec
- type ConnectionPointStatus
- type IPPool
- type L2BridgeDomain
- type L2BridgeDomainList
- type L2BridgeDomainSpec
- type L2BridgeDomainStatus
- type L2Service
- func (in *L2Service) DeepCopy() *L2Service
- func (in *L2Service) DeepCopyInto(out *L2Service)
- func (in *L2Service) DeepCopyObject() runtime.Object
- func (r *L2Service) SetupWebhookWithManager(mgr ctrl.Manager) error
- func (r *L2Service) ValidateCreate() error
- func (r *L2Service) ValidateDelete() error
- func (r *L2Service) ValidateUpdate(old runtime.Object) error
- type L2ServiceAttachment
- type L2ServiceAttachmentList
- type L2ServiceAttachmentSpec
- type L2ServiceAttachmentStatus
- type L2ServiceList
- type L2ServiceSpec
- type L2ServiceStatus
- type Route
- type RouteList
- type RouteSpec
- type RouteStatus
- type Subnet
- type SubnetDNS
- type SubnetList
- type SubnetSpec
- type SubnetStatus
- type SupportedCni
Constants ¶
This section is empty.
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "eno.k8s.io", Version: "v1alpha1"} // SchemeBuilder is used to add go types to the GroupVersionKind scheme SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion} // AddToScheme adds the types in this group-version to the given scheme. AddToScheme = SchemeBuilder.AddToScheme )
var (
C client.Client
)
log is for logging in this package.
Functions ¶
This section is empty.
Types ¶
type ConnectionPoint ¶
type ConnectionPoint struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec ConnectionPointSpec `json:"spec,omitempty"` Status ConnectionPointStatus `json:"status,omitempty"` }
ConnectionPoint is the Schema for the connectionpoints API
func (*ConnectionPoint) DeepCopy ¶
func (in *ConnectionPoint) DeepCopy() *ConnectionPoint
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConnectionPoint.
func (*ConnectionPoint) DeepCopyInto ¶
func (in *ConnectionPoint) DeepCopyInto(out *ConnectionPoint)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ConnectionPoint) DeepCopyObject ¶
func (in *ConnectionPoint) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ConnectionPointList ¶
type ConnectionPointList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []ConnectionPoint `json:"items"` }
ConnectionPointList contains a list of ConnectionPoint
func (*ConnectionPointList) DeepCopy ¶
func (in *ConnectionPointList) DeepCopy() *ConnectionPointList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConnectionPointList.
func (*ConnectionPointList) DeepCopyInto ¶
func (in *ConnectionPointList) DeepCopyInto(out *ConnectionPointList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ConnectionPointList) DeepCopyObject ¶
func (in *ConnectionPointList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ConnectionPointSpec ¶
type ConnectionPointSpec struct { Description string `json:"Description,omitempty"` // +kubebuilder:validation:MinItems:=1 SupportedCnis []SupportedCni `json:"SupportedCnis"` }
ConnectionPointSpec defines the desired state of ConnectionPoint
func (*ConnectionPointSpec) DeepCopy ¶
func (in *ConnectionPointSpec) DeepCopy() *ConnectionPointSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConnectionPointSpec.
func (*ConnectionPointSpec) DeepCopyInto ¶
func (in *ConnectionPointSpec) DeepCopyInto(out *ConnectionPointSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConnectionPointStatus ¶
type ConnectionPointStatus struct { }
ConnectionPointStatus defines the observed state of ConnectionPoint
func (*ConnectionPointStatus) DeepCopy ¶
func (in *ConnectionPointStatus) DeepCopy() *ConnectionPointStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConnectionPointStatus.
func (*ConnectionPointStatus) DeepCopyInto ¶
func (in *ConnectionPointStatus) DeepCopyInto(out *ConnectionPointStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IPPool ¶
IPPool contains an ip range
func (*IPPool) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPPool.
func (*IPPool) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type L2BridgeDomain ¶
type L2BridgeDomain struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec L2BridgeDomainSpec `json:"spec,omitempty"` Status L2BridgeDomainStatus `json:"status,omitempty"` }
L2BridgeDomain is the Schema for the l2bridgedomains API
func (*L2BridgeDomain) DeepCopy ¶
func (in *L2BridgeDomain) DeepCopy() *L2BridgeDomain
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new L2BridgeDomain.
func (*L2BridgeDomain) DeepCopyInto ¶
func (in *L2BridgeDomain) DeepCopyInto(out *L2BridgeDomain)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*L2BridgeDomain) DeepCopyObject ¶
func (in *L2BridgeDomain) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type L2BridgeDomainList ¶
type L2BridgeDomainList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []L2BridgeDomain `json:"items"` }
L2BridgeDomainList contains a list of L2BridgeDomain
func (*L2BridgeDomainList) DeepCopy ¶
func (in *L2BridgeDomainList) DeepCopy() *L2BridgeDomainList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new L2BridgeDomainList.
func (*L2BridgeDomainList) DeepCopyInto ¶
func (in *L2BridgeDomainList) DeepCopyInto(out *L2BridgeDomainList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*L2BridgeDomainList) DeepCopyObject ¶
func (in *L2BridgeDomainList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type L2BridgeDomainSpec ¶
type L2BridgeDomainSpec struct { // +kubebuilder:validation:Minimum:=1 // +kubebuilder:validation:Maximum:=4094 Vlan uint16 `json:"Vlan"` ConnectionPoints []string `json:"ConnectionPoints,omitempty"` }
L2BridgeDomainSpec defines the desired state of L2BridgeDomain
func (*L2BridgeDomainSpec) DeepCopy ¶
func (in *L2BridgeDomainSpec) DeepCopy() *L2BridgeDomainSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new L2BridgeDomainSpec.
func (*L2BridgeDomainSpec) DeepCopyInto ¶
func (in *L2BridgeDomainSpec) DeepCopyInto(out *L2BridgeDomainSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type L2BridgeDomainStatus ¶
type L2BridgeDomainStatus struct { // +kubebuilder:validation:Enum=pending;ready;error;terminating;deleted Phase string `json:"Phase,omitempty"` Message string `json:"Message,omitempty"` }
L2BridgeDomainStatus defines the observed state of L2BridgeDomain
func (*L2BridgeDomainStatus) DeepCopy ¶
func (in *L2BridgeDomainStatus) DeepCopy() *L2BridgeDomainStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new L2BridgeDomainStatus.
func (*L2BridgeDomainStatus) DeepCopyInto ¶
func (in *L2BridgeDomainStatus) DeepCopyInto(out *L2BridgeDomainStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type L2Service ¶
type L2Service struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec L2ServiceSpec `json:"spec,omitempty"` Status L2ServiceStatus `json:"status,omitempty"` }
L2Service is the Schema for the l2services API
func (*L2Service) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new L2Service.
func (*L2Service) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*L2Service) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (*L2Service) SetupWebhookWithManager ¶
func (*L2Service) ValidateCreate ¶
ValidateCreate implements webhook.Validator so a webhook will be registered for the type
func (*L2Service) ValidateDelete ¶
ValidateDelete implements webhook.Validator so a webhook will be registered for the type
type L2ServiceAttachment ¶
type L2ServiceAttachment struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec L2ServiceAttachmentSpec `json:"spec,omitempty"` Status L2ServiceAttachmentStatus `json:"status,omitempty"` }
L2ServiceAttachment is the Schema for the l2serviceattachments API
func (*L2ServiceAttachment) DeepCopy ¶
func (in *L2ServiceAttachment) DeepCopy() *L2ServiceAttachment
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new L2ServiceAttachment.
func (*L2ServiceAttachment) DeepCopyInto ¶
func (in *L2ServiceAttachment) DeepCopyInto(out *L2ServiceAttachment)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*L2ServiceAttachment) DeepCopyObject ¶
func (in *L2ServiceAttachment) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type L2ServiceAttachmentList ¶
type L2ServiceAttachmentList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []L2ServiceAttachment `json:"items"` }
L2ServiceAttachmentList contains a list of L2ServiceAttachment
func (*L2ServiceAttachmentList) DeepCopy ¶
func (in *L2ServiceAttachmentList) DeepCopy() *L2ServiceAttachmentList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new L2ServiceAttachmentList.
func (*L2ServiceAttachmentList) DeepCopyInto ¶
func (in *L2ServiceAttachmentList) DeepCopyInto(out *L2ServiceAttachmentList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*L2ServiceAttachmentList) DeepCopyObject ¶
func (in *L2ServiceAttachmentList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type L2ServiceAttachmentSpec ¶
type L2ServiceAttachmentSpec struct { // +kubebuilder:validation:MinItems:=1 L2Services []string `json:"L2Services"` ConnectionPoint string `json:"ConnectionPoint"` // +kubebuilder:validation:Enum=kernel;dpdk PodInterfaceType string `json:"PodInterfaceType,omitempty"` // +kubebuilder:validation:Enum=trunk;access;selectivetrunk VlanType string `json:"VlanType"` // +kubebuilder:validation:Enum=ovs;host-device Implementation string `json:"Implementation,omitempty"` }
L2ServiceAttachmentSpec defines the desired state of L2ServiceAttachment
func (*L2ServiceAttachmentSpec) DeepCopy ¶
func (in *L2ServiceAttachmentSpec) DeepCopy() *L2ServiceAttachmentSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new L2ServiceAttachmentSpec.
func (*L2ServiceAttachmentSpec) DeepCopyInto ¶
func (in *L2ServiceAttachmentSpec) DeepCopyInto(out *L2ServiceAttachmentSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type L2ServiceAttachmentStatus ¶
type L2ServiceAttachmentStatus struct { // +kubebuilder:validation:Enum=pending;ready;error;terminating;deleted Phase string `json:"Phase,omitempty"` Message string `json:"Message,omitempty"` }
L2ServiceAttachmentStatus defines the observed state of L2ServiceAttachment
func (*L2ServiceAttachmentStatus) DeepCopy ¶
func (in *L2ServiceAttachmentStatus) DeepCopy() *L2ServiceAttachmentStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new L2ServiceAttachmentStatus.
func (*L2ServiceAttachmentStatus) DeepCopyInto ¶
func (in *L2ServiceAttachmentStatus) DeepCopyInto(out *L2ServiceAttachmentStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type L2ServiceList ¶
type L2ServiceList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []L2Service `json:"items"` }
L2ServiceList contains a list of L2Service
func (*L2ServiceList) DeepCopy ¶
func (in *L2ServiceList) DeepCopy() *L2ServiceList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new L2ServiceList.
func (*L2ServiceList) DeepCopyInto ¶
func (in *L2ServiceList) DeepCopyInto(out *L2ServiceList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*L2ServiceList) DeepCopyObject ¶
func (in *L2ServiceList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type L2ServiceSpec ¶
type L2ServiceSpec struct { // +kubebuilder:validation:Minimum:=1 // +kubebuilder:validation:Maximum:=4094 SegmentationID uint16 `json:"SegmentationID"` // +kubebuilder:validation:MaxItems:=2 Subnets []string `json:"Subnets,omitempty"` }
L2ServiceSpec defines the desired state of L2Service
func (*L2ServiceSpec) DeepCopy ¶
func (in *L2ServiceSpec) DeepCopy() *L2ServiceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new L2ServiceSpec.
func (*L2ServiceSpec) DeepCopyInto ¶
func (in *L2ServiceSpec) DeepCopyInto(out *L2ServiceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type L2ServiceStatus ¶
type L2ServiceStatus struct { ConnectionPoints []string `json:"ConnectionPoints,omitempty"` // +kubebuilder:validation:Enum=pending;ready;error;terminating;deleted Phase string `json:"Phase,omitempty"` Message string `json:"Message,omitempty"` }
L2ServiceStatus defines the observed state of L2Service
func (*L2ServiceStatus) DeepCopy ¶
func (in *L2ServiceStatus) DeepCopy() *L2ServiceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new L2ServiceStatus.
func (*L2ServiceStatus) DeepCopyInto ¶
func (in *L2ServiceStatus) DeepCopyInto(out *L2ServiceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Route ¶
type Route struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec RouteSpec `json:"spec,omitempty"` Status RouteStatus `json:"status,omitempty"` }
Route is the Schema for the routes API
func (*Route) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Route.
func (*Route) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Route) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RouteList ¶
type RouteList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Route `json:"items"` }
RouteList contains a list of Route
func (*RouteList) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteList.
func (*RouteList) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*RouteList) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type RouteSpec ¶
type RouteSpec struct { Prefix string `json:"Prefix"` Mask uint8 `json:"Mask"` NextHop string `json:"NextHop"` }
RouteSpec defines the desired state of Route
func (*RouteSpec) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteSpec.
func (*RouteSpec) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RouteStatus ¶
type RouteStatus struct { }
RouteStatus defines the observed state of Route
func (*RouteStatus) DeepCopy ¶
func (in *RouteStatus) DeepCopy() *RouteStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RouteStatus.
func (*RouteStatus) DeepCopyInto ¶
func (in *RouteStatus) DeepCopyInto(out *RouteStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Subnet ¶
type Subnet struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec SubnetSpec `json:"spec,omitempty"` Status SubnetStatus `json:"status,omitempty"` }
Subnet is the Schema for the subnets API
func (*Subnet) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Subnet.
func (*Subnet) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Subnet) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SubnetDNS ¶
type SubnetDNS struct { Nameservers []string `json:"Nameservers,omitempty"` Domain string `json:"Domain,omitempty"` Search []string `json:"Search,omitempty"` }
SubnetDNS contains DNS configurations
func (*SubnetDNS) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetDNS.
func (*SubnetDNS) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SubnetList ¶
type SubnetList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Subnet `json:"items"` }
SubnetList contains a list of Subnet
func (*SubnetList) DeepCopy ¶
func (in *SubnetList) DeepCopy() *SubnetList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetList.
func (*SubnetList) DeepCopyInto ¶
func (in *SubnetList) DeepCopyInto(out *SubnetList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*SubnetList) DeepCopyObject ¶
func (in *SubnetList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type SubnetSpec ¶
type SubnetSpec struct { // +kubebuilder:validation:Enum=whereabouts Ipam string `json:"Ipam"` Address string `json:"Address"` Mask int16 `json:"Mask"` AllocationPool []IPPool `json:"AllocationPool,omitempty"` Routes []string `json:"Routes,omitempty"` DNS SubnetDNS `json:"Dns,omitempty"` // +kubebuilder:validation:Enum=v4;v6 Type string `json:"Type"` }
SubnetSpec defines the desired state of Subnet
func (*SubnetSpec) DeepCopy ¶
func (in *SubnetSpec) DeepCopy() *SubnetSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetSpec.
func (*SubnetSpec) DeepCopyInto ¶
func (in *SubnetSpec) DeepCopyInto(out *SubnetSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SubnetStatus ¶
type SubnetStatus struct { }
SubnetStatus defines the observed state of Subnet
func (*SubnetStatus) DeepCopy ¶
func (in *SubnetStatus) DeepCopy() *SubnetStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SubnetStatus.
func (*SubnetStatus) DeepCopyInto ¶
func (in *SubnetStatus) DeepCopyInto(out *SubnetStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SupportedCni ¶
type SupportedCni struct { Name string `json:"Name"` // +kubebuilder:validation:MinItems:=1 SupportedInterfaceTypes []string `json:"SupportedInterfaceTypes"` Opts string `json:"Opts,omitempty"` }
func (*SupportedCni) DeepCopy ¶
func (in *SupportedCni) DeepCopy() *SupportedCni
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SupportedCni.
func (*SupportedCni) DeepCopyInto ¶
func (in *SupportedCni) DeepCopyInto(out *SupportedCni)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.