v1alpha1

package
v0.0.0-...-a5434b2 Latest Latest
Warning

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

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

Documentation

Overview

Package v1alpha1 is the v1alpha1 version of the API.

+kubebuilder:object:generate=true +groupName=vlan.be.kuid.dev

Index

Constants

View Source
const (
	Group   = "vlan.be.kuid.dev"
	Version = "v1alpha1"
)
View Source
const (
	VLANIndexReservedMinName = "rangeReservedMin"
	VLANIndexReservedMaxName = "rangeReservedMax"
)
View Source
const VLANClaimPlural = "vlanclaims"
View Source
const VLANClaimSingular = "vlanclaim"
View Source
const VLANEntryPlural = "vlanentries"
View Source
const VLANEntrySingular = "vlanentry"
View Source
const VLANID_Max = 4095
View Source
const VLANID_Min = 0
View Source
const VLANIndexPlural = "vlanindices"
View Source
const VLANIndexSingular = "vlanindex"

Variables

View Source
var (
	ErrInvalidLengthGenerated        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenerated          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenerated = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// SchemeGroupVersion contains the API group and version information for the types in this package.
	SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: Version}
	// AddToScheme applies all the stored functions to the scheme. A non-nil error
	// indicates that one function failed and the attempt was abandoned.
	//AddToScheme = (&runtime.SchemeBuilder{}).AddToScheme
	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var (
	VLANClaimKind = reflect.TypeOf(VLANClaim{}).Name()
)
View Source
var (
	VLANEntryKind = reflect.TypeOf(VLANEntry{}).Name()
)
View Source
var (
	VLANIndexKind = reflect.TypeOf(VLANIndex{}).Name()
)

Functions

func ConvertVLANClaimFieldSelector

func ConvertVLANClaimFieldSelector(label, value string) (internalLabel, internalValue string, err error)

ConvertVLANClaimFieldSelector is the schema conversion function for normalizing the FieldSelector for VLANClaim

func ConvertVLANEntryFieldSelector

func ConvertVLANEntryFieldSelector(label, value string) (internalLabel, internalValue string, err error)

ConvertVLANEntryFieldSelector is the schema conversion function for normalizing the FieldSelector for VLANEntry

func ConvertVLANIndexFieldSelector

func ConvertVLANIndexFieldSelector(label, value string) (internalLabel, internalValue string, err error)

ConvertVLANIndexFieldSelector is the schema conversion function for normalizing the FieldSelector for VLANIndex

func GetMaxClaimRange

func GetMaxClaimRange(id uint32) string

func GetMinClaimRange

func GetMinClaimRange(id uint32) string

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type SyntaxValidator

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

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"`
}

VLANClaim is the Schema for the VLANClaim API

+k8s:openapi-gen=true

func BuildVLANClaim

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

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

func (*VLANClaim) CalculateHash

func (r *VLANClaim) CalculateHash() ([sha1.Size]byte, error)

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) Descriptor

func (*VLANClaim) Descriptor() ([]byte, []int)

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) GetClaimType

func (r *VLANClaim) GetClaimType() VLANClaimType

func (*VLANClaim) GetCondition

GetCondition returns the condition based on the condition kind

func (VLANClaim) GetGroupVersionResource

func (VLANClaim) GetGroupVersionResource() schema.GroupVersionResource

func (*VLANClaim) GetKey

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

func (*VLANClaim) GetLabelSelector

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

GetLabelSelector returns a labels selector based on the label selector

func (*VLANClaim) GetNamespacedName

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

func (*VLANClaim) GetObjectMeta

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

GetObjectMeta implements resource.Object

func (*VLANClaim) GetOwnerReference

func (r *VLANClaim) GetOwnerReference() *commonv1alpha1.OwnerReference

func (*VLANClaim) GetOwnerSelector

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

GetOwnerSelector returns a label selector to select the owner of the claim in the backend

func (*VLANClaim) GetSingularName

func (r *VLANClaim) GetSingularName() string

func (*VLANClaim) GetStatus

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

func (*VLANClaim) GetVLANRange

func (r *VLANClaim) GetVLANRange() (int, int)

func (VLANClaim) IsStorageVersion

func (VLANClaim) IsStorageVersion() bool

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

func (*VLANClaim) Marshal

func (m *VLANClaim) Marshal() (dAtA []byte, err error)

func (*VLANClaim) MarshalTo

func (m *VLANClaim) MarshalTo(dAtA []byte) (int, error)

func (*VLANClaim) MarshalToSizedBuffer

func (m *VLANClaim) MarshalToSizedBuffer(dAtA []byte) (int, error)

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 implements resource.Object

func (VLANClaim) NewList

func (VLANClaim) NewList() runtime.Object

NewList implements resource.Object

func (*VLANClaim) ProtoMessage

func (*VLANClaim) ProtoMessage()

func (*VLANClaim) Reset

func (m *VLANClaim) Reset()

func (*VLANClaim) SetConditions

func (r *VLANClaim) SetConditions(c ...conditionv1alpha1.Condition)

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

func (*VLANClaim) Size

func (m *VLANClaim) Size() (n int)

func (*VLANClaim) String

func (this *VLANClaim) String() string

func (*VLANClaim) Unmarshal

func (m *VLANClaim) Unmarshal(dAtA []byte) error

func (*VLANClaim) ValidateOwner

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

func (*VLANClaim) ValidateSyntax

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

func (*VLANClaim) XXX_DiscardUnknown

func (m *VLANClaim) XXX_DiscardUnknown()

func (*VLANClaim) XXX_Marshal

func (m *VLANClaim) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VLANClaim) XXX_Merge

func (m *VLANClaim) XXX_Merge(src proto.Message)

func (*VLANClaim) XXX_Size

func (m *VLANClaim) XXX_Size() int

func (*VLANClaim) XXX_Unmarshal

func (m *VLANClaim) XXX_Unmarshal(b []byte) error

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) Descriptor

func (*VLANClaimList) Descriptor() ([]byte, []int)

func (*VLANClaimList) GetItems

func (r *VLANClaimList) GetItems() []rresource.Object

func (*VLANClaimList) GetListMeta

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

GetListMeta returns the ListMeta

func (*VLANClaimList) Marshal

func (m *VLANClaimList) Marshal() (dAtA []byte, err error)

func (*VLANClaimList) MarshalTo

func (m *VLANClaimList) MarshalTo(dAtA []byte) (int, error)

func (*VLANClaimList) MarshalToSizedBuffer

func (m *VLANClaimList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*VLANClaimList) ProtoMessage

func (*VLANClaimList) ProtoMessage()

func (*VLANClaimList) Reset

func (m *VLANClaimList) Reset()

func (*VLANClaimList) Size

func (m *VLANClaimList) Size() (n int)

func (*VLANClaimList) String

func (this *VLANClaimList) String() string

func (*VLANClaimList) Unmarshal

func (m *VLANClaimList) Unmarshal(dAtA []byte) error

func (*VLANClaimList) XXX_DiscardUnknown

func (m *VLANClaimList) XXX_DiscardUnknown()

func (*VLANClaimList) XXX_Marshal

func (m *VLANClaimList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VLANClaimList) XXX_Merge

func (m *VLANClaimList) XXX_Merge(src proto.Message)

func (*VLANClaimList) XXX_Size

func (m *VLANClaimList) XXX_Size() int

func (*VLANClaimList) XXX_Unmarshal

func (m *VLANClaimList) XXX_Unmarshal(b []byte) error

type VLANClaimSpec

type VLANClaimSpec struct {
	// VLANIndex defines the vlan index for the VLAN Claim
	Index string `json:"index" yaml:"index" protobuf:"bytes,1,opt,name=index"`
	// VLANID defines the vlan for the VLAN claim
	// +optional
	ID *uint32 `json:"id,omitempty" yaml:"id,omitempty" protobuf:"bytes,2,opt,name=id"`
	// Range defines the vlan range for the VLAN claim
	// The following notation is used: start-end <start-vlanID>-<end-vlanID>
	// the vlans in the range must be consecutive
	// +optional
	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
	commonv1alpha1.ClaimLabels `json:",inline" yaml:",inline" protobuf:"bytes,4,opt,name=claimLabels"`
	// Owner defines the ownerReference of the VLANClaim
	// Allow for different namesapces, hence it is part of the spec
	Owner *commonv1alpha1.OwnerReference `json:"owner,omitempty" yaml:"owner,omitempty" protobuf:"bytes,5,opt,name=owner"`
}

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.

func (*VLANClaimSpec) Descriptor

func (*VLANClaimSpec) Descriptor() ([]byte, []int)

func (*VLANClaimSpec) Marshal

func (m *VLANClaimSpec) Marshal() (dAtA []byte, err error)

func (*VLANClaimSpec) MarshalTo

func (m *VLANClaimSpec) MarshalTo(dAtA []byte) (int, error)

func (*VLANClaimSpec) MarshalToSizedBuffer

func (m *VLANClaimSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*VLANClaimSpec) ProtoMessage

func (*VLANClaimSpec) ProtoMessage()

func (*VLANClaimSpec) Reset

func (m *VLANClaimSpec) Reset()

func (*VLANClaimSpec) Size

func (m *VLANClaimSpec) Size() (n int)

func (*VLANClaimSpec) String

func (this *VLANClaimSpec) String() string

func (*VLANClaimSpec) Unmarshal

func (m *VLANClaimSpec) Unmarshal(dAtA []byte) error

func (*VLANClaimSpec) XXX_DiscardUnknown

func (m *VLANClaimSpec) XXX_DiscardUnknown()

func (*VLANClaimSpec) XXX_Marshal

func (m *VLANClaimSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VLANClaimSpec) XXX_Merge

func (m *VLANClaimSpec) XXX_Merge(src proto.Message)

func (*VLANClaimSpec) XXX_Size

func (m *VLANClaimSpec) XXX_Size() int

func (*VLANClaimSpec) XXX_Unmarshal

func (m *VLANClaimSpec) XXX_Unmarshal(b []byte) error

type VLANClaimStatus

type VLANClaimStatus struct {
	// ConditionedStatus provides the status of the IPClain using conditions
	// - a ready condition indicates the overall status of the resource
	conditionv1alpha1.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

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) Descriptor

func (*VLANClaimStatus) Descriptor() ([]byte, []int)

func (*VLANClaimStatus) Marshal

func (m *VLANClaimStatus) Marshal() (dAtA []byte, err error)

func (*VLANClaimStatus) MarshalTo

func (m *VLANClaimStatus) MarshalTo(dAtA []byte) (int, error)

func (*VLANClaimStatus) MarshalToSizedBuffer

func (m *VLANClaimStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*VLANClaimStatus) ProtoMessage

func (*VLANClaimStatus) ProtoMessage()

func (*VLANClaimStatus) Reset

func (m *VLANClaimStatus) Reset()

func (*VLANClaimStatus) Size

func (m *VLANClaimStatus) Size() (n int)

func (*VLANClaimStatus) String

func (this *VLANClaimStatus) String() string

func (VLANClaimStatus) SubResourceName

func (VLANClaimStatus) SubResourceName() string

func (*VLANClaimStatus) Unmarshal

func (m *VLANClaimStatus) Unmarshal(dAtA []byte) error

func (*VLANClaimStatus) XXX_DiscardUnknown

func (m *VLANClaimStatus) XXX_DiscardUnknown()

func (*VLANClaimStatus) XXX_Marshal

func (m *VLANClaimStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VLANClaimStatus) XXX_Merge

func (m *VLANClaimStatus) XXX_Merge(src proto.Message)

func (*VLANClaimStatus) XXX_Size

func (m *VLANClaimStatus) XXX_Size() int

func (*VLANClaimStatus) XXX_Unmarshal

func (m *VLANClaimStatus) XXX_Unmarshal(b []byte) error

type VLANClaimType

type VLANClaimType string
const (
	VLANClaimType_Invalid   VLANClaimType = "invalid"
	VLANClaimType_StaticID  VLANClaimType = "staticVLANID"
	VLANClaimType_DynamicID VLANClaimType = "dynamicVLANID"
	VLANClaimType_Range     VLANClaimType = "vlanRange"
)

func GetIPClaimTypeFromString

func GetIPClaimTypeFromString(s string) VLANClaimType

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"`
}

VLANEntry is the Schema for the vlanentry API

+k8s:openapi-gen=true

func BuildVLANEntry

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

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

func GetVLANEntry

func GetVLANEntry(ctx context.Context, k store.Key, vrange, id string, labels map[string]string) *VLANEntry

func (*VLANEntry) CalculateHash

func (r *VLANEntry) CalculateHash() ([sha1.Size]byte, error)

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) Descriptor

func (*VLANEntry) Descriptor() ([]byte, []int)

func (*VLANEntry) GetClaimName

func (r *VLANEntry) GetClaimName() string

func (*VLANEntry) GetCondition

GetCondition returns the condition based on the condition kind

func (VLANEntry) GetGroupVersionResource

func (VLANEntry) GetGroupVersionResource() schema.GroupVersionResource

func (*VLANEntry) GetNamespacedName

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

func (*VLANEntry) GetObjectMeta

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

GetObjectMeta implements resource.Object

func (*VLANEntry) GetOwnerReference

func (r *VLANEntry) GetOwnerReference() *commonv1alpha1.OwnerReference

func (*VLANEntry) GetSingularName

func (r *VLANEntry) GetSingularName() string

func (VLANEntry) IsStorageVersion

func (VLANEntry) IsStorageVersion() bool

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

func (*VLANEntry) Marshal

func (m *VLANEntry) Marshal() (dAtA []byte, err error)

func (*VLANEntry) MarshalTo

func (m *VLANEntry) MarshalTo(dAtA []byte) (int, error)

func (*VLANEntry) MarshalToSizedBuffer

func (m *VLANEntry) MarshalToSizedBuffer(dAtA []byte) (int, error)

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 implements resource.Object

func (VLANEntry) NewList

func (VLANEntry) NewList() runtime.Object

NewList implements resource.Object

func (*VLANEntry) ProtoMessage

func (*VLANEntry) ProtoMessage()

func (*VLANEntry) Reset

func (m *VLANEntry) Reset()

func (*VLANEntry) SetConditions

func (r *VLANEntry) SetConditions(c ...conditionv1alpha1.Condition)

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

func (*VLANEntry) Size

func (m *VLANEntry) Size() (n int)

func (*VLANEntry) String

func (this *VLANEntry) String() string

func (*VLANEntry) Unmarshal

func (m *VLANEntry) Unmarshal(dAtA []byte) error

func (*VLANEntry) XXX_DiscardUnknown

func (m *VLANEntry) XXX_DiscardUnknown()

func (*VLANEntry) XXX_Marshal

func (m *VLANEntry) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VLANEntry) XXX_Merge

func (m *VLANEntry) XXX_Merge(src proto.Message)

func (*VLANEntry) XXX_Size

func (m *VLANEntry) XXX_Size() int

func (*VLANEntry) XXX_Unmarshal

func (m *VLANEntry) XXX_Unmarshal(b []byte) error

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) Descriptor

func (*VLANEntryList) Descriptor() ([]byte, []int)

func (*VLANEntryList) GetListMeta

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

GetListMeta returns the ListMeta

func (*VLANEntryList) Marshal

func (m *VLANEntryList) Marshal() (dAtA []byte, err error)

func (*VLANEntryList) MarshalTo

func (m *VLANEntryList) MarshalTo(dAtA []byte) (int, error)

func (*VLANEntryList) MarshalToSizedBuffer

func (m *VLANEntryList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*VLANEntryList) ProtoMessage

func (*VLANEntryList) ProtoMessage()

func (*VLANEntryList) Reset

func (m *VLANEntryList) Reset()

func (*VLANEntryList) Size

func (m *VLANEntryList) Size() (n int)

func (*VLANEntryList) String

func (this *VLANEntryList) String() string

func (*VLANEntryList) Unmarshal

func (m *VLANEntryList) Unmarshal(dAtA []byte) error

func (*VLANEntryList) XXX_DiscardUnknown

func (m *VLANEntryList) XXX_DiscardUnknown()

func (*VLANEntryList) XXX_Marshal

func (m *VLANEntryList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VLANEntryList) XXX_Merge

func (m *VLANEntryList) XXX_Merge(src proto.Message)

func (*VLANEntryList) XXX_Size

func (m *VLANEntryList) XXX_Size() int

func (*VLANEntryList) XXX_Unmarshal

func (m *VLANEntryList) XXX_Unmarshal(b []byte) error

type VLANEntrySpec

type VLANEntrySpec struct {
	// VLANIndex defines the vlan index for the VLAN Claim
	Index string `json:"index" yaml:"index" protobuf:"bytes,1,opt,name=index"`
	// ClaimType defines the claimType of the VLAN Entry
	ClaimType VLANClaimType `json:"claimType,omitempty" yaml:"claimType,omitempty" protobuf:"bytes,2,opt,name=claimType"`
	// ID defines the id of the VLAN entry in the tree
	ID string `json:"id,omitempty" yaml:"id,omitempty" protobuf:"bytes,3,opt,name=id"`
	// ClaimLabels define the user defined labels and selector labels used
	// in resource claim
	commonv1alpha1.ClaimLabels `json:",inline" yaml:",inline" protobuf:"bytes,4,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,5,opt,name=claim"`
	// Owner defines the ownerReference of the VLANClaim
	// Allow for different namesapces, hence it is part of the spec
	Owner *commonv1alpha1.OwnerReference `json:"owner,omitempty" yaml:"owner,omitempty" protobuf:"bytes,6,opt,name=owner"`
}

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.

func (*VLANEntrySpec) Descriptor

func (*VLANEntrySpec) Descriptor() ([]byte, []int)

func (*VLANEntrySpec) Marshal

func (m *VLANEntrySpec) Marshal() (dAtA []byte, err error)

func (*VLANEntrySpec) MarshalTo

func (m *VLANEntrySpec) MarshalTo(dAtA []byte) (int, error)

func (*VLANEntrySpec) MarshalToSizedBuffer

func (m *VLANEntrySpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*VLANEntrySpec) ProtoMessage

func (*VLANEntrySpec) ProtoMessage()

func (*VLANEntrySpec) Reset

func (m *VLANEntrySpec) Reset()

func (*VLANEntrySpec) Size

func (m *VLANEntrySpec) Size() (n int)

func (*VLANEntrySpec) String

func (this *VLANEntrySpec) String() string

func (*VLANEntrySpec) Unmarshal

func (m *VLANEntrySpec) Unmarshal(dAtA []byte) error

func (*VLANEntrySpec) XXX_DiscardUnknown

func (m *VLANEntrySpec) XXX_DiscardUnknown()

func (*VLANEntrySpec) XXX_Marshal

func (m *VLANEntrySpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VLANEntrySpec) XXX_Merge

func (m *VLANEntrySpec) XXX_Merge(src proto.Message)

func (*VLANEntrySpec) XXX_Size

func (m *VLANEntrySpec) XXX_Size() int

func (*VLANEntrySpec) XXX_Unmarshal

func (m *VLANEntrySpec) XXX_Unmarshal(b []byte) error

type VLANEntryStatus

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

VLANEntryStatus defines the observed state of VLANEntry

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) Descriptor

func (*VLANEntryStatus) Descriptor() ([]byte, []int)

func (*VLANEntryStatus) Marshal

func (m *VLANEntryStatus) Marshal() (dAtA []byte, err error)

func (*VLANEntryStatus) MarshalTo

func (m *VLANEntryStatus) MarshalTo(dAtA []byte) (int, error)

func (*VLANEntryStatus) MarshalToSizedBuffer

func (m *VLANEntryStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*VLANEntryStatus) ProtoMessage

func (*VLANEntryStatus) ProtoMessage()

func (*VLANEntryStatus) Reset

func (m *VLANEntryStatus) Reset()

func (*VLANEntryStatus) Size

func (m *VLANEntryStatus) Size() (n int)

func (*VLANEntryStatus) String

func (this *VLANEntryStatus) String() string

func (*VLANEntryStatus) Unmarshal

func (m *VLANEntryStatus) Unmarshal(dAtA []byte) error

func (*VLANEntryStatus) XXX_DiscardUnknown

func (m *VLANEntryStatus) XXX_DiscardUnknown()

func (*VLANEntryStatus) XXX_Marshal

func (m *VLANEntryStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VLANEntryStatus) XXX_Merge

func (m *VLANEntryStatus) XXX_Merge(src proto.Message)

func (*VLANEntryStatus) XXX_Size

func (m *VLANEntryStatus) XXX_Size() int

func (*VLANEntryStatus) XXX_Unmarshal

func (m *VLANEntryStatus) XXX_Unmarshal(b []byte) error

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"`
}

VLANIndex is the Schema for the VLANIndex API

+k8s:openapi-gen=true

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) CalculateHash

func (r *VLANIndex) CalculateHash() ([sha1.Size]byte, error)

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) Descriptor

func (*VLANIndex) Descriptor() ([]byte, []int)

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) GetMaxClaim

func (r *VLANIndex) GetMaxClaim() *VLANClaim

func (*VLANIndex) GetMaxClaimNSN

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

func (*VLANIndex) GetMinClaim

func (r *VLANIndex) GetMinClaim() *VLANClaim

func (*VLANIndex) GetMinClaimNSN

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

func (*VLANIndex) GetNamespacedName

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

func (*VLANIndex) GetObjectMeta

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

GetObjectMeta implements resource.Object

func (*VLANIndex) GetOwnerReference

func (r *VLANIndex) GetOwnerReference() *commonv1alpha1.OwnerReference

func (*VLANIndex) GetSingularName

func (r *VLANIndex) GetSingularName() string

func (VLANIndex) IsStorageVersion

func (VLANIndex) IsStorageVersion() bool

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

func (*VLANIndex) Marshal

func (m *VLANIndex) Marshal() (dAtA []byte, err error)

func (*VLANIndex) MarshalTo

func (m *VLANIndex) MarshalTo(dAtA []byte) (int, error)

func (*VLANIndex) MarshalToSizedBuffer

func (m *VLANIndex) MarshalToSizedBuffer(dAtA []byte) (int, error)

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 implements resource.Object

func (VLANIndex) NewList

func (VLANIndex) NewList() runtime.Object

NewList implements resource.Object

func (*VLANIndex) ProtoMessage

func (*VLANIndex) ProtoMessage()

func (*VLANIndex) Reset

func (m *VLANIndex) Reset()

func (*VLANIndex) SetConditions

func (r *VLANIndex) SetConditions(c ...conditionv1alpha1.Condition)

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

func (*VLANIndex) Size

func (m *VLANIndex) Size() (n int)

func (*VLANIndex) String

func (this *VLANIndex) String() string

func (*VLANIndex) Unmarshal

func (m *VLANIndex) Unmarshal(dAtA []byte) error

func (*VLANIndex) ValidateSyntax

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

func (*VLANIndex) XXX_DiscardUnknown

func (m *VLANIndex) XXX_DiscardUnknown()

func (*VLANIndex) XXX_Marshal

func (m *VLANIndex) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VLANIndex) XXX_Merge

func (m *VLANIndex) XXX_Merge(src proto.Message)

func (*VLANIndex) XXX_Size

func (m *VLANIndex) XXX_Size() int

func (*VLANIndex) XXX_Unmarshal

func (m *VLANIndex) XXX_Unmarshal(b []byte) error

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) Descriptor

func (*VLANIndexList) Descriptor() ([]byte, []int)

func (*VLANIndexList) GetItems

func (r *VLANIndexList) GetItems() []rresource.Object

func (*VLANIndexList) GetListMeta

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

GetListMeta returns the ListMeta

func (*VLANIndexList) Marshal

func (m *VLANIndexList) Marshal() (dAtA []byte, err error)

func (*VLANIndexList) MarshalTo

func (m *VLANIndexList) MarshalTo(dAtA []byte) (int, error)

func (*VLANIndexList) MarshalToSizedBuffer

func (m *VLANIndexList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*VLANIndexList) ProtoMessage

func (*VLANIndexList) ProtoMessage()

func (*VLANIndexList) Reset

func (m *VLANIndexList) Reset()

func (*VLANIndexList) Size

func (m *VLANIndexList) Size() (n int)

func (*VLANIndexList) String

func (this *VLANIndexList) String() string

func (*VLANIndexList) Unmarshal

func (m *VLANIndexList) Unmarshal(dAtA []byte) error

func (*VLANIndexList) XXX_DiscardUnknown

func (m *VLANIndexList) XXX_DiscardUnknown()

func (*VLANIndexList) XXX_Marshal

func (m *VLANIndexList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VLANIndexList) XXX_Merge

func (m *VLANIndexList) XXX_Merge(src proto.Message)

func (*VLANIndexList) XXX_Size

func (m *VLANIndexList) XXX_Size() int

func (*VLANIndexList) XXX_Unmarshal

func (m *VLANIndexList) XXX_Unmarshal(b []byte) error

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
	commonv1alpha1.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.

func (*VLANIndexSpec) Descriptor

func (*VLANIndexSpec) Descriptor() ([]byte, []int)

func (*VLANIndexSpec) Marshal

func (m *VLANIndexSpec) Marshal() (dAtA []byte, err error)

func (*VLANIndexSpec) MarshalTo

func (m *VLANIndexSpec) MarshalTo(dAtA []byte) (int, error)

func (*VLANIndexSpec) MarshalToSizedBuffer

func (m *VLANIndexSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*VLANIndexSpec) ProtoMessage

func (*VLANIndexSpec) ProtoMessage()

func (*VLANIndexSpec) Reset

func (m *VLANIndexSpec) Reset()

func (*VLANIndexSpec) Size

func (m *VLANIndexSpec) Size() (n int)

func (*VLANIndexSpec) String

func (this *VLANIndexSpec) String() string

func (*VLANIndexSpec) Unmarshal

func (m *VLANIndexSpec) Unmarshal(dAtA []byte) error

func (*VLANIndexSpec) XXX_DiscardUnknown

func (m *VLANIndexSpec) XXX_DiscardUnknown()

func (*VLANIndexSpec) XXX_Marshal

func (m *VLANIndexSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VLANIndexSpec) XXX_Merge

func (m *VLANIndexSpec) XXX_Merge(src proto.Message)

func (*VLANIndexSpec) XXX_Size

func (m *VLANIndexSpec) XXX_Size() int

func (*VLANIndexSpec) XXX_Unmarshal

func (m *VLANIndexSpec) XXX_Unmarshal(b []byte) error

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
	conditionv1alpha1.ConditionedStatus `json:",inline" yaml:",inline" protobuf:"bytes,3,opt,name=conditionedStatus"`
}

VLANIndexStatus defines the observed state of VLANIndex

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) Descriptor

func (*VLANIndexStatus) Descriptor() ([]byte, []int)

func (*VLANIndexStatus) Marshal

func (m *VLANIndexStatus) Marshal() (dAtA []byte, err error)

func (*VLANIndexStatus) MarshalTo

func (m *VLANIndexStatus) MarshalTo(dAtA []byte) (int, error)

func (*VLANIndexStatus) MarshalToSizedBuffer

func (m *VLANIndexStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*VLANIndexStatus) ProtoMessage

func (*VLANIndexStatus) ProtoMessage()

func (*VLANIndexStatus) Reset

func (m *VLANIndexStatus) Reset()

func (*VLANIndexStatus) Size

func (m *VLANIndexStatus) Size() (n int)

func (*VLANIndexStatus) String

func (this *VLANIndexStatus) String() string

func (*VLANIndexStatus) Unmarshal

func (m *VLANIndexStatus) Unmarshal(dAtA []byte) error

func (*VLANIndexStatus) XXX_DiscardUnknown

func (m *VLANIndexStatus) XXX_DiscardUnknown()

func (*VLANIndexStatus) XXX_Marshal

func (m *VLANIndexStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VLANIndexStatus) XXX_Merge

func (m *VLANIndexStatus) XXX_Merge(src proto.Message)

func (*VLANIndexStatus) XXX_Size

func (m *VLANIndexStatus) XXX_Size() int

func (*VLANIndexStatus) XXX_Unmarshal

func (m *VLANIndexStatus) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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