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 DeploymentPolicy
- type EpgInfo
- type GatewayAllocation
- type HealthCondition
- type HealthConditionedStatus
- func (in *HealthConditionedStatus) DeepCopy() *HealthConditionedStatus
- func (in *HealthConditionedStatus) DeepCopyInto(out *HealthConditionedStatus)
- func (s *HealthConditionedStatus) Equal(other *HealthConditionedStatus) bool
- func (s *HealthConditionedStatus) GetHealthCondition(resourceName, hck string) HealthCondition
- func (s *HealthConditionedStatus) SetHealthConditions(c ...HealthCondition)
- 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 OdaInfo
- func (in *OdaInfo) DeepCopy() *OdaInfo
- func (in *OdaInfo) DeepCopyInto(out *OdaInfo)
- func (x *OdaInfo) GetAvailabilityZone() string
- func (x *OdaInfo) GetDeployment() string
- func (x *OdaInfo) GetOda(k string) Tag
- func (x *OdaInfo) GetOrganization() string
- func (x *OdaInfo) SetAvailabilityZone(s string)
- func (x *OdaInfo) SetDeployment(s string)
- func (x *OdaInfo) SetOrganization(s string)
- func (s *OdaInfo) SetTags(c ...Tag)
- type OdaKind
- type Register
- type ResourceSpec
- type ResourceStatus
- type Tag
Constants ¶
const ( ConditionReasonReady nddv1.ConditionReason = "Ready" ConditionReasonNotReady nddv1.ConditionReason = "NotReady" )
ConditionReasons a package is or is not installed.
const ( LabelNddaDeploymentPolicy string = "ndda-deployment-policy" // planned or active LabelNddaOwner string = "ndda-owner" // represented as org.depl.az.nddokind.crname LabelNddaOwnerGeneration string = "ndda-owner-generation" LabelNddaDevice string = "ndda-device" LabelNddaItfce string = "ndda-interface" LabelNddaSubInterface string = "ndda-subinterface" LabelNddaNetworkInstance string = "ndda-network-instance" LabelNddaEndpointGroup string = "ndds-endpoint-group" LabelNddaOrganization string = "ndda-organization" LabelNddaDeployment string = "ndda-deployment" LabelNddaAvailabilityZone string = "ndda-availability-zone" )
const ( // A ConditionKindAllocationReady indicates whether the allocation is ready. ConditionKindReady 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 DeploymentPolicy ¶ added in v0.0.62
type DeploymentPolicy string
const ( // DeploymentPlanned means the intent will allocate resources but will not // be deployed on the network element DeploymentPlanned DeploymentPolicy = "planned" // DeploymentActive means the intent will be deployed on the network elements DeploymentActive DeploymentPolicy = "active" )
type EpgInfo ¶ added in v0.0.4
type EpgInfo struct { EpgName string ItfceKind string // extra selector for ipvlan, sriov e.g. InnerVlanId uint16 OuterVlanId uint16 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 HealthCondition ¶ added in v0.0.77
type HealthCondition struct { // Kind of this condition. At most one of each condition kind may apply to // a resource at any point in time. ResourceName string `json:"resourceName"` HealthKind string `json:"healthKind"` // Status of this condition; is it currently True, False, or Unknown? Status corev1.ConditionStatus `json:"status"` // LastTransitionTime is the last time this condition transitioned from one // status to another. LastTransitionTime metav1.Time `json:"lastTransitionTime"` // A Reason for this condition's last transition from one status to another. Reason string `json:"reason,omitempty"` // A Message containing details about this condition's last transition from // one status to another, if any. // +optional Message string `json:"message,omitempty"` }
func (*HealthCondition) DeepCopy ¶ added in v0.0.77
func (in *HealthCondition) DeepCopy() *HealthCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealthCondition.
func (*HealthCondition) DeepCopyInto ¶ added in v0.0.77
func (in *HealthCondition) DeepCopyInto(out *HealthCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (HealthCondition) Equal ¶ added in v0.0.77
func (c HealthCondition) Equal(other HealthCondition) bool
Equal returns true if the condition is identical to the supplied condition, ignoring the LastTransitionTime.
func (HealthCondition) WithMessage ¶ added in v0.0.77
func (c HealthCondition) WithMessage(msg string) HealthCondition
WithMessage returns a condition by adding the provided message to existing condition.
type HealthConditionedStatus ¶ added in v0.0.77
type HealthConditionedStatus struct { // Status of the health in percentage Percentage uint32 `json:"percentage,omitempty"` // LastTransitionTime is the last time this condition transitioned from one // status to another. LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty"` // HealthConditions that determine the health status. // +optional HealthConditions []HealthCondition `json:"healthConditions,omitempty"` }
func NewHealthConditionedStatus ¶ added in v0.0.78
func NewHealthConditionedStatus(p uint32, c ...HealthCondition) *HealthConditionedStatus
NewConditionedStatus returns a stat with the supplied conditions set.
func (*HealthConditionedStatus) DeepCopy ¶ added in v0.0.77
func (in *HealthConditionedStatus) DeepCopy() *HealthConditionedStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HealthConditionedStatus.
func (*HealthConditionedStatus) DeepCopyInto ¶ added in v0.0.77
func (in *HealthConditionedStatus) DeepCopyInto(out *HealthConditionedStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*HealthConditionedStatus) Equal ¶ added in v0.0.77
func (s *HealthConditionedStatus) Equal(other *HealthConditionedStatus) bool
Equal returns true if the status is identical to the supplied status, ignoring the LastTransitionTimes and order of statuses.
func (*HealthConditionedStatus) GetHealthCondition ¶ added in v0.0.78
func (s *HealthConditionedStatus) GetHealthCondition(resourceName, hck string) HealthCondition
GetCondition returns the condition for the given ConditionKind if exists, otherwise returns nil
func (*HealthConditionedStatus) SetHealthConditions ¶ added in v0.0.77
func (s *HealthConditionedStatus) SetHealthConditions(c ...HealthCondition)
SetConditions sets the supplied conditions, replacing any existing conditions of the same kind. This is a no-op if all supplied conditions are identical, ignoring the last transition time, to those already set.
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"` // kubebuilder:validation:Minimum=0 // kubebuilder:validation:Maximum=4094 // +kubebuilder:default:=0 OuterVlanId *uint16 `json:"outer-vlan-id,omitempty"` // kubebuilder:validation:Minimum=0 // kubebuilder:validation:Maximum=4094 // +kubebuilder:default:=0 InnerVlanId *uint16 `json:"inner-vlan-id,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-selector,omitempty"` }
func (*InterfaceSelectors) DeepCopy ¶ added in v0.0.29
func (in *InterfaceSelectors) DeepCopy() *InterfaceSelectors
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InterfaceSelectors.
func (*InterfaceSelectors) DeepCopyInto ¶ added in v0.0.29
func (in *InterfaceSelectors) DeepCopyInto(out *InterfaceSelectors)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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 InnerVlanId uint16 OuterVlanId uint16 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 OdaInfo ¶ added in v0.0.43
type OdaInfo struct {
Oda []Tag `json:"oda,omitempty"`
}
func NewOdaInfo ¶ added in v0.0.43
func (*OdaInfo) DeepCopy ¶ added in v0.0.44
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OdaInfo.
func (*OdaInfo) DeepCopyInto ¶ added in v0.0.44
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*OdaInfo) GetAvailabilityZone ¶ added in v0.0.43
func (*OdaInfo) GetDeployment ¶ added in v0.0.43
func (*OdaInfo) GetOda ¶ added in v0.0.43
GetCondition returns the condition for the given ConditionKind if exists, otherwise returns nil
func (*OdaInfo) GetOrganization ¶ added in v0.0.43
func (*OdaInfo) SetAvailabilityZone ¶ added in v0.0.43
func (*OdaInfo) SetDeployment ¶ added in v0.0.43
func (*OdaInfo) SetOrganization ¶ added in v0.0.43
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.
func (*Register) GetRegister ¶ added in v0.0.3
type ResourceSpec ¶ added in v0.0.62
type ResourceSpec struct { // DeploymentPolicy specifies what will happen to the deployment // +kubebuilder:validation:Enum=`planned`;`active` // +kubebuilder:default=planned DeploymentPolicy DeploymentPolicy `json:"deployment-policy,omitempty"` }
func (*ResourceSpec) DeepCopy ¶ added in v0.0.64
func (in *ResourceSpec) DeepCopy() *ResourceSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSpec.
func (*ResourceSpec) DeepCopyInto ¶ added in v0.0.64
func (in *ResourceSpec) DeepCopyInto(out *ResourceSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceStatus ¶ added in v0.0.63
type ResourceStatus struct { // the condition status nddv1.ConditionedStatus `json:",inline"` // the health condition status Health HealthConditionedStatus `json:"health,omitempty"` // the oda info OdaInfo `json:",inline"` }
ResourceStatus represents the observed state of a managed resource.
func (*ResourceStatus) DeepCopy ¶ added in v0.0.64
func (in *ResourceStatus) DeepCopy() *ResourceStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceStatus.
func (*ResourceStatus) DeepCopyInto ¶ added in v0.0.64
func (in *ResourceStatus) DeepCopyInto(out *ResourceStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Tag ¶
func (*Tag) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Tag.
func (*Tag) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.