Documentation ¶
Overview ¶
Package vlan is the internal version of the API.
Index ¶
- Constants
- Variables
- func BuildVLANClaim(meta metav1.ObjectMeta, spec *VLANClaimSpec, status *VLANClaimStatus) backend.ClaimObject
- func BuildVLANEntry(meta metav1.ObjectMeta, spec *VLANEntrySpec, status *VLANEntryStatus) backend.EntryObject
- func GetMaxClaimRange(id uint32) string
- func GetMinClaimRange(id uint32) string
- func GetVLANEntry(k store.Key, vrange, id string, labels map[string]string) backend.EntryObject
- func Kind(kind string) schema.GroupKind
- func NewChoreoClaimInvoker(be backend.Backend) options.BackendInvoker
- func NewChoreoIndexInvoker(be backend.Backend) options.BackendInvoker
- func Resource(resource string) schema.GroupResource
- func VLANClaimFromRuntime(ru runtime.Object) (backend.ClaimObject, error)
- func VLANClaimFromUnstructured(ru runtime.Unstructured) (backend.ClaimObject, error)
- func VLANEntryFromRuntime(ru runtime.Object) (backend.EntryObject, error)
- func VLANEntryFromUnstructured(ru runtime.Unstructured) (backend.EntryObject, error)
- func VLANIndexFromRuntime(ru runtime.Object) (backend.IndexObject, error)
- type SyntaxValidator
- type VLANClaim
- func (in *VLANClaim) DeepCopy() *VLANClaim
- func (in *VLANClaim) DeepCopyInto(out *VLANClaim)
- func (in *VLANClaim) DeepCopyObject() runtime.Object
- func (r *VLANClaim) FieldLabelConversion() runtime.FieldLabelConversionFunc
- func (r *VLANClaim) FieldSelector() ...
- func (VLANClaim) GetCategories() []string
- func (r *VLANClaim) GetChoreoAPIVersion() string
- func (r *VLANClaim) GetClaimID(t string, id uint64) tree.ID
- func (r *VLANClaim) GetClaimLabels() labels.Set
- func (r *VLANClaim) GetClaimRequest() string
- func (r *VLANClaim) GetClaimResponse() string
- func (r *VLANClaim) GetClaimSet(typ string) (map[string]tree.ID, sets.Set[string], error)
- func (r *VLANClaim) GetClaimType() backend.ClaimType
- func (r *VLANClaim) GetCondition(t condition.ConditionType) condition.Condition
- func (VLANClaim) GetGroupVersionResource() schema.GroupVersionResource
- func (r *VLANClaim) GetIndex() string
- func (r *VLANClaim) GetKey() store.Key
- func (r *VLANClaim) GetLabelSelector() (labels.Selector, error)
- func (r *VLANClaim) GetNamespacedName() types.NamespacedName
- func (r *VLANClaim) GetObjectMeta() *metav1.ObjectMeta
- func (r *VLANClaim) GetOwnerSelector() (labels.Selector, error)
- func (r *VLANClaim) GetRange() *string
- func (r *VLANClaim) GetRangeID(t string) (tree.Range, error)
- func (r *VLANClaim) GetSelector() *metav1.LabelSelector
- func (VLANClaim) GetShortNames() []string
- func (VLANClaim) GetSingularName() string
- func (r *VLANClaim) GetStaticID() *uint64
- func (r *VLANClaim) GetStaticTreeID(t string) tree.ID
- func (r *VLANClaim) GetStatus() resource.StatusSubResource
- func (r *VLANClaim) GetStatusClaimID(typ string) tree.ID
- func (r *VLANClaim) GetStatusID() *uint64
- func (r *VLANClaim) GetTable(t string, to, from uint64) table.Table
- func (r *VLANClaim) IsEqual(ctx context.Context, obj, old runtime.Object) bool
- func (r *VLANClaim) IsOwner(labels labels.Set) bool
- func (r *VLANClaim) IsStatusEqual(ctx context.Context, obj, old runtime.Object) bool
- func (VLANClaim) IsStorageVersion() bool
- func (VLANClaim) NamespaceScoped() bool
- func (VLANClaim) New() runtime.Object
- func (VLANClaim) NewList() runtime.Object
- func (r *VLANClaim) PrepareForCreate(ctx context.Context, obj runtime.Object)
- func (r *VLANClaim) PrepareForStatusUpdate(ctx context.Context, obj, old runtime.Object)
- func (r *VLANClaim) PrepareForUpdate(ctx context.Context, obj, old runtime.Object)
- func (r *VLANClaim) SetConditions(c ...condition.Condition)
- func (r *VLANClaim) SetStatusID(s *uint64)
- func (r *VLANClaim) SetStatusRange(s *string)
- func (r *VLANClaim) TableConvertor() func(gr schema.GroupResource) rest.TableConvertor
- func (r *VLANClaim) ValidateCreate(ctx context.Context, obj runtime.Object) field.ErrorList
- func (r *VLANClaim) ValidateOwner(labels labels.Set) error
- func (r *VLANClaim) ValidateStatusUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList
- func (r *VLANClaim) ValidateSyntax(s string) field.ErrorList
- func (r *VLANClaim) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList
- func (r *VLANClaim) ValidateVLANClaimType() error
- func (r *VLANClaim) ValidateVLANID() error
- func (r *VLANClaim) ValidateVLANRange() error
- type VLANClaimFilter
- type VLANClaimList
- type VLANClaimSpec
- type VLANClaimStatus
- type VLANDynamicIDSyntaxValidator
- type VLANEntry
- func (in *VLANEntry) DeepCopy() *VLANEntry
- func (in *VLANEntry) DeepCopyInto(out *VLANEntry)
- func (in *VLANEntry) DeepCopyObject() runtime.Object
- func (r *VLANEntry) FieldLabelConversion() runtime.FieldLabelConversionFunc
- func (r *VLANEntry) FieldSelector() ...
- func (VLANEntry) GetCategories() []string
- func (r *VLANEntry) GetChoreoAPIVersion() string
- func (r *VLANEntry) GetClaimType() backend.ClaimType
- func (r *VLANEntry) GetCondition(t condition.ConditionType) condition.Condition
- func (VLANEntry) GetGroupVersionResource() schema.GroupVersionResource
- func (r *VLANEntry) GetIndex() string
- func (r *VLANEntry) GetKey() store.Key
- func (r *VLANEntry) GetNamespacedName() types.NamespacedName
- func (r *VLANEntry) GetObjectMeta() *metav1.ObjectMeta
- func (VLANEntry) GetShortNames() []string
- func (VLANEntry) GetSingularName() string
- func (r *VLANEntry) GetSpecID() string
- func (r *VLANEntry) GetStatus() resource.StatusSubResource
- func (r *VLANEntry) IsEqual(ctx context.Context, obj, old runtime.Object) bool
- func (r *VLANEntry) IsIndexEntry() bool
- func (r *VLANEntry) IsStatusEqual(ctx context.Context, obj, old runtime.Object) bool
- func (VLANEntry) IsStorageVersion() bool
- func (VLANEntry) NamespaceScoped() bool
- func (VLANEntry) New() runtime.Object
- func (VLANEntry) NewList() runtime.Object
- func (r *VLANEntry) PrepareForCreate(ctx context.Context, obj runtime.Object)
- func (r *VLANEntry) PrepareForStatusUpdate(ctx context.Context, obj, old runtime.Object)
- func (r *VLANEntry) PrepareForUpdate(ctx context.Context, obj, old runtime.Object)
- func (r *VLANEntry) SetConditions(c ...condition.Condition)
- func (r *VLANEntry) TableConvertor() func(gr schema.GroupResource) rest.TableConvertor
- func (r *VLANEntry) ValidateCreate(ctx context.Context, obj runtime.Object) field.ErrorList
- func (r *VLANEntry) ValidateStatusUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList
- func (r *VLANEntry) ValidateSyntax(s string) field.ErrorList
- func (r *VLANEntry) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList
- type VLANEntryFilter
- type VLANEntryList
- type VLANEntrySpec
- type VLANEntryStatus
- type VLANIndex
- func (in *VLANIndex) DeepCopy() *VLANIndex
- func (in *VLANIndex) DeepCopyInto(out *VLANIndex)
- func (in *VLANIndex) DeepCopyObject() runtime.Object
- func (r *VLANIndex) FieldLabelConversion() runtime.FieldLabelConversionFunc
- func (r *VLANIndex) FieldSelector() ...
- func (VLANIndex) GetCategories() []string
- func (r *VLANIndex) GetClaims() []backend.ClaimObject
- func (r *VLANIndex) GetCondition(t condition.ConditionType) condition.Condition
- func (VLANIndex) GetGroupVersionResource() schema.GroupVersionResource
- func (r *VLANIndex) GetKey() store.Key
- func (r *VLANIndex) GetMax() uint64
- func (r *VLANIndex) GetMaxClaim() backend.ClaimObject
- func (r *VLANIndex) GetMaxClaimNSN() types.NamespacedName
- func (r *VLANIndex) GetMaxID() *uint64
- func (r *VLANIndex) GetMinClaim() backend.ClaimObject
- func (r *VLANIndex) GetMinClaimNSN() types.NamespacedName
- func (r *VLANIndex) GetMinID() *uint64
- func (r *VLANIndex) GetNamespacedName() types.NamespacedName
- func (r *VLANIndex) GetObjectMeta() *metav1.ObjectMeta
- func (VLANIndex) GetShortNames() []string
- func (VLANIndex) GetSingularName() string
- func (r *VLANIndex) GetStatus() resource.StatusSubResource
- func (r *VLANIndex) GetTree() gtree.GTree
- func (r *VLANIndex) GetType() string
- func (r *VLANIndex) IsEqual(ctx context.Context, obj, old runtime.Object) bool
- func (r *VLANIndex) IsStatusEqual(ctx context.Context, obj, old runtime.Object) bool
- func (VLANIndex) IsStorageVersion() bool
- func (VLANIndex) NamespaceScoped() bool
- func (VLANIndex) New() runtime.Object
- func (VLANIndex) NewList() runtime.Object
- func (r *VLANIndex) PrepareForCreate(ctx context.Context, obj runtime.Object)
- func (r *VLANIndex) PrepareForStatusUpdate(ctx context.Context, obj, old runtime.Object)
- func (r *VLANIndex) PrepareForUpdate(ctx context.Context, obj, old runtime.Object)
- func (r *VLANIndex) SetConditions(c ...condition.Condition)
- func (r *VLANIndex) TableConvertor() func(gr schema.GroupResource) rest.TableConvertor
- func (r *VLANIndex) ValidateCreate(ctx context.Context, obj runtime.Object) field.ErrorList
- func (r *VLANIndex) ValidateStatusUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList
- func (r *VLANIndex) ValidateSyntax(s string) field.ErrorList
- func (r *VLANIndex) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList
- type VLANIndexFilter
- type VLANIndexList
- type VLANIndexSpec
- type VLANIndexStatus
- type VLANRangeSyntaxValidator
- type VLANStaticIDSyntaxValidator
Constants ¶
const ( GroupName = "vlan.be.kuid.dev" Version = runtime.APIVersionInternal )
const ( VLANClaimPlural = "vlanclaims" VLANClaimSingular = "vlanclaim" )
const ( VLANEntryPlural = "vlanentries" VLANEntrySingular = "vlanEntry" )
const ( VLANIndexPlural = "vlanindices" VLANIndexSingular = "vlanIndex" )
const VLANID_Max = 4095
const VLANID_Min = 0
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var ( VLANClaimShortNames = []string{} VLANClaimCategories = []string{"kuid", "knet"} )
var ( VLANClaimKind = reflect.TypeOf(VLANClaim{}).Name() VLANClaimListKind = reflect.TypeOf(VLANClaimList{}).Name() )
var ( VLANEntryShortNames = []string{} VLANEntryCategories = []string{"kuid", "knet"} )
var ( VLANEntryKind = reflect.TypeOf(VLANEntry{}).Name() VLANEntryListKind = reflect.TypeOf(VLANEntryList{}).Name() )
var ( VLANIndexShortNames = []string{} VLANIndexCategories = []string{"kuid", "knet"} )
var ( VLANIndexKind = reflect.TypeOf(VLANIndex{}).Name() VLANIndexListKind = reflect.TypeOf(VLANIndexList{}).Name() )
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 GetMinClaimRange ¶
func GetVLANEntry ¶
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 ¶
+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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VLANClaim.
func (*VLANClaim) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VLANClaim) DeepCopyObject ¶
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 (VLANClaim) GetCategories ¶
GetCategories return the categories of the resource GetCategories implements resource.Object
func (*VLANClaim) GetChoreoAPIVersion ¶
func (*VLANClaim) GetClaimLabels ¶
func (*VLANClaim) GetClaimRequest ¶
func (*VLANClaim) GetClaimResponse ¶
func (*VLANClaim) GetClaimSet ¶
func (*VLANClaim) GetClaimType ¶
func (*VLANClaim) GetCondition ¶
func (r *VLANClaim) GetCondition(t condition.ConditionType) condition.Condition
GetCondition returns the condition bVLANed on the condition kind
func (VLANClaim) GetGroupVersionResource ¶
func (VLANClaim) GetGroupVersionResource() schema.GroupVersionResource
func (*VLANClaim) GetLabelSelector ¶
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 ¶
GetOwnerSelector selects the route bVLANed on the name of the claim
func (*VLANClaim) GetSelector ¶
func (r *VLANClaim) GetSelector() *metav1.LabelSelector
func (VLANClaim) GetShortNames ¶
GetShortNames returns the shortnames for the resource GetShortNames implements resource.Object
func (VLANClaim) GetSingularName ¶
GetSingularName returns the singular name of the resource GetSingularName implements resource.Object
func (*VLANClaim) GetStaticID ¶
func (*VLANClaim) GetStatus ¶
func (r *VLANClaim) GetStatus() resource.StatusSubResource
GetStatus return the resource.StatusSubResource interface
func (*VLANClaim) GetStatusClaimID ¶ added in v0.0.10
func (*VLANClaim) GetStatusID ¶
func (*VLANClaim) IsEqual ¶
IsEqual returns a bool indicating if the desired state of both resources is equal or not
func (*VLANClaim) IsStatusEqual ¶
IsStatusEqual returns a bool indicating if the status of both resources is equal or not
func (VLANClaim) IsStorageVersion ¶
IsStorageVersion returns true -- Config is used VLAN the internal version. IsStorageVersion implements resource.Object
func (VLANClaim) NamespaceScoped ¶
NamespaceScoped returns true to indicate Fortune is a namespaced resource. NamespaceScoped implements resource.Object
func (*VLANClaim) PrepareForCreate ¶
func (*VLANClaim) PrepareForStatusUpdate ¶
PrepareForStatusUpdate prepares the status update
func (*VLANClaim) PrepareForUpdate ¶
func (*VLANClaim) SetConditions ¶
SetConditions sets the conditions on the resource. it allows for 0, 1 or more conditions to be set at once
func (*VLANClaim) SetStatusID ¶
func (*VLANClaim) SetStatusRange ¶
func (*VLANClaim) TableConvertor ¶
func (r *VLANClaim) TableConvertor() func(gr schema.GroupResource) rest.TableConvertor
TableConvertor return the table format of the resource
func (*VLANClaim) ValidateCreate ¶
ValidateCreate statically validates
func (*VLANClaim) ValidateStatusUpdate ¶
func (r *VLANClaim) ValidateStatusUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList
ValidateStatusUpdate validates status updates
func (*VLANClaim) ValidateUpdate ¶
func (*VLANClaim) ValidateVLANClaimType ¶
func (*VLANClaim) ValidateVLANID ¶
func (*VLANClaim) ValidateVLANRange ¶
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.
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 ¶
func (r VLANClaimStatus) CopyTo(obj resource.ObjectWithStatusSubResource)
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 ¶
func (in *VLANDynamicIDSyntaxValidator) DeepCopy() *VLANDynamicIDSyntaxValidator
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VLANDynamicIDSyntaxValidator.
func (*VLANDynamicIDSyntaxValidator) DeepCopyInto ¶
func (in *VLANDynamicIDSyntaxValidator) DeepCopyInto(out *VLANDynamicIDSyntaxValidator)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VLANEntry.
func (*VLANEntry) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VLANEntry) DeepCopyObject ¶
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 (VLANEntry) GetCategories ¶
GetCategories return the categories of the resource GetCategories implements resource.Object
func (*VLANEntry) GetChoreoAPIVersion ¶
func (*VLANEntry) GetClaimType ¶
func (*VLANEntry) GetCondition ¶
func (r *VLANEntry) GetCondition(t condition.ConditionType) condition.Condition
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 GetObjectMeta implements resource.Object
func (VLANEntry) GetShortNames ¶
GetShortNames returns the shortnames for the resource GetShortNames implements resource.Object
func (VLANEntry) GetSingularName ¶
GetSingularName returns the singular name of the resource GetSingularName implements resource.Object
func (*VLANEntry) GetStatus ¶
func (r *VLANEntry) GetStatus() resource.StatusSubResource
GetStatus return the resource.StatusSubResource interface
func (*VLANEntry) IsEqual ¶
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 (*VLANEntry) IsStatusEqual ¶
IsStatusEqual returns a bool indicating if the status of both resources is equal or not
func (VLANEntry) IsStorageVersion ¶
IsStorageVersion returns true -- Config is used as the internal version. IsStorageVersion implements resource.Object
func (VLANEntry) NamespaceScoped ¶
NamespaceScoped returns true to indicate Fortune is a namespaced resource. NamespaceScoped implements resource.Object
func (*VLANEntry) PrepareForCreate ¶
func (*VLANEntry) PrepareForStatusUpdate ¶
PrepareForStatusUpdate prepares the status update
func (*VLANEntry) PrepareForUpdate ¶
func (*VLANEntry) SetConditions ¶
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 ¶
ValidateCreate statically validates
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.
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 ¶
func (r VLANEntryStatus) CopyTo(obj resource.ObjectWithStatusSubResource)
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VLANIndex.
func (*VLANIndex) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*VLANIndex) DeepCopyObject ¶
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 (VLANIndex) GetCategories ¶
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 ¶
func (r *VLANIndex) GetCondition(t condition.ConditionType) condition.Condition
GetCondition returns the condition based on the condition kind
func (VLANIndex) GetGroupVersionResource ¶
func (VLANIndex) GetGroupVersionResource() schema.GroupVersionResource
func (*VLANIndex) GetMaxClaim ¶
func (r *VLANIndex) GetMaxClaim() backend.ClaimObject
func (*VLANIndex) GetMaxClaimNSN ¶
func (r *VLANIndex) GetMaxClaimNSN() types.NamespacedName
func (*VLANIndex) GetMinClaim ¶
func (r *VLANIndex) GetMinClaim() backend.ClaimObject
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 GetObjectMeta implements resource.Object
func (VLANIndex) GetShortNames ¶
GetShortNames returns the shortnames for the resource GetShortNames implements resource.Object
func (VLANIndex) GetSingularName ¶
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) IsEqual ¶
IsEqual returns a bool indicating if the desired state of both resources is equal or not
func (*VLANIndex) IsStatusEqual ¶
IsStatusEqual returns a bool indicating if the status of both resources is equal or not
func (VLANIndex) IsStorageVersion ¶
IsStorageVersion returns true -- Config is used as the internal version. IsStorageVersion implements resource.Object
func (VLANIndex) NamespaceScoped ¶
NamespaceScoped returns true to indicate Fortune is a namespaced resource. NamespaceScoped implements resource.Object
func (*VLANIndex) PrepareForCreate ¶
func (*VLANIndex) PrepareForStatusUpdate ¶
PrepareForStatusUpdate prepares the status update
func (*VLANIndex) PrepareForUpdate ¶
func (*VLANIndex) SetConditions ¶
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 ¶
ValidateCreate statically validates
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.
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 ¶
func (r VLANIndexStatus) CopyTo(obj resource.ObjectWithStatusSubResource)
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 ¶
func (in *VLANRangeSyntaxValidator) DeepCopy() *VLANRangeSyntaxValidator
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.
type VLANStaticIDSyntaxValidator ¶
type VLANStaticIDSyntaxValidator struct {
// contains filtered or unexported fields
}
func (*VLANStaticIDSyntaxValidator) DeepCopy ¶
func (in *VLANStaticIDSyntaxValidator) DeepCopy() *VLANStaticIDSyntaxValidator
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VLANStaticIDSyntaxValidator.
func (*VLANStaticIDSyntaxValidator) DeepCopyInto ¶
func (in *VLANStaticIDSyntaxValidator) DeepCopyInto(out *VLANStaticIDSyntaxValidator)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
Source Files ¶
- doc.go
- helper.go
- invoker_claim.go
- invoker_index.go
- register.go
- vlanclaim_object.go
- vlanclaim_resource.go
- vlanclaim_syntaxvalidator.go
- vlanclaim_types.go
- vlanentry_object.go
- vlanentry_resource.go
- vlanentry_types.go
- vlanindex_helpers.go
- vlanindex_object.go
- vlanindex_resource.go
- vlanindex_types.go
- zz_generated.deepcopy.go