Documentation ¶
Overview ¶
+kubebuilder:object:generate=true
Package v1 contains core API types used by most ndd resources. +kubebuilder:object:generate=true
Index ¶
- Constants
- func NotReady() nddv1.Condition
- func Ready() nddv1.Condition
- type AddressAllocationStrategy
- func (in *AddressAllocationStrategy) DeepCopy() *AddressAllocationStrategy
- func (in *AddressAllocationStrategy) DeepCopyInto(out *AddressAllocationStrategy)
- func (r *AddressAllocationStrategy) GetGatewayAllocation() string
- func (r *AddressAllocationStrategy) GetInfraItfcePrefixLengthIpv4() uint32
- func (r *AddressAllocationStrategy) GetInfraItfcePrefixLengthIpv6() uint32
- type EpgInfo
- type GatewayAllocation
- type InterfaceSelector
- func (in *InterfaceSelector) DeepCopy() *InterfaceSelector
- func (in *InterfaceSelector) DeepCopyInto(out *InterfaceSelector)
- func (r *InterfaceSelector) GetEpgNodeItfceInfo(is InterfaceSelectorKind) (EpgInfo, map[string]ItfceInfo, error)
- func (r *InterfaceSelector) GetTags() map[string]string
- func (r *InterfaceSelector) HasKind() (InterfaceSelectorKind, bool)
- type InterfaceSelectorKey
- type InterfaceSelectorKind
- type InterfaceSelectors
- type ItfceInfo
- type Register
- type Tag
Constants ¶
const ( ConditionReasonReady nddv1.ConditionReason = "Ready" ConditionReasonNotReady nddv1.ConditionReason = "NotReady" )
ConditionReasons a package is or is not installed.
const ( // A ConditionKindAllocationReady indicates whether the allocation is ready. ConditionKindAllocationReady nddv1.ConditionKind = "Ready" )
Condition Kinds.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddressAllocationStrategy ¶ added in v0.0.16
type AddressAllocationStrategy struct { // +kubebuilder:validation:Enum=`first`;`last` // +kubebuilder:default:="first" GatewayAllocation *GatewayAllocation `json:"gateway-allocation,omitempty"` // +kubebuilder:default:=31 InfraItfcePrefixLengthIpv4 *uint32 `json:"infra-interface-prefixlength-ipv4,omitempty"` // +kubebuilder:default:=127 InfraItfcePrefixLengthIpv6 *uint32 `json:"infra-interface-prefixlength-ipv6,omitempty"` }
func (*AddressAllocationStrategy) DeepCopy ¶ added in v0.0.18
func (in *AddressAllocationStrategy) DeepCopy() *AddressAllocationStrategy
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AddressAllocationStrategy.
func (*AddressAllocationStrategy) DeepCopyInto ¶ added in v0.0.18
func (in *AddressAllocationStrategy) DeepCopyInto(out *AddressAllocationStrategy)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*AddressAllocationStrategy) GetGatewayAllocation ¶ added in v0.0.16
func (r *AddressAllocationStrategy) GetGatewayAllocation() string
func (*AddressAllocationStrategy) GetInfraItfcePrefixLengthIpv4 ¶ added in v0.0.18
func (r *AddressAllocationStrategy) GetInfraItfcePrefixLengthIpv4() uint32
func (*AddressAllocationStrategy) GetInfraItfcePrefixLengthIpv6 ¶ added in v0.0.18
func (r *AddressAllocationStrategy) GetInfraItfcePrefixLengthIpv6() uint32
type EpgInfo ¶ added in v0.0.4
type EpgInfo struct { EpgName string ItfceKind string // extra selector for ipvlan, sriov e.g. VlanID uint32 Ipv4Prefixes []*string Ipv6Prefixes []*string ItfceSelectorKind InterfaceSelectorKind // the origin interface selector kind ItfceSelectorTags []*Tag // used to keep track of the origin how the selection was done, we add this to the prefixes }
func (*EpgInfo) DeepCopy ¶ added in v0.0.5
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EpgInfo.
func (*EpgInfo) DeepCopyInto ¶ added in v0.0.5
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GatewayAllocation ¶ added in v0.0.16
type GatewayAllocation string
const ( GatewayAllocationFirst GatewayAllocation = "first" GatewayAllocationLast GatewayAllocation = "last" )
func (GatewayAllocation) String ¶ added in v0.0.16
func (s GatewayAllocation) String() string
type InterfaceSelector ¶ added in v0.0.4
type InterfaceSelector struct { Tag []*Tag `json:"tag,omitempty"` Ipv4Prefixes []*string `json:"ipv4-prefixes,omitempty"` Ipv6Prefixes []*string `json:"ipv6-prefixes,omitempty"` Vlan *uint32 `json:"vlan,omitempty"` }
func (*InterfaceSelector) DeepCopy ¶ added in v0.0.5
func (in *InterfaceSelector) DeepCopy() *InterfaceSelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InterfaceSelector.
func (*InterfaceSelector) DeepCopyInto ¶ added in v0.0.5
func (in *InterfaceSelector) DeepCopyInto(out *InterfaceSelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*InterfaceSelector) GetEpgNodeItfceInfo ¶ added in v0.0.4
func (r *InterfaceSelector) GetEpgNodeItfceInfo(is InterfaceSelectorKind) (EpgInfo, map[string]ItfceInfo, error)
func (*InterfaceSelector) GetTags ¶ added in v0.0.4
func (r *InterfaceSelector) GetTags() map[string]string
func (*InterfaceSelector) HasKind ¶ added in v0.0.19
func (r *InterfaceSelector) HasKind() (InterfaceSelectorKind, bool)
type InterfaceSelectorKey ¶ added in v0.0.4
type InterfaceSelectorKey string
const ( InterfaceSelectorKeyKind InterfaceSelectorKey = "kind" InterfaceSelectorKeyEndpointGroup InterfaceSelectorKey = "endpoint-group" InterfaceSelectorKeyInterfaceKind InterfaceSelectorKey = "itfce-kind" )
func (InterfaceSelectorKey) String ¶ added in v0.0.4
func (s InterfaceSelectorKey) String() string
type InterfaceSelectorKind ¶ added in v0.0.4
type InterfaceSelectorKind string
const ( InterfaceSelectorKindEndpointGroup InterfaceSelectorKind = "epg" InterfaceSelectorKindEndpointGroupInterfaceKind InterfaceSelectorKind = "epg-itfce" InterfaceSelectorKindNodeInterface InterfaceSelectorKind = "node-itfce" InterfaceSelectorKindUnknown InterfaceSelectorKind = "unknown" )
func (InterfaceSelectorKind) String ¶ added in v0.0.4
func (s InterfaceSelectorKind) String() string
type InterfaceSelectors ¶ added in v0.0.19
type InterfaceSelectors struct { // Conditions of the resource. // +optional InterfaceSelectors []InterfaceSelector `json:"interface-slector,omitempty"` }
func (*InterfaceSelectors) GetEpgAndNodeItfceInfo ¶ added in v0.0.20
func (r *InterfaceSelectors) GetEpgAndNodeItfceInfo() ([]*EpgInfo, map[string]*ItfceInfo, error)
GetEpgAndNodeItfceInfo transforms the user interface selection input in an easier programatic usage we retain the information. Also validation is performed to ensure the user input is validated
type ItfceInfo ¶ added in v0.0.4
type ItfceInfo struct { ItfceName string VlanID uint32 Ipv4Prefixes []*string Ipv6Prefixes []*string ItfceSelectorKind InterfaceSelectorKind // the origin interface selector kind ItfceSelectorTags []*Tag // used to keep track of the origin how the selection was done, we add this to the prefixes }
func (*ItfceInfo) DeepCopy ¶ added in v0.0.5
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ItfceInfo.
func (*ItfceInfo) DeepCopyInto ¶ added in v0.0.5
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Register ¶ added in v0.0.3
func (*Register) DeepCopy ¶ added in v0.0.3
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Register.
func (*Register) DeepCopyInto ¶ added in v0.0.3
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.