vlan

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 35 Imported by: 1

Documentation

Overview

Package vlan is the internal version of the API.

Index

Constants

View Source
const (
	GroupName = "vlan.be.kuid.dev"
	Version   = runtime.APIVersionInternal
)
View Source
const (
	VLANClaimPlural   = "vlanclaims"
	VLANClaimSingular = "vlanclaim"
)
View Source
const (
	VLANEntryPlural   = "vlanentries"
	VLANEntrySingular = "vlanEntry"
)
View Source
const (
	VLANIndexPlural   = "vlanindices"
	VLANIndexSingular = "vlanIndex"
)
View Source
const VLANID_Max = 4095
View Source
const VLANID_Min = 0

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var (
	VLANClaimShortNames = []string{}
	VLANClaimCategories = []string{"kuid", "knet"}
)
View Source
var (
	VLANClaimKind     = reflect.TypeOf(VLANClaim{}).Name()
	VLANClaimListKind = reflect.TypeOf(VLANClaimList{}).Name()
)
View Source
var (
	VLANEntryShortNames = []string{}
	VLANEntryCategories = []string{"kuid", "knet"}
)
View Source
var (
	VLANEntryKind     = reflect.TypeOf(VLANEntry{}).Name()
	VLANEntryListKind = reflect.TypeOf(VLANEntryList{}).Name()
)
View Source
var (
	VLANIndexShortNames = []string{}
	VLANIndexCategories = []string{"kuid", "knet"}
)
View Source
var (
	VLANIndexKind     = reflect.TypeOf(VLANIndex{}).Name()
	VLANIndexListKind = reflect.TypeOf(VLANIndexList{}).Name()
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: Version}

Functions

func BuildVLANClaim

func BuildVLANClaim(meta metav1.ObjectMeta, spec *VLANClaimSpec, status *VLANClaimStatus) backend.ClaimObject

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

func BuildVLANEntry

func BuildVLANEntry(meta metav1.ObjectMeta, spec *VLANEntrySpec, status *VLANEntryStatus) backend.EntryObject

func GetMaxClaimRange

func GetMaxClaimRange(id uint32) string

func GetMinClaimRange

func GetMinClaimRange(id uint32) string

func GetVLANEntry

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

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

func VLANClaimFromRuntime

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

func VLANClaimFromUnstructured

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

func VLANEntryFromRuntime

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

func VLANEntryFromUnstructured

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

func VLANIndexFromRuntime

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

Types

type SyntaxValidator

type SyntaxValidator interface {
	Validate(claim *VLANClaim) field.ErrorList
}

+kubebuilder:object:generate=false

type VLANClaim

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

	Spec   VLANClaimSpec   `json:"spec,omitempty" yaml:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
	Status VLANClaimStatus `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} VLANClaim is the Schema for the VLANClaim API

func (*VLANClaim) DeepCopy

func (in *VLANClaim) DeepCopy() *VLANClaim

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

func (*VLANClaim) DeepCopyInto

func (in *VLANClaim) DeepCopyInto(out *VLANClaim)

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

func (*VLANClaim) DeepCopyObject

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

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

func (*VLANClaim) FieldLabelConversion

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

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

func (*VLANClaim) FieldSelector

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

func (VLANClaim) GetCategories

func (VLANClaim) GetCategories() []string

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

func (*VLANClaim) GetChoreoAPIVersion

func (r *VLANClaim) GetChoreoAPIVersion() string

func (*VLANClaim) GetClaimID

func (r *VLANClaim) GetClaimID(t string, id uint64) tree.ID

func (*VLANClaim) GetClaimLabels

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

func (*VLANClaim) GetClaimRequest

func (r *VLANClaim) GetClaimRequest() string

func (*VLANClaim) GetClaimResponse

func (r *VLANClaim) GetClaimResponse() string

func (*VLANClaim) GetClaimSet

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

func (*VLANClaim) GetClaimType

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

func (*VLANClaim) GetCondition

GetCondition returns the condition bVLANed on the condition kind

func (VLANClaim) GetGroupVersionResource

func (VLANClaim) GetGroupVersionResource() schema.GroupVersionResource

func (*VLANClaim) GetIndex

func (r *VLANClaim) GetIndex() string

func (*VLANClaim) GetKey

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

func (*VLANClaim) GetLabelSelector

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

func (*VLANClaim) GetNamespacedName

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

func (*VLANClaim) GetObjectMeta

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

GetObjectMeta implements resource.Object GetObjectMeta implements resource.Object

func (*VLANClaim) GetOwnerSelector

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

GetOwnerSelector selects the route bVLANed on the name of the claim

func (*VLANClaim) GetRange

func (r *VLANClaim) GetRange() *string

func (*VLANClaim) GetRangeID

func (r *VLANClaim) GetRangeID(t string) (tree.Range, error)

func (*VLANClaim) GetSelector

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

func (VLANClaim) GetShortNames

func (VLANClaim) GetShortNames() []string

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

func (VLANClaim) GetSingularName

func (VLANClaim) GetSingularName() string

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

func (*VLANClaim) GetStaticID

func (r *VLANClaim) GetStaticID() *uint64

func (*VLANClaim) GetStaticTreeID

func (r *VLANClaim) GetStaticTreeID(t string) tree.ID

func (*VLANClaim) GetStatus

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

GetStatus return the resource.StatusSubResource interface

func (*VLANClaim) GetStatusClaimID added in v0.0.10

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

func (*VLANClaim) GetStatusID

func (r *VLANClaim) GetStatusID() *uint64

func (*VLANClaim) GetTable

func (r *VLANClaim) GetTable(t string, to, from uint64) table.Table

func (*VLANClaim) IsEqual

func (r *VLANClaim) 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 (*VLANClaim) IsOwner

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

func (*VLANClaim) IsStatusEqual

func (r *VLANClaim) 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 (VLANClaim) IsStorageVersion

func (VLANClaim) IsStorageVersion() bool

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

func (VLANClaim) NamespaceScoped

func (VLANClaim) NamespaceScoped() bool

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

func (VLANClaim) New

func (VLANClaim) New() runtime.Object

New return an empty resource New implements resource.Object

func (VLANClaim) NewList

func (VLANClaim) NewList() runtime.Object

NewList return an empty resourceList NewList implements resource.Object

func (*VLANClaim) PrepareForCreate

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

func (*VLANClaim) PrepareForStatusUpdate

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

PrepareForStatusUpdate prepares the status update

func (*VLANClaim) PrepareForUpdate

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

func (*VLANClaim) SetConditions

func (r *VLANClaim) 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 (*VLANClaim) SetStatusID

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

func (*VLANClaim) SetStatusRange

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

func (*VLANClaim) TableConvertor

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

TableConvertor return the table format of the resource

func (*VLANClaim) ValidateCreate

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

ValidateCreate statically validates

func (*VLANClaim) ValidateOwner

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

func (*VLANClaim) ValidateStatusUpdate

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

ValidateStatusUpdate validates status updates

func (*VLANClaim) ValidateSyntax

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

func (*VLANClaim) ValidateUpdate

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

func (*VLANClaim) ValidateVLANClaimType

func (r *VLANClaim) ValidateVLANClaimType() error

func (*VLANClaim) ValidateVLANID

func (r *VLANClaim) ValidateVLANID() error

func (*VLANClaim) ValidateVLANRange

func (r *VLANClaim) ValidateVLANRange() error

type VLANClaimFilter

type VLANClaimFilter 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 (*VLANClaimFilter) DeepCopy

func (in *VLANClaimFilter) DeepCopy() *VLANClaimFilter

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

func (*VLANClaimFilter) DeepCopyInto

func (in *VLANClaimFilter) DeepCopyInto(out *VLANClaimFilter)

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

func (*VLANClaimFilter) Filter

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

type VLANClaimList

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

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

func (*VLANClaimList) DeepCopy

func (in *VLANClaimList) DeepCopy() *VLANClaimList

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

func (*VLANClaimList) DeepCopyInto

func (in *VLANClaimList) DeepCopyInto(out *VLANClaimList)

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

func (*VLANClaimList) DeepCopyObject

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

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

func (*VLANClaimList) GetListMeta

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

GetListMeta returns the ListMeta GetListMeta implements the resource.ObjectList

type VLANClaimSpec

type VLANClaimSpec struct {
	// Index defines the index for the resource
	Index string `json:"index" yaml:"index" protobuf:"bytes,1,opt,name=index"`
	// ID defines the id of the resource
	ID *uint32 `json:"id,omitempty" yaml:"id,omitempty" protobuf:"bytes,2,opt,name=id"`
	// Range defines the VLAN range of the resource
	// The following notation is used: start-end <start-VLANID>-<end-VLANID>
	// the VLANs 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"`
}

VLANClaimSpec defines the desired state of VLANClaim

func (*VLANClaimSpec) DeepCopy

func (in *VLANClaimSpec) DeepCopy() *VLANClaimSpec

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

func (*VLANClaimSpec) DeepCopyInto

func (in *VLANClaimSpec) DeepCopyInto(out *VLANClaimSpec)

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

type VLANClaimStatus

type VLANClaimStatus struct {
	// ConditionedStatus provides the status of the VLANClain using conditions
	// - a ready condition indicates the overall status of the resource
	condition.ConditionedStatus `json:",inline" yaml:",inline" protobuf:"bytes,1,opt,name=conditionedStatus"`
	// VLANID defines the VLAN for the VLAN claim
	// +optional
	ID *uint32 `json:"id,omitempty" yaml:"id,omitempty" protobuf:"bytes,2,opt,name=id"`
	// VLANRange defines the VLAN range for the VLAN 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"`
}

VLANClaimStatus defines the observed state of VLANClaim

func (VLANClaimStatus) CopyTo

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

func (*VLANClaimStatus) DeepCopy

func (in *VLANClaimStatus) DeepCopy() *VLANClaimStatus

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

func (*VLANClaimStatus) DeepCopyInto

func (in *VLANClaimStatus) DeepCopyInto(out *VLANClaimStatus)

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

func (VLANClaimStatus) SubResourceName

func (VLANClaimStatus) SubResourceName() string

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

type VLANDynamicIDSyntaxValidator

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

func (*VLANDynamicIDSyntaxValidator) DeepCopy

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

func (*VLANDynamicIDSyntaxValidator) DeepCopyInto

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

func (*VLANDynamicIDSyntaxValidator) Validate

type VLANEntry

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

	Spec   VLANEntrySpec   `json:"spec,omitempty" yaml:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
	Status VLANEntryStatus `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} VLANEntry is the Schema for the VLANentry API

func (*VLANEntry) DeepCopy

func (in *VLANEntry) DeepCopy() *VLANEntry

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

func (*VLANEntry) DeepCopyInto

func (in *VLANEntry) DeepCopyInto(out *VLANEntry)

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

func (*VLANEntry) DeepCopyObject

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

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

func (*VLANEntry) FieldLabelConversion

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

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

func (*VLANEntry) FieldSelector

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

func (VLANEntry) GetCategories

func (VLANEntry) GetCategories() []string

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

func (*VLANEntry) GetChoreoAPIVersion

func (r *VLANEntry) GetChoreoAPIVersion() string

func (*VLANEntry) GetClaimType

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

func (*VLANEntry) GetCondition

GetCondition returns the condition based on the condition kind

func (VLANEntry) GetGroupVersionResource

func (VLANEntry) GetGroupVersionResource() schema.GroupVersionResource

func (*VLANEntry) GetIndex

func (r *VLANEntry) GetIndex() string

func (*VLANEntry) GetKey

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

func (*VLANEntry) GetNamespacedName

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

func (*VLANEntry) GetObjectMeta

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

GetObjectMeta implements resource.Object GetObjectMeta implements resource.Object

func (VLANEntry) GetShortNames

func (VLANEntry) GetShortNames() []string

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

func (VLANEntry) GetSingularName

func (VLANEntry) GetSingularName() string

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

func (*VLANEntry) GetSpecID

func (r *VLANEntry) GetSpecID() string

func (*VLANEntry) GetStatus

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

GetStatus return the resource.StatusSubResource interface

func (*VLANEntry) IsEqual

func (r *VLANEntry) 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 (*VLANEntry) IsIndexEntry added in v0.0.10

func (r *VLANEntry) IsIndexEntry() bool

func (*VLANEntry) IsStatusEqual

func (r *VLANEntry) 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 (VLANEntry) IsStorageVersion

func (VLANEntry) IsStorageVersion() bool

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

func (VLANEntry) NamespaceScoped

func (VLANEntry) NamespaceScoped() bool

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

func (VLANEntry) New

func (VLANEntry) New() runtime.Object

New return an empty resource New implements resource.Object

func (VLANEntry) NewList

func (VLANEntry) NewList() runtime.Object

NewList return an empty resourceList NewList implements resource.Object

func (*VLANEntry) PrepareForCreate

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

func (*VLANEntry) PrepareForStatusUpdate

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

PrepareForStatusUpdate prepares the status update

func (*VLANEntry) PrepareForUpdate

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

func (*VLANEntry) SetConditions

func (r *VLANEntry) 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 (*VLANEntry) TableConvertor

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

TableConvertor return the table format of the resource

func (*VLANEntry) ValidateCreate

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

ValidateCreate statically validates

func (*VLANEntry) ValidateStatusUpdate

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

ValidateStatusUpdate validates status updates

func (*VLANEntry) ValidateSyntax

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

func (*VLANEntry) ValidateUpdate

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

type VLANEntryFilter

type VLANEntryFilter 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 (*VLANEntryFilter) DeepCopy

func (in *VLANEntryFilter) DeepCopy() *VLANEntryFilter

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

func (*VLANEntryFilter) DeepCopyInto

func (in *VLANEntryFilter) DeepCopyInto(out *VLANEntryFilter)

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

func (*VLANEntryFilter) Filter

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

type VLANEntryList

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

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

func (*VLANEntryList) DeepCopy

func (in *VLANEntryList) DeepCopy() *VLANEntryList

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

func (*VLANEntryList) DeepCopyInto

func (in *VLANEntryList) DeepCopyInto(out *VLANEntryList)

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

func (*VLANEntryList) DeepCopyObject

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

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

func (*VLANEntryList) GetListMeta

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

GetListMeta returns the ListMeta GetListMeta implements the resource.ObjectList

type VLANEntrySpec

type VLANEntrySpec struct {
	// Index defines the index for the resource
	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 resource
	ClaimType backend.ClaimType `json:"claimType,omitempty" yaml:"claimType,omitempty" protobuf:"bytes,3,opt,name=claimType"`
	// ID defines the id of the resource 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"`
}

VLANEntrySpec defines the desired state of VLANEntry

func (*VLANEntrySpec) DeepCopy

func (in *VLANEntrySpec) DeepCopy() *VLANEntrySpec

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

func (*VLANEntrySpec) DeepCopyInto

func (in *VLANEntrySpec) DeepCopyInto(out *VLANEntrySpec)

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

type VLANEntryStatus

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

VLANEntryStatus defines the observed state of VLANEntry

func (VLANEntryStatus) CopyTo

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

func (*VLANEntryStatus) DeepCopy

func (in *VLANEntryStatus) DeepCopy() *VLANEntryStatus

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

func (*VLANEntryStatus) DeepCopyInto

func (in *VLANEntryStatus) DeepCopyInto(out *VLANEntryStatus)

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

func (VLANEntryStatus) SubResourceName

func (VLANEntryStatus) SubResourceName() string

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

type VLANIndex

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

	Spec   VLANIndexSpec   `json:"spec,omitempty" yaml:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
	Status VLANIndexStatus `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} VLANIndex is the Schema for the VLANIndex API

func BuildVLANIndex

func BuildVLANIndex(meta metav1.ObjectMeta, spec *VLANIndexSpec, status *VLANIndexStatus) *VLANIndex

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

func (*VLANIndex) DeepCopy

func (in *VLANIndex) DeepCopy() *VLANIndex

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

func (*VLANIndex) DeepCopyInto

func (in *VLANIndex) DeepCopyInto(out *VLANIndex)

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

func (*VLANIndex) DeepCopyObject

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

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

func (*VLANIndex) FieldLabelConversion

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

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

func (*VLANIndex) FieldSelector

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

func (VLANIndex) GetCategories

func (VLANIndex) GetCategories() []string

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

func (*VLANIndex) GetClaims added in v0.0.10

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

func (*VLANIndex) GetCondition

GetCondition returns the condition based on the condition kind

func (VLANIndex) GetGroupVersionResource

func (VLANIndex) GetGroupVersionResource() schema.GroupVersionResource

func (*VLANIndex) GetKey

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

func (*VLANIndex) GetMax

func (r *VLANIndex) GetMax() uint64

func (*VLANIndex) GetMaxClaim

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

func (*VLANIndex) GetMaxClaimNSN

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

func (*VLANIndex) GetMaxID

func (r *VLANIndex) GetMaxID() *uint64

func (*VLANIndex) GetMinClaim

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

func (*VLANIndex) GetMinClaimNSN

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

func (*VLANIndex) GetMinID

func (r *VLANIndex) GetMinID() *uint64

func (*VLANIndex) GetNamespacedName

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

func (*VLANIndex) GetObjectMeta

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

GetObjectMeta implements resource.Object GetObjectMeta implements resource.Object

func (VLANIndex) GetShortNames

func (VLANIndex) GetShortNames() []string

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

func (VLANIndex) GetSingularName

func (VLANIndex) GetSingularName() string

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

func (*VLANIndex) GetStatus

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

GetStatus return the resource.StatusSubResource interface

func (*VLANIndex) GetTree

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

func (*VLANIndex) GetType

func (r *VLANIndex) GetType() string

func (*VLANIndex) IsEqual

func (r *VLANIndex) 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 (*VLANIndex) IsStatusEqual

func (r *VLANIndex) 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 (VLANIndex) IsStorageVersion

func (VLANIndex) IsStorageVersion() bool

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

func (VLANIndex) NamespaceScoped

func (VLANIndex) NamespaceScoped() bool

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

func (VLANIndex) New

func (VLANIndex) New() runtime.Object

New return an empty resource New implements resource.Object

func (VLANIndex) NewList

func (VLANIndex) NewList() runtime.Object

NewList return an empty resourceList NewList implements resource.Object

func (*VLANIndex) PrepareForCreate

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

func (*VLANIndex) PrepareForStatusUpdate

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

PrepareForStatusUpdate prepares the status update

func (*VLANIndex) PrepareForUpdate

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

func (*VLANIndex) SetConditions

func (r *VLANIndex) 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 (*VLANIndex) TableConvertor

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

TableConvertor return the table format of the resource

func (*VLANIndex) ValidateCreate

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

ValidateCreate statically validates

func (*VLANIndex) ValidateStatusUpdate

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

ValidateStatusUpdate validates status updates

func (*VLANIndex) ValidateSyntax

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

func (*VLANIndex) ValidateUpdate

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

type VLANIndexFilter

type VLANIndexFilter 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 (*VLANIndexFilter) DeepCopy

func (in *VLANIndexFilter) DeepCopy() *VLANIndexFilter

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

func (*VLANIndexFilter) DeepCopyInto

func (in *VLANIndexFilter) DeepCopyInto(out *VLANIndexFilter)

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

func (*VLANIndexFilter) Filter

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

type VLANIndexList

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

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

func (*VLANIndexList) DeepCopy

func (in *VLANIndexList) DeepCopy() *VLANIndexList

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

func (*VLANIndexList) DeepCopyInto

func (in *VLANIndexList) DeepCopyInto(out *VLANIndexList)

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

func (*VLANIndexList) DeepCopyObject

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

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

func (*VLANIndexList) GetListMeta

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

GetListMeta returns the ListMeta GetListMeta implements the resource.ObjectList

type VLANIndexSpec

type VLANIndexSpec struct {
	// MinID defines the min VLAN ID the index supports
	// +optional
	MinID *uint32 `json:"minID,omitempty" yaml:"minID,omitempty" protobuf:"bytes,1,opt,name=minID"`
	// MaxID defines the max VLAN ID the index supports
	// +optional
	MaxID *uint32 `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"`
}

VLANIndexSpec defines the desired state of VLANIndex

func (*VLANIndexSpec) DeepCopy

func (in *VLANIndexSpec) DeepCopy() *VLANIndexSpec

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

func (*VLANIndexSpec) DeepCopyInto

func (in *VLANIndexSpec) DeepCopyInto(out *VLANIndexSpec)

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

type VLANIndexStatus

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

VLANIndexStatus defines the observed state of VLANIndex

func (VLANIndexStatus) CopyTo

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

func (*VLANIndexStatus) DeepCopy

func (in *VLANIndexStatus) DeepCopy() *VLANIndexStatus

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

func (*VLANIndexStatus) DeepCopyInto

func (in *VLANIndexStatus) DeepCopyInto(out *VLANIndexStatus)

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

func (VLANIndexStatus) SubResourceName

func (VLANIndexStatus) SubResourceName() string

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

type VLANRangeSyntaxValidator

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

func (*VLANRangeSyntaxValidator) DeepCopy

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

func (*VLANRangeSyntaxValidator) DeepCopyInto

func (in *VLANRangeSyntaxValidator) DeepCopyInto(out *VLANRangeSyntaxValidator)

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

func (*VLANRangeSyntaxValidator) Validate

func (r *VLANRangeSyntaxValidator) Validate(claim *VLANClaim) field.ErrorList

type VLANStaticIDSyntaxValidator

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

func (*VLANStaticIDSyntaxValidator) DeepCopy

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

func (*VLANStaticIDSyntaxValidator) DeepCopyInto

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

func (*VLANStaticIDSyntaxValidator) Validate

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