extcomm

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Overview

Package genid is the internal version of the API.

Index

Constants

View Source
const (
	EXTCOMMClaimPlural   = "extcommclaims"
	EXTCOMMClaimSingular = "extcommclaim"
)
View Source
const (
	EXTCOMMEntryPlural   = "extcommentries"
	EXTCOMMEntrySingular = "extcommentry"
)
View Source
const (
	EXTCOMMIndexPlural   = "extcommindices"
	EXTCOMMIndexSingular = "extcommndex"
)
View Source
const (
	GroupName = "extcomm.be.kuid.dev"
	Version   = runtime.APIVersionInternal
)
View Source
const EXTCOMMID_Min = 0

Variables

View Source
var (
	EXTCOMMClaimShortNames = []string{}
	EXTCOMMClaimCategories = []string{"kuid", "knet"}
)
View Source
var (
	EXTCOMMClaimKind     = reflect.TypeOf(EXTCOMMClaim{}).Name()
	EXTCOMMClaimListKind = reflect.TypeOf(EXTCOMMClaimList{}).Name()
)
View Source
var (
	EXTCOMMEntryShortNames = []string{}
	EXTCOMMEntryCategories = []string{"kuid", "knet"}
)
View Source
var (
	EXTCOMMEntryKind     = reflect.TypeOf(EXTCOMMEntry{}).Name()
	EXTCOMMEntryListKind = reflect.TypeOf(EXTCOMMEntryList{}).Name()
)
View Source
var (
	EXTCOMMIndexShortNames = []string{}
	EXTCOMMIndexCategories = []string{"kuid", "knet"}
)
View Source
var (
	EXTCOMMIndexKind     = reflect.TypeOf(EXTCOMMIndex{}).Name()
	EXTCOMMIndexListKind = reflect.TypeOf(EXTCOMMIndexList{}).Name()
)
View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var EXTCOMMID_MaxBits = map[ExtendedCommunityType]int{
	ExtendedCommunityType_Invalid:     0,
	ExtendedCommunityType_2byteAS:     32,
	ExtendedCommunityType_4byteAS:     16,
	ExtendedCommunityType_IPv4Address: 16,
	ExtendedCommunityType_Opaque:      48,
}
View Source
var EXTCOMMID_MaxValue = map[ExtendedCommunityType]uint64{
	ExtendedCommunityType_Invalid:     1<<EXTCOMMID_MaxBits[ExtendedCommunityType_Invalid] - 1,
	ExtendedCommunityType_2byteAS:     1<<EXTCOMMID_MaxBits[ExtendedCommunityType_2byteAS] - 1,
	ExtendedCommunityType_4byteAS:     1<<EXTCOMMID_MaxBits[ExtendedCommunityType_4byteAS] - 1,
	ExtendedCommunityType_IPv4Address: 1<<EXTCOMMID_MaxBits[ExtendedCommunityType_IPv4Address] - 1,
	ExtendedCommunityType_Opaque:      1<<EXTCOMMID_MaxBits[ExtendedCommunityType_Opaque] - 1,
}
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: Version}

Functions

func BuildEXTCOMMClaim

func BuildEXTCOMMClaim(meta metav1.ObjectMeta, spec *EXTCOMMClaimSpec, status *EXTCOMMClaimStatus) backend.ClaimObject

BuildEXTCOMMClaim returns a reource from a client Object a Spec/Status

func BuildEXTCOMMEntry

func BuildEXTCOMMEntry(meta metav1.ObjectMeta, spec *EXTCOMMEntrySpec, status *EXTCOMMEntryStatus) backend.EntryObject

func EXTCOMMClaimFromRuntime

func EXTCOMMClaimFromRuntime(ru runtime.Object) (backend.ClaimObject, error)

func EXTCOMMClaimFromUnstructured

func EXTCOMMClaimFromUnstructured(ru runtime.Unstructured) (backend.ClaimObject, error)

func EXTCOMMEntryFromRuntime

func EXTCOMMEntryFromRuntime(ru runtime.Object) (backend.EntryObject, error)

func EXTCOMMEntryFromUnstructured

func EXTCOMMEntryFromUnstructured(ru runtime.Unstructured) (backend.EntryObject, error)

func EXTCOMMIndexFromRuntime

func EXTCOMMIndexFromRuntime(ru runtime.Object) (backend.IndexObject, error)

func GetEXTCOMMEntry

func GetEXTCOMMEntry(k store.Key, vrange, id string, labels map[string]string) backend.EntryObject

func GetMaxClaimRange

func GetMaxClaimRange(extCommType ExtendedCommunityType, id uint64) string

func GetMinClaimRange

func GetMinClaimRange(id uint64) string

func Kind

func Kind(kind string) schema.GroupKind

func NewChoreoClaimInvoker

func NewChoreoClaimInvoker(be backend.Backend) options.BackendInvoker

func NewChoreoIndexInvoker

func NewChoreoIndexInvoker(be backend.Backend) options.BackendInvoker

func Resource

func Resource(resource string) schema.GroupResource

Types

type EXTCOMMClaim

type EXTCOMMClaim struct {
	metav1.TypeMeta   `json:",inline" yaml:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	Spec   EXTCOMMClaimSpec   `json:"spec,omitempty" yaml:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
	Status EXTCOMMClaimStatus `json:"status,omitempty" yaml:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:object:root=true +kubebuilder:storageversion +kubebuilder:subresource:status +kubebuilder:resource:categories={kuid} EXTCOMMClaim is the Schema for the EXTCOMMClaim API

func (*EXTCOMMClaim) DeepCopy

func (in *EXTCOMMClaim) DeepCopy() *EXTCOMMClaim

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

func (*EXTCOMMClaim) DeepCopyInto

func (in *EXTCOMMClaim) DeepCopyInto(out *EXTCOMMClaim)

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

func (*EXTCOMMClaim) DeepCopyObject

func (in *EXTCOMMClaim) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*EXTCOMMClaim) FieldLabelConversion

func (r *EXTCOMMClaim) FieldLabelConversion() runtime.FieldLabelConversionFunc

FieldLabelConversion is the schema conversion function for normalizing the FieldSelector for the resource

func (*EXTCOMMClaim) FieldSelector

func (r *EXTCOMMClaim) FieldSelector() func(ctx context.Context, fieldSelector fields.Selector) (resource.Filter, error)

func (EXTCOMMClaim) GetCategories

func (EXTCOMMClaim) GetCategories() []string

GetCategories return the categories of the resource GetCategories implements resource.Object

func (*EXTCOMMClaim) GetChoreoAPIVersion

func (r *EXTCOMMClaim) GetChoreoAPIVersion() string

func (*EXTCOMMClaim) GetClaimID

func (r *EXTCOMMClaim) GetClaimID(typ string, id uint64) tree.ID

func (*EXTCOMMClaim) GetClaimLabels

func (r *EXTCOMMClaim) GetClaimLabels() labels.Set

func (*EXTCOMMClaim) GetClaimRequest

func (r *EXTCOMMClaim) GetClaimRequest() string

func (*EXTCOMMClaim) GetClaimResponse

func (r *EXTCOMMClaim) GetClaimResponse() string

func (*EXTCOMMClaim) GetClaimSet

func (r *EXTCOMMClaim) GetClaimSet(typ string) (map[string]tree.ID, sets.Set[string], error)

func (*EXTCOMMClaim) GetClaimType

func (r *EXTCOMMClaim) GetClaimType() backend.ClaimType

func (*EXTCOMMClaim) GetCondition

GetCondition returns the condition bVLANed on the condition kind

func (EXTCOMMClaim) GetGroupVersionResource

func (EXTCOMMClaim) GetGroupVersionResource() schema.GroupVersionResource

func (*EXTCOMMClaim) GetIndex

func (r *EXTCOMMClaim) GetIndex() string

func (*EXTCOMMClaim) GetKey

func (r *EXTCOMMClaim) GetKey() store.Key

func (*EXTCOMMClaim) GetLabelSelector

func (r *EXTCOMMClaim) GetLabelSelector() (labels.Selector, error)

func (*EXTCOMMClaim) GetNamespacedName

func (r *EXTCOMMClaim) GetNamespacedName() types.NamespacedName

func (*EXTCOMMClaim) GetObjectMeta

func (r *EXTCOMMClaim) GetObjectMeta() *metav1.ObjectMeta

GetObjectMeta implements resource.Object GetObjectMeta implements resource.Object

func (*EXTCOMMClaim) GetOwnerSelector

func (r *EXTCOMMClaim) GetOwnerSelector() (labels.Selector, error)

GetOwnerSelector selects the route bVLANed on the name of the claim

func (*EXTCOMMClaim) GetRange

func (r *EXTCOMMClaim) GetRange() *string

func (*EXTCOMMClaim) GetRangeID

func (r *EXTCOMMClaim) GetRangeID(typ string) (tree.Range, error)

func (*EXTCOMMClaim) GetSelector

func (r *EXTCOMMClaim) GetSelector() *metav1.LabelSelector

func (EXTCOMMClaim) GetShortNames

func (EXTCOMMClaim) GetShortNames() []string

GetShortNames returns the shortnames for the resource GetShortNames implements resource.Object

func (EXTCOMMClaim) GetSingularName

func (EXTCOMMClaim) GetSingularName() string

GetSingularName returns the singular name of the resource GetSingularName implements resource.Object

func (*EXTCOMMClaim) GetStaticID

func (r *EXTCOMMClaim) GetStaticID() *uint64

func (*EXTCOMMClaim) GetStaticTreeID

func (r *EXTCOMMClaim) GetStaticTreeID(typ string) tree.ID

func (*EXTCOMMClaim) GetStatus

func (r *EXTCOMMClaim) GetStatus() resource.StatusSubResource

GetStatus return the resource.StatusSubResource interface

func (*EXTCOMMClaim) GetStatusClaimID added in v0.0.10

func (r *EXTCOMMClaim) GetStatusClaimID(typ string) tree.ID

func (*EXTCOMMClaim) GetStatusID

func (r *EXTCOMMClaim) GetStatusID() *uint64

func (*EXTCOMMClaim) GetTable

func (r *EXTCOMMClaim) GetTable(typ string, to, from uint64) table.Table

func (*EXTCOMMClaim) IsEqual

func (r *EXTCOMMClaim) IsEqual(ctx context.Context, obj, old runtime.Object) bool

IsEqual returns a bool indicating if the desired state of both resources is equal or not

func (*EXTCOMMClaim) IsOwner

func (r *EXTCOMMClaim) IsOwner(labels labels.Set) bool

func (*EXTCOMMClaim) IsStatusEqual

func (r *EXTCOMMClaim) IsStatusEqual(ctx context.Context, obj, old runtime.Object) bool

IsStatusEqual returns a bool indicating if the status of both resources is equal or not

func (EXTCOMMClaim) IsStorageVersion

func (EXTCOMMClaim) IsStorageVersion() bool

IsStorageVersion returns true -- Config is used VLAN the internal version. IsStorageVersion implements resource.Object

func (EXTCOMMClaim) NamespaceScoped

func (EXTCOMMClaim) NamespaceScoped() bool

NamespaceScoped returns true to indicate Fortune is a namespaced resource. NamespaceScoped implements resource.Object

func (EXTCOMMClaim) New

func (EXTCOMMClaim) New() runtime.Object

New return an empty resource New implements resource.Object

func (EXTCOMMClaim) NewList

func (EXTCOMMClaim) NewList() runtime.Object

NewList return an empty resourceList NewList implements resource.Object

func (*EXTCOMMClaim) PrepareForCreate

func (r *EXTCOMMClaim) PrepareForCreate(ctx context.Context, obj runtime.Object)

func (*EXTCOMMClaim) PrepareForStatusUpdate

func (r *EXTCOMMClaim) PrepareForStatusUpdate(ctx context.Context, obj, old runtime.Object)

PrepareForStatusUpdate prepares the status update

func (*EXTCOMMClaim) PrepareForUpdate

func (r *EXTCOMMClaim) PrepareForUpdate(ctx context.Context, obj, old runtime.Object)

func (*EXTCOMMClaim) SetConditions

func (r *EXTCOMMClaim) SetConditions(c ...condition.Condition)

SetConditions sets the conditions on the resource. it allows for 0, 1 or more conditions to be set at once

func (*EXTCOMMClaim) SetStatusID

func (r *EXTCOMMClaim) SetStatusID(s *uint64)

func (*EXTCOMMClaim) SetStatusRange

func (r *EXTCOMMClaim) SetStatusRange(s *string)

func (*EXTCOMMClaim) TableConvertor

func (r *EXTCOMMClaim) TableConvertor() func(gr schema.GroupResource) rest.TableConvertor

TableConvertor return the table format of the resource

func (*EXTCOMMClaim) ValidateCreate

func (r *EXTCOMMClaim) ValidateCreate(ctx context.Context, obj runtime.Object) field.ErrorList

ValidateCreate statically validates

func (*EXTCOMMClaim) ValidateEXTCOMMClaimType

func (r *EXTCOMMClaim) ValidateEXTCOMMClaimType() error

func (*EXTCOMMClaim) ValidateEXTCOMMID

func (r *EXTCOMMClaim) ValidateEXTCOMMID(extCommType ExtendedCommunityType) error

func (*EXTCOMMClaim) ValidateEXTCOMMRange

func (r *EXTCOMMClaim) ValidateEXTCOMMRange(extCommType ExtendedCommunityType) error

func (*EXTCOMMClaim) ValidateOwner

func (r *EXTCOMMClaim) ValidateOwner(labels labels.Set) error

func (*EXTCOMMClaim) ValidateStatusUpdate

func (r *EXTCOMMClaim) ValidateStatusUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList

ValidateStatusUpdate validates status updates

func (*EXTCOMMClaim) ValidateSyntax

func (r *EXTCOMMClaim) ValidateSyntax(s string) field.ErrorList

func (*EXTCOMMClaim) ValidateUpdate

func (r *EXTCOMMClaim) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList

type EXTCOMMClaimFilter

type EXTCOMMClaimFilter struct {
	// Name filters by the name of the objects
	Name string `protobuf:"bytes,1,opt,name=name"`

	// Namespace filters by the namespace of the objects
	Namespace string `protobuf:"bytes,2,opt,name=namespace"`
}

func (*EXTCOMMClaimFilter) DeepCopy

func (in *EXTCOMMClaimFilter) DeepCopy() *EXTCOMMClaimFilter

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

func (*EXTCOMMClaimFilter) DeepCopyInto

func (in *EXTCOMMClaimFilter) DeepCopyInto(out *EXTCOMMClaimFilter)

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

func (*EXTCOMMClaimFilter) Filter

func (r *EXTCOMMClaimFilter) Filter(ctx context.Context, obj runtime.Object) bool

type EXTCOMMClaimList

type EXTCOMMClaimList struct {
	metav1.TypeMeta `json:",inline" yaml:",inline"`
	metav1.ListMeta `json:"metadata,omitempty" yaml:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	Items           []EXTCOMMClaim `json:"items" yaml:"items" protobuf:"bytes,2,rep,name=items"`
}

EXTCOMMClaimList contains a list of EXTCOMMClaims +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*EXTCOMMClaimList) DeepCopy

func (in *EXTCOMMClaimList) DeepCopy() *EXTCOMMClaimList

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

func (*EXTCOMMClaimList) DeepCopyInto

func (in *EXTCOMMClaimList) DeepCopyInto(out *EXTCOMMClaimList)

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

func (*EXTCOMMClaimList) DeepCopyObject

func (in *EXTCOMMClaimList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*EXTCOMMClaimList) GetListMeta

func (r *EXTCOMMClaimList) GetListMeta() *metav1.ListMeta

GetListMeta returns the ListMeta GetListMeta implements the resource.ObjectList

type EXTCOMMClaimSpec

type EXTCOMMClaimSpec struct {
	// EXTCOMMIndex defines the EXTCOMM index for the EXTCOMM Claim
	Index string `json:"index" yaml:"index" protobuf:"bytes,1,opt,name=index"`
	// EXTCOMMID defines the EXTCOMM for the EXTCOMM claim
	ID *uint64 `json:"id,omitempty" yaml:"id,omitempty" protobuf:"bytes,2,opt,name=id"`
	// Range defines the EXTCOMM range for the EXTCOMM claim
	// The following notation is used: start-end <start-EXTCOMMID>-<end-EXTCOMMID>
	// the EXTCOMMs in the range must be consecutive
	Range *string `json:"range,omitempty" yaml:"range,omitempty" protobuf:"bytes,3,opt,name=range"`
	// ClaimLabels define the user defined labels and selector labels used
	// in resource claim
	common.ClaimLabels `json:",inline" yaml:",inline" protobuf:"bytes,4,opt,name=claimLabels"`
}

EXTCOMMClaimSpec defines the dEXTCOMMred state of EXTCOMMClaim

func (*EXTCOMMClaimSpec) DeepCopy

func (in *EXTCOMMClaimSpec) DeepCopy() *EXTCOMMClaimSpec

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

func (*EXTCOMMClaimSpec) DeepCopyInto

func (in *EXTCOMMClaimSpec) DeepCopyInto(out *EXTCOMMClaimSpec)

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

type EXTCOMMClaimStatus

type EXTCOMMClaimStatus struct {
	// ConditionedStatus provides the status of the IPClain using conditions
	// - a ready condition indicates the overall status of the resource
	condition.ConditionedStatus `json:",inline" yaml:",inline" protobuf:"bytes,1,opt,name=conditionedStatus"`
	// EXTCOMMID defines the EXTCOMM for the EXTCOMM claim
	// +optional
	ID *uint64 `json:"id,omitempty" yaml:"id,omitempty" protobuf:"bytes,2,opt,name=id"`
	// EXTCOMMRange defines the EXTCOMM range for the EXTCOMM claim
	// +optional
	Range *string `json:"range,omitempty" yaml:"range,omitempty" protobuf:"bytes,3,opt,name=range"`
	// ExpiryTime defines when the claim expires
	// +kubebuilder:validation:Optional
	// +optional
	ExpiryTime *string `json:"expiryTime,omitempty" yaml:"expiryTime,omitempty" protobuf:"bytes,4,opt,name=expiryTime"`
}

EXTCOMMClaimStatus defines the observed state of EXTCOMMClaim

func (EXTCOMMClaimStatus) CopyTo

CopyTo copies the content of the status subresource to a parent resource. CopyTo implements the resource.StatusSubResource

func (*EXTCOMMClaimStatus) DeepCopy

func (in *EXTCOMMClaimStatus) DeepCopy() *EXTCOMMClaimStatus

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

func (*EXTCOMMClaimStatus) DeepCopyInto

func (in *EXTCOMMClaimStatus) DeepCopyInto(out *EXTCOMMClaimStatus)

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

func (EXTCOMMClaimStatus) SubResourceName

func (EXTCOMMClaimStatus) SubResourceName() string

SubResourceName resturns the name of the subresource SubResourceName implements the resource.StatusSubResource

type EXTCOMMDynamicIDSyntaxValidator

type EXTCOMMDynamicIDSyntaxValidator struct {
	// contains filtered or unexported fields
}

func (*EXTCOMMDynamicIDSyntaxValidator) DeepCopy

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

func (*EXTCOMMDynamicIDSyntaxValidator) DeepCopyInto

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

func (*EXTCOMMDynamicIDSyntaxValidator) Validate

type EXTCOMMEntry

type EXTCOMMEntry struct {
	metav1.TypeMeta   `json:",inline" yaml:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	Spec   EXTCOMMEntrySpec   `json:"spec,omitempty" yaml:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
	Status EXTCOMMEntryStatus `json:"status,omitempty" yaml:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:object:root=true +kubebuilder:storageversion +kubebuilder:subresource:status +kubebuilder:resource:categories={kuid} EXTCOMMEntry is the Schema for the EXTCOMMentry API

func (*EXTCOMMEntry) DeepCopy

func (in *EXTCOMMEntry) DeepCopy() *EXTCOMMEntry

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

func (*EXTCOMMEntry) DeepCopyInto

func (in *EXTCOMMEntry) DeepCopyInto(out *EXTCOMMEntry)

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

func (*EXTCOMMEntry) DeepCopyObject

func (in *EXTCOMMEntry) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*EXTCOMMEntry) FieldLabelConversion

func (r *EXTCOMMEntry) FieldLabelConversion() runtime.FieldLabelConversionFunc

FieldLabelConversion is the schema conversion function for normalizing the FieldSelector for the resource

func (*EXTCOMMEntry) FieldSelector

func (r *EXTCOMMEntry) FieldSelector() func(ctx context.Context, fieldSelector fields.Selector) (resource.Filter, error)

func (EXTCOMMEntry) GetCategories

func (EXTCOMMEntry) GetCategories() []string

GetCategories return the categories of the resource GetCategories implements resource.Object

func (*EXTCOMMEntry) GetChoreoAPIVersion

func (r *EXTCOMMEntry) GetChoreoAPIVersion() string

func (*EXTCOMMEntry) GetClaimType

func (r *EXTCOMMEntry) GetClaimType() backend.ClaimType

func (*EXTCOMMEntry) GetCondition

GetCondition returns the condition based on the condition kind

func (EXTCOMMEntry) GetGroupVersionResource

func (EXTCOMMEntry) GetGroupVersionResource() schema.GroupVersionResource

func (*EXTCOMMEntry) GetIndex

func (r *EXTCOMMEntry) GetIndex() string

func (*EXTCOMMEntry) GetKey

func (r *EXTCOMMEntry) GetKey() store.Key

func (*EXTCOMMEntry) GetNamespacedName

func (r *EXTCOMMEntry) GetNamespacedName() types.NamespacedName

func (*EXTCOMMEntry) GetObjectMeta

func (r *EXTCOMMEntry) GetObjectMeta() *metav1.ObjectMeta

GetObjectMeta implements resource.Object GetObjectMeta implements resource.Object

func (EXTCOMMEntry) GetShortNames

func (EXTCOMMEntry) GetShortNames() []string

GetShortNames returns the shortnames for the resource GetShortNames implements resource.Object

func (EXTCOMMEntry) GetSingularName

func (EXTCOMMEntry) GetSingularName() string

GetSingularName returns the singular name of the resource GetSingularName implements resource.Object

func (*EXTCOMMEntry) GetSpecID

func (r *EXTCOMMEntry) GetSpecID() string

func (*EXTCOMMEntry) GetStatus

func (r *EXTCOMMEntry) GetStatus() resource.StatusSubResource

GetStatus return the resource.StatusSubResource interface

func (*EXTCOMMEntry) IsEqual

func (r *EXTCOMMEntry) IsEqual(ctx context.Context, obj, old runtime.Object) bool

IsEqual returns a bool indicating if the desired state of both resources is equal or not

func (*EXTCOMMEntry) IsIndexEntry added in v0.0.10

func (r *EXTCOMMEntry) IsIndexEntry() bool

func (*EXTCOMMEntry) IsStatusEqual

func (r *EXTCOMMEntry) IsStatusEqual(ctx context.Context, obj, old runtime.Object) bool

IsStatusEqual returns a bool indicating if the status of both resources is equal or not

func (EXTCOMMEntry) IsStorageVersion

func (EXTCOMMEntry) IsStorageVersion() bool

IsStorageVersion returns true -- Config is used as the internal version. IsStorageVersion implements resource.Object

func (EXTCOMMEntry) NamespaceScoped

func (EXTCOMMEntry) NamespaceScoped() bool

NamespaceScoped returns true to indicate Fortune is a namespaced resource. NamespaceScoped implements resource.Object

func (EXTCOMMEntry) New

func (EXTCOMMEntry) New() runtime.Object

New return an empty resource New implements resource.Object

func (EXTCOMMEntry) NewList

func (EXTCOMMEntry) NewList() runtime.Object

NewList return an empty resourceList NewList implements resource.Object

func (*EXTCOMMEntry) PrepareForCreate

func (r *EXTCOMMEntry) PrepareForCreate(ctx context.Context, obj runtime.Object)

func (*EXTCOMMEntry) PrepareForStatusUpdate

func (r *EXTCOMMEntry) PrepareForStatusUpdate(ctx context.Context, obj, old runtime.Object)

PrepareForStatusUpdate prepares the status update

func (*EXTCOMMEntry) PrepareForUpdate

func (r *EXTCOMMEntry) PrepareForUpdate(ctx context.Context, obj, old runtime.Object)

func (*EXTCOMMEntry) SetConditions

func (r *EXTCOMMEntry) SetConditions(c ...condition.Condition)

SetConditions sets the conditions on the resource. it allows for 0, 1 or more conditions to be set at once

func (*EXTCOMMEntry) TableConvertor

func (r *EXTCOMMEntry) TableConvertor() func(gr schema.GroupResource) rest.TableConvertor

TableConvertor return the table format of the resource

func (*EXTCOMMEntry) ValidateCreate

func (r *EXTCOMMEntry) ValidateCreate(ctx context.Context, obj runtime.Object) field.ErrorList

ValidateCreate statically validates

func (*EXTCOMMEntry) ValidateStatusUpdate

func (r *EXTCOMMEntry) ValidateStatusUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList

ValidateStatusUpdate validates status updates

func (*EXTCOMMEntry) ValidateSyntax

func (r *EXTCOMMEntry) ValidateSyntax(s string) field.ErrorList

func (*EXTCOMMEntry) ValidateUpdate

func (r *EXTCOMMEntry) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList

type EXTCOMMEntryFilter

type EXTCOMMEntryFilter struct {
	// Name filters by the name of the objects
	Name string `protobuf:"bytes,1,opt,name=name"`

	// Namespace filters by the namespace of the objects
	Namespace string `protobuf:"bytes,2,opt,name=namespace"`
}

func (*EXTCOMMEntryFilter) DeepCopy

func (in *EXTCOMMEntryFilter) DeepCopy() *EXTCOMMEntryFilter

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

func (*EXTCOMMEntryFilter) DeepCopyInto

func (in *EXTCOMMEntryFilter) DeepCopyInto(out *EXTCOMMEntryFilter)

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

func (*EXTCOMMEntryFilter) Filter

func (r *EXTCOMMEntryFilter) Filter(ctx context.Context, obj runtime.Object) bool

type EXTCOMMEntryList

type EXTCOMMEntryList struct {
	metav1.TypeMeta `json:",inline" yaml:",inline"`
	metav1.ListMeta `json:"metadata,omitempty" yaml:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	Items           []EXTCOMMEntry `json:"items" yaml:"items" protobuf:"bytes,2,rep,name=items"`
}

EXTCOMMEntryList contains a list of EXTCOMMEntries +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*EXTCOMMEntryList) DeepCopy

func (in *EXTCOMMEntryList) DeepCopy() *EXTCOMMEntryList

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

func (*EXTCOMMEntryList) DeepCopyInto

func (in *EXTCOMMEntryList) DeepCopyInto(out *EXTCOMMEntryList)

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

func (*EXTCOMMEntryList) DeepCopyObject

func (in *EXTCOMMEntryList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*EXTCOMMEntryList) GetListMeta

func (r *EXTCOMMEntryList) GetListMeta() *metav1.ListMeta

GetListMeta returns the ListMeta GetListMeta implements the resource.ObjectList

type EXTCOMMEntrySpec

type EXTCOMMEntrySpec struct {
	// EXTCOMMIndex defines the EXTCOMM index for the EXTCOMM Claim
	Index string `json:"index" yaml:"index" protobuf:"bytes,1,opt,name=index"`
	// IndexEntry identifies if the entry is originated from an IP Index
	IndexEntry bool `json:"indexEntry" yaml:"indexEntry" protobuf:"bytes,2,opt,name=indexEntry"`
	// ClaimType defines the claimType of the EXTCOMM Entry
	ClaimType backend.ClaimType `json:"claimType,omitempty" yaml:"claimType,omitempty" protobuf:"bytes,3,opt,name=claimType"`
	// ID defines the id of the EXTCOMM entry in the tree
	ID string `json:"id,omitempty" yaml:"id,omitempty" protobuf:"bytes,4,opt,name=id"`
	// ClaimLabels define the user defined labels and selector labels used
	// in resource claim
	common.ClaimLabels `json:",inline" yaml:",inline" protobuf:"bytes,5,opt,name=claimLabels"`
	// Claim defines the name of the claim that is the origin of this  entry
	Claim string `json:"claim" yaml:"claim" protobuf:"bytes,6,opt,name=claim"`
}

EXTCOMMEntrySpec defines the dEXTCOMMred state of EXTCOMMEntry

func (*EXTCOMMEntrySpec) DeepCopy

func (in *EXTCOMMEntrySpec) DeepCopy() *EXTCOMMEntrySpec

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

func (*EXTCOMMEntrySpec) DeepCopyInto

func (in *EXTCOMMEntrySpec) DeepCopyInto(out *EXTCOMMEntrySpec)

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

type EXTCOMMEntryStatus

type EXTCOMMEntryStatus struct {
	// ConditionedStatus provides the status of the EXTCOMMEntry using conditions
	// - a ready condition indicates the overall status of the resource
	condition.ConditionedStatus `json:",inline" yaml:",inline" protobuf:"bytes,1,opt,name=conditionedStatus"`
}

EXTCOMMEntryStatus defines the observed state of EXTCOMMEntry

func (EXTCOMMEntryStatus) CopyTo

CopyTo copies the content of the status subresource to a parent resource. CopyTo implements the resource.StatusSubResource

func (*EXTCOMMEntryStatus) DeepCopy

func (in *EXTCOMMEntryStatus) DeepCopy() *EXTCOMMEntryStatus

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

func (*EXTCOMMEntryStatus) DeepCopyInto

func (in *EXTCOMMEntryStatus) DeepCopyInto(out *EXTCOMMEntryStatus)

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

func (EXTCOMMEntryStatus) SubResourceName

func (EXTCOMMEntryStatus) SubResourceName() string

SubResourceName resturns the name of the subresource SubResourceName implements the resource.StatusSubResource

type EXTCOMMIndex

type EXTCOMMIndex struct {
	metav1.TypeMeta   `json:",inline" yaml:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty" yaml:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`

	Spec   EXTCOMMIndexSpec   `json:"spec,omitempty" yaml:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
	Status EXTCOMMIndexStatus `json:"status,omitempty" yaml:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}

+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object +kubebuilder:object:root=true +kubebuilder:storageversion +kubebuilder:subresource:status +kubebuilder:resource:categories={kuid} EXTCOMMIndex is the Schema for the EXTCOMMIndex API

func BuildEXTCOMMIndex

func BuildEXTCOMMIndex(meta metav1.ObjectMeta, spec *EXTCOMMIndexSpec, status *EXTCOMMIndexStatus) *EXTCOMMIndex

BuildEXTCOMMIndex returns a reource from a client Object a Spec/Status

func (*EXTCOMMIndex) DeepCopy

func (in *EXTCOMMIndex) DeepCopy() *EXTCOMMIndex

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

func (*EXTCOMMIndex) DeepCopyInto

func (in *EXTCOMMIndex) DeepCopyInto(out *EXTCOMMIndex)

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

func (*EXTCOMMIndex) DeepCopyObject

func (in *EXTCOMMIndex) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*EXTCOMMIndex) FieldLabelConversion

func (r *EXTCOMMIndex) FieldLabelConversion() runtime.FieldLabelConversionFunc

FieldLabelConversion is the schema conversion function for normalizing the FieldSelector for the resource

func (*EXTCOMMIndex) FieldSelector

func (r *EXTCOMMIndex) FieldSelector() func(ctx context.Context, fieldSelector fields.Selector) (resource.Filter, error)

func (EXTCOMMIndex) GetCategories

func (EXTCOMMIndex) GetCategories() []string

GetCategories return the categories of the resource GetCategories implements resource.Object

func (*EXTCOMMIndex) GetClaims added in v0.0.10

func (r *EXTCOMMIndex) GetClaims() []backend.ClaimObject

func (*EXTCOMMIndex) GetCondition

GetCondition returns the condition based on the condition kind

func (EXTCOMMIndex) GetGroupVersionResource

func (EXTCOMMIndex) GetGroupVersionResource() schema.GroupVersionResource

func (*EXTCOMMIndex) GetKey

func (r *EXTCOMMIndex) GetKey() store.Key

func (*EXTCOMMIndex) GetMax

func (r *EXTCOMMIndex) GetMax() uint64

func (*EXTCOMMIndex) GetMaxClaim

func (r *EXTCOMMIndex) GetMaxClaim() backend.ClaimObject

func (*EXTCOMMIndex) GetMaxClaimNSN

func (r *EXTCOMMIndex) GetMaxClaimNSN() types.NamespacedName

func (*EXTCOMMIndex) GetMaxID

func (r *EXTCOMMIndex) GetMaxID() *uint64

func (*EXTCOMMIndex) GetMinClaim

func (r *EXTCOMMIndex) GetMinClaim() backend.ClaimObject

func (*EXTCOMMIndex) GetMinClaimNSN

func (r *EXTCOMMIndex) GetMinClaimNSN() types.NamespacedName

func (*EXTCOMMIndex) GetMinID

func (r *EXTCOMMIndex) GetMinID() *uint64

func (*EXTCOMMIndex) GetNamespacedName

func (r *EXTCOMMIndex) GetNamespacedName() types.NamespacedName

func (*EXTCOMMIndex) GetObjectMeta

func (r *EXTCOMMIndex) GetObjectMeta() *metav1.ObjectMeta

GetObjectMeta implements resource.Object GetObjectMeta implements resource.Object

func (EXTCOMMIndex) GetShortNames

func (EXTCOMMIndex) GetShortNames() []string

GetShortNames returns the shortnames for the resource GetShortNames implements resource.Object

func (EXTCOMMIndex) GetSingularName

func (EXTCOMMIndex) GetSingularName() string

GetSingularName returns the singular name of the resource GetSingularName implements resource.Object

func (*EXTCOMMIndex) GetStatus

func (r *EXTCOMMIndex) GetStatus() resource.StatusSubResource

GetStatus return the resource.StatusSubResource interface

func (*EXTCOMMIndex) GetTree

func (r *EXTCOMMIndex) GetTree() gtree.GTree

func (*EXTCOMMIndex) GetType

func (r *EXTCOMMIndex) GetType() string

func (*EXTCOMMIndex) IsEqual

func (r *EXTCOMMIndex) IsEqual(ctx context.Context, obj, old runtime.Object) bool

IsEqual returns a bool indicating if the desired state of both resources is equal or not

func (*EXTCOMMIndex) IsStatusEqual

func (r *EXTCOMMIndex) IsStatusEqual(ctx context.Context, obj, old runtime.Object) bool

IsStatusEqual returns a bool indicating if the status of both resources is equal or not

func (EXTCOMMIndex) IsStorageVersion

func (EXTCOMMIndex) IsStorageVersion() bool

IsStorageVersion returns true -- Config is used as the internal version. IsStorageVersion implements resource.Object

func (EXTCOMMIndex) NamespaceScoped

func (EXTCOMMIndex) NamespaceScoped() bool

NamespaceScoped returns true to indicate Fortune is a namespaced resource. NamespaceScoped implements resource.Object

func (EXTCOMMIndex) New

func (EXTCOMMIndex) New() runtime.Object

New return an empty resource New implements resource.Object

func (EXTCOMMIndex) NewList

func (EXTCOMMIndex) NewList() runtime.Object

NewList return an empty resourceList NewList implements resource.Object

func (*EXTCOMMIndex) PrepareForCreate

func (r *EXTCOMMIndex) PrepareForCreate(ctx context.Context, obj runtime.Object)

func (*EXTCOMMIndex) PrepareForStatusUpdate

func (r *EXTCOMMIndex) PrepareForStatusUpdate(ctx context.Context, obj, old runtime.Object)

PrepareForStatusUpdate prepares the status update

func (*EXTCOMMIndex) PrepareForUpdate

func (r *EXTCOMMIndex) PrepareForUpdate(ctx context.Context, obj, old runtime.Object)

func (*EXTCOMMIndex) SetConditions

func (r *EXTCOMMIndex) SetConditions(c ...condition.Condition)

SetConditions sets the conditions on the resource. it allows for 0, 1 or more conditions to be set at once

func (*EXTCOMMIndex) TableConvertor

func (r *EXTCOMMIndex) TableConvertor() func(gr schema.GroupResource) rest.TableConvertor

TableConvertor return the table format of the resource

func (*EXTCOMMIndex) ValidateCreate

func (r *EXTCOMMIndex) ValidateCreate(ctx context.Context, obj runtime.Object) field.ErrorList

ValidateCreate statically validates

func (*EXTCOMMIndex) ValidateStatusUpdate

func (r *EXTCOMMIndex) ValidateStatusUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList

ValidateStatusUpdate validates status updates

func (*EXTCOMMIndex) ValidateSyntax

func (r *EXTCOMMIndex) ValidateSyntax(s string) field.ErrorList

func (*EXTCOMMIndex) ValidateUpdate

func (r *EXTCOMMIndex) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList

type EXTCOMMIndexFilter

type EXTCOMMIndexFilter struct {
	// Name filters by the name of the objects
	Name string `protobuf:"bytes,1,opt,name=name"`

	// Namespace filters by the namespace of the objects
	Namespace string `protobuf:"bytes,2,opt,name=namespace"`
}

func (*EXTCOMMIndexFilter) DeepCopy

func (in *EXTCOMMIndexFilter) DeepCopy() *EXTCOMMIndexFilter

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

func (*EXTCOMMIndexFilter) DeepCopyInto

func (in *EXTCOMMIndexFilter) DeepCopyInto(out *EXTCOMMIndexFilter)

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

func (*EXTCOMMIndexFilter) Filter

func (r *EXTCOMMIndexFilter) Filter(ctx context.Context, obj runtime.Object) bool

type EXTCOMMIndexList

type EXTCOMMIndexList struct {
	metav1.TypeMeta `json:",inline" yaml:",inline"`
	metav1.ListMeta `json:"metadata,omitempty" yaml:"metadata,omitempty" protobuf:"bytes,1,opt,name=metadata"`
	Items           []EXTCOMMIndex `json:"items" yaml:"items" protobuf:"bytes,2,rep,name=items"`
}

EXTCOMMIndexList contains a list of EXTCOMMIndexs +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*EXTCOMMIndexList) DeepCopy

func (in *EXTCOMMIndexList) DeepCopy() *EXTCOMMIndexList

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

func (*EXTCOMMIndexList) DeepCopyInto

func (in *EXTCOMMIndexList) DeepCopyInto(out *EXTCOMMIndexList)

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

func (*EXTCOMMIndexList) DeepCopyObject

func (in *EXTCOMMIndexList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*EXTCOMMIndexList) GetListMeta

func (r *EXTCOMMIndexList) GetListMeta() *metav1.ListMeta

GetListMeta returns the ListMeta GetListMeta implements the resource.ObjectList

type EXTCOMMIndexSpec

type EXTCOMMIndexSpec struct {
	// MinID defines the min EXTCOMM ID the index supports
	// +optional
	MinID *uint64 `json:"minID,omitempty" yaml:"minID,omitempty" protobuf:"bytes,1,opt,name=minID"`
	// MaxID defines the max EXTCOMM ID the index supports
	// +optional
	MaxID *uint64 `json:"maxID,omitempty" yaml:"maxID,omitempty" protobuf:"bytes,2,opt,name=maxID"`
	// UserDefinedLabels define metadata to the resource.
	// defined in the spec to distingiush metadata labels from user defined labels
	common.UserDefinedLabels `json:",inline" yaml:",inline" protobuf:"bytes,3,opt,name=userDefinedLabels"`
	// Transitive defines the transative nature of the extended community
	Transitive bool `json:"transitive,omitempty" yaml:"transitive,omitempty" protobuf:"bytes,4,opt,name=transitive"`
	// Type defines the type of the extended community
	// 2byteAS, 4byteAS, ipv4Address, opaque
	Type string `json:"type" yaml:"type" protobuf:"bytes,5,opt,name=type"`
	// SubType defines the subTyoe of the extended community
	// routeTarget, routeOrigin;
	SubType string `json:"subType" yaml:"subType" protobuf:"bytes,6,opt,name=subType"`
	// GlobalID is interpreted dependeing on the type
	// AS in case of 2byteAS, 4byteAS
	// IPV4 addrress
	// irrelevant for the opaque type
	GlobalID string `json:"globalID,omitempty" yaml:"globalID,omitempty" protobuf:"bytes,7,opt,name=globalID"`
}

EXTCOMMIndexSpec defines the dEXTCOMMred state of EXTCOMMIndex

func (*EXTCOMMIndexSpec) DeepCopy

func (in *EXTCOMMIndexSpec) DeepCopy() *EXTCOMMIndexSpec

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

func (*EXTCOMMIndexSpec) DeepCopyInto

func (in *EXTCOMMIndexSpec) DeepCopyInto(out *EXTCOMMIndexSpec)

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

type EXTCOMMIndexStatus

type EXTCOMMIndexStatus struct {
	// MinID defines the min EXTCOMM ID the index supports
	// +optional
	MinID *int64 `json:"minID,omitempty" yaml:"minID,omitempty" protobuf:"bytes,1,opt,name=minID"`
	// MaxID defines the max EXTCOMM ID the index supports
	// +optional
	MaxID *int64 `json:"maxID,omitempty" yaml:"maxID,omitempty" protobuf:"bytes,2,opt,name=maxID"`
	// ConditionedStatus provides the status of the EXTCOMMIndex using conditions
	// - a ready condition indicates the overall status of the resource
	condition.ConditionedStatus `json:",inline" yaml:",inline" protobuf:"bytes,3,opt,name=conditionedStatus"`
}

EXTCOMMIndexStatus defines the observed state of EXTCOMMIndex

func (EXTCOMMIndexStatus) CopyTo

CopyTo copies the content of the status subresource to a parent resource. CopyTo implements the resource.StatusSubResource

func (*EXTCOMMIndexStatus) DeepCopy

func (in *EXTCOMMIndexStatus) DeepCopy() *EXTCOMMIndexStatus

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

func (*EXTCOMMIndexStatus) DeepCopyInto

func (in *EXTCOMMIndexStatus) DeepCopyInto(out *EXTCOMMIndexStatus)

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

func (EXTCOMMIndexStatus) SubResourceName

func (EXTCOMMIndexStatus) SubResourceName() string

SubResourceName resturns the name of the subresource SubResourceName implements the resource.StatusSubResource

type EXTCOMMRangeSyntaxValidator

type EXTCOMMRangeSyntaxValidator struct {
	// contains filtered or unexported fields
}

func (*EXTCOMMRangeSyntaxValidator) DeepCopy

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

func (*EXTCOMMRangeSyntaxValidator) DeepCopyInto

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

func (*EXTCOMMRangeSyntaxValidator) Validate

type EXTCOMMStaticIDSyntaxValidator

type EXTCOMMStaticIDSyntaxValidator struct {
	// contains filtered or unexported fields
}

func (*EXTCOMMStaticIDSyntaxValidator) DeepCopy

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

func (*EXTCOMMStaticIDSyntaxValidator) DeepCopyInto

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

func (*EXTCOMMStaticIDSyntaxValidator) Validate

type ExtendedCommunitySubType

type ExtendedCommunitySubType string
const (
	ExtendedCommunitySubType_Invalid     ExtendedCommunitySubType = "invalid"
	ExtendedCommunitySubType_RouteTarget ExtendedCommunitySubType = "target" // 0x02
	ExtendedCommunitySubType_RouteOrigin ExtendedCommunitySubType = "origin" // 0x03
)

func GetExtendedCommunitySubType

func GetExtendedCommunitySubType(s string) ExtendedCommunitySubType

type ExtendedCommunityType

type ExtendedCommunityType string
const (
	ExtendedCommunityType_Invalid     ExtendedCommunityType = "invalid"
	ExtendedCommunityType_2byteAS     ExtendedCommunityType = "2byteAS"     // 0x00, 0x40 -> 4 byte local admin
	ExtendedCommunityType_IPv4Address ExtendedCommunityType = "ipv4Address" // 0x01, 0x41 -> 2 byte local admin
	ExtendedCommunityType_4byteAS     ExtendedCommunityType = "4byteAS"     // 0x02, 0x42 -> 2 byte local admin
	ExtendedCommunityType_Opaque      ExtendedCommunityType = "opaque"      // 0x03, 0x43 -> 6 byte local admin
)

func GetEXTCOMMType

func GetEXTCOMMType(s string) ExtendedCommunityType

type SyntaxValidator

type SyntaxValidator interface {
	Validate(claim *EXTCOMMClaim, extCommType ExtendedCommunityType) field.ErrorList
}

Directories

Path Synopsis
v1alpha1 is the v1alpha1 version of the API.
v1alpha1 is the v1alpha1 version of the API.

Jump to

Keyboard shortcuts

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