as

package
v0.0.13 Latest Latest
Warning

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

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

Documentation

Overview

Package as is the internal version of the API.

Index

Constants

View Source
const (
	ASClaimPlural   = "asclaims"
	ASClaimSingular = "asclaim"
)
View Source
const (
	ASEntryPlural   = "asentries"
	ASEntrySingular = "asentry"
)
View Source
const (
	ASIndexPlural   = "asindices"
	ASIndexSingular = "asindex"
)
View Source
const (
	GroupName = "as.be.kuid.dev"
	Version   = runtime.APIVersionInternal
)
View Source
const ASID_Max = 4294967295
View Source
const ASID_Min = 0

Variables

View Source
var (
	ASClaimShortNames = []string{}
	ASClaimCategories = []string{"kuid", "knet"}
)
View Source
var (
	ASClaimKind     = reflect.TypeOf(ASClaim{}).Name()
	ASClaimListKind = reflect.TypeOf(ASClaimList{}).Name()
)
View Source
var (
	ASEntryShortNames = []string{}
	ASEntryCategories = []string{"kuid", "knet"}
)
View Source
var (
	ASEntryKind     = reflect.TypeOf(ASEntry{}).Name()
	ASEntryListKind = reflect.TypeOf(ASEntryList{}).Name()
)
View Source
var (
	ASIndexShortNames = []string{}
	ASIndexCategories = []string{"kuid", "knet"}
)
View Source
var (
	ASIndexKind     = reflect.TypeOf(ASIndex{}).Name()
	ASIndexListKind = reflect.TypeOf(ASIndexList{}).Name()
)
View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: Version}

Functions

func ASClaimFromRuntime

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

func ASClaimFromUnstructured

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

func ASEntryFromRuntime

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

func ASEntryFromUnstructured

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

func ASIndexFromRuntime

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

func BuildASClaim

func BuildASClaim(meta metav1.ObjectMeta, spec *ASClaimSpec, status *ASClaimStatus) backend.ClaimObject

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

func BuildASEntry

func BuildASEntry(meta metav1.ObjectMeta, spec *ASEntrySpec, status *ASEntryStatus) backend.EntryObject

func GetASEntry

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

func GetMaxClaimRange

func GetMaxClaimRange(id uint32) string

func GetMinClaimRange

func GetMinClaimRange(id uint32) string

func Kind

func Kind(kind string) schema.GroupKind

func NewChoreoClaimInvoker

func NewChoreoClaimInvoker(be backend.Backend) options.BackendInvoker

func NewChoreoIndexInvoker

func NewChoreoIndexInvoker(be backend.Backend) options.BackendInvoker

func Resource

func Resource(resource string) schema.GroupResource

Types

type ASClaim

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

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

func (*ASClaim) DeepCopy

func (in *ASClaim) DeepCopy() *ASClaim

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

func (*ASClaim) DeepCopyInto

func (in *ASClaim) DeepCopyInto(out *ASClaim)

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

func (*ASClaim) DeepCopyObject

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

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

func (*ASClaim) FieldLabelConversion

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

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

func (*ASClaim) FieldSelector

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

func (ASClaim) GetCategories

func (ASClaim) GetCategories() []string

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

func (*ASClaim) GetChoreoAPIVersion

func (r *ASClaim) GetChoreoAPIVersion() string

func (*ASClaim) GetClaimID

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

func (*ASClaim) GetClaimLabels

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

func (*ASClaim) GetClaimRequest

func (r *ASClaim) GetClaimRequest() string

func (*ASClaim) GetClaimResponse

func (r *ASClaim) GetClaimResponse() string

func (*ASClaim) GetClaimSet

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

func (*ASClaim) GetClaimType

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

func (*ASClaim) GetCondition

func (r *ASClaim) GetCondition(t condition.ConditionType) condition.Condition

GetCondition returns the condition based on the condition kind

func (ASClaim) GetGroupVersionResource

func (ASClaim) GetGroupVersionResource() schema.GroupVersionResource

func (*ASClaim) GetIndex

func (r *ASClaim) GetIndex() string

func (*ASClaim) GetKey

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

func (*ASClaim) GetLabelSelector

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

func (*ASClaim) GetNamespacedName

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

func (*ASClaim) GetObjectMeta

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

GetObjectMeta implements resource.Object GetObjectMeta implements resource.Object

func (*ASClaim) GetOwnerSelector

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

GetOwnerSelector selects the route based on the name of the claim

func (*ASClaim) GetRange

func (r *ASClaim) GetRange() *string

func (*ASClaim) GetRangeID

func (r *ASClaim) GetRangeID(_ string) (tree.Range, error)

func (*ASClaim) GetSelector

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

func (ASClaim) GetShortNames

func (ASClaim) GetShortNames() []string

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

func (ASClaim) GetSingularName

func (ASClaim) GetSingularName() string

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

func (*ASClaim) GetStaticID

func (r *ASClaim) GetStaticID() *uint64

func (*ASClaim) GetStaticTreeID

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

func (*ASClaim) GetStatus

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

GetStatus return the resource.StatusSubResource interface

func (*ASClaim) GetStatusClaimID added in v0.0.10

func (r *ASClaim) GetStatusClaimID(_ string) tree.ID

func (*ASClaim) GetStatusID

func (r *ASClaim) GetStatusID() *uint64

func (*ASClaim) GetTable

func (r *ASClaim) GetTable(_ string, to, from uint64) table.Table

func (*ASClaim) IsEqual

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

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

func (*ASClaim) IsStatusEqual

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

func (ASClaim) IsStorageVersion() bool

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

func (ASClaim) NamespaceScoped

func (ASClaim) NamespaceScoped() bool

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

func (ASClaim) New

func (ASClaim) New() runtime.Object

New return an empty resource New implements resource.Object

func (ASClaim) NewList

func (ASClaim) NewList() runtime.Object

NewList return an empty resourceList NewList implements resource.Object

func (*ASClaim) PrepareForCreate

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

func (*ASClaim) PrepareForStatusUpdate

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

PrepareForStatusUpdate prepares the status update

func (*ASClaim) PrepareForUpdate

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

func (*ASClaim) SetConditions

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

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

func (*ASClaim) SetStatusRange

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

func (*ASClaim) TableConvertor

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

TableConvertor return the table format of the resource

func (*ASClaim) ValidateASClaimType

func (r *ASClaim) ValidateASClaimType() error

func (*ASClaim) ValidateASID

func (r *ASClaim) ValidateASID() error

func (*ASClaim) ValidateASRange

func (r *ASClaim) ValidateASRange() error

func (*ASClaim) ValidateCreate

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

ValidateCreate statically validates

func (*ASClaim) ValidateOwner

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

func (*ASClaim) ValidateStatusUpdate

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

ValidateStatusUpdate validates status updates

func (*ASClaim) ValidateSyntax

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

func (*ASClaim) ValidateUpdate

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

type ASClaimFilter

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

func (in *ASClaimFilter) DeepCopy() *ASClaimFilter

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

func (*ASClaimFilter) DeepCopyInto

func (in *ASClaimFilter) DeepCopyInto(out *ASClaimFilter)

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

func (*ASClaimFilter) Filter

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

type ASClaimList

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

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

func (*ASClaimList) DeepCopy

func (in *ASClaimList) DeepCopy() *ASClaimList

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

func (*ASClaimList) DeepCopyInto

func (in *ASClaimList) DeepCopyInto(out *ASClaimList)

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

func (*ASClaimList) DeepCopyObject

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

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

func (*ASClaimList) GetListMeta

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

GetListMeta returns the ListMeta GetListMeta implements the resource.ObjectList

type ASClaimSpec

type ASClaimSpec struct {
	// Index defines the index for the AS Claim
	Index string `json:"index" protobuf:"bytes,1,opt,name=index"`
	// ASID defines the AS for the AS claim
	ID *uint32 `json:"id,omitempty" protobuf:"bytes,2,opt,name=id"`
	// Range defines the range of the resource
	// The following notation is used: start-end <start-ID>-<end-ID>
	// the IDs in the range must be consecutive
	Range *string `json:"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" protobuf:"bytes,4,opt,name=claimLabels"`
}

ASClaimSpec defines the desired state of ASClaim

func (*ASClaimSpec) DeepCopy

func (in *ASClaimSpec) DeepCopy() *ASClaimSpec

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

func (*ASClaimSpec) DeepCopyInto

func (in *ASClaimSpec) DeepCopyInto(out *ASClaimSpec)

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

type ASClaimStatus

type ASClaimStatus struct {
	// ConditionedStatus provides the status of the ASClain using conditions
	// - a ready condition indicates the overall status of the resource
	condition.ConditionedStatus `json:",inline" protobuf:"bytes,1,opt,name=conditionedStatus"`
	// ASID defines the AS for the AS claim
	// +optional
	ID *uint32 `json:"id,omitempty" protobuf:"bytes,2,opt,name=id"`
	// ASRange defines the AS range for the AS claim
	// +optional
	Range *string `json:"range,omitempty" protobuf:"bytes,3,opt,name=range"`
	// ExpiryTime defines when the claim expires
	// +optional
	ExpiryTime *string `json:"expiryTime,omitempty" protobuf:"bytes,4,opt,name=expiryTime"`
}

ASClaimStatus defines the observed state of ASClaim

func (ASClaimStatus) CopyTo

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

func (*ASClaimStatus) DeepCopy

func (in *ASClaimStatus) DeepCopy() *ASClaimStatus

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

func (*ASClaimStatus) DeepCopyInto

func (in *ASClaimStatus) DeepCopyInto(out *ASClaimStatus)

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

func (ASClaimStatus) SubResourceName

func (ASClaimStatus) SubResourceName() string

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

type ASDynamicIDSyntaxValidator

type ASDynamicIDSyntaxValidator struct {
	Name string
}

func (*ASDynamicIDSyntaxValidator) DeepCopy

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

func (*ASDynamicIDSyntaxValidator) DeepCopyInto

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

func (*ASDynamicIDSyntaxValidator) Validate

func (r *ASDynamicIDSyntaxValidator) Validate(claim *ASClaim) field.ErrorList

type ASEntry

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

	Spec   ASEntrySpec   `json:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
	Status ASEntryStatus `json:"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} ASEntry is the Schema for the ASentry API

func (*ASEntry) DeepCopy

func (in *ASEntry) DeepCopy() *ASEntry

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

func (*ASEntry) DeepCopyInto

func (in *ASEntry) DeepCopyInto(out *ASEntry)

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

func (*ASEntry) DeepCopyObject

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

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

func (*ASEntry) FieldLabelConversion

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

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

func (*ASEntry) FieldSelector

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

func (ASEntry) GetCategories

func (ASEntry) GetCategories() []string

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

func (*ASEntry) GetChoreoAPIVersion

func (r *ASEntry) GetChoreoAPIVersion() string

func (*ASEntry) GetClaimType

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

func (*ASEntry) GetCondition

func (r *ASEntry) GetCondition(t condition.ConditionType) condition.Condition

GetCondition returns the condition based on the condition kind

func (ASEntry) GetGroupVersionResource

func (ASEntry) GetGroupVersionResource() schema.GroupVersionResource

func (*ASEntry) GetIndex

func (r *ASEntry) GetIndex() string

func (*ASEntry) GetKey

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

func (*ASEntry) GetNamespacedName

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

func (*ASEntry) GetObjectMeta

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

GetObjectMeta implements resource.Object GetObjectMeta implements resource.Object

func (ASEntry) GetShortNames

func (ASEntry) GetShortNames() []string

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

func (ASEntry) GetSingularName

func (ASEntry) GetSingularName() string

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

func (*ASEntry) GetSpecID

func (r *ASEntry) GetSpecID() string

func (*ASEntry) GetStatus

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

GetStatus return the resource.StatusSubResource interface

func (*ASEntry) IsEqual

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

func (r *ASEntry) IsIndexEntry() bool

func (*ASEntry) IsStatusEqual

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

func (ASEntry) IsStorageVersion() bool

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

func (ASEntry) NamespaceScoped

func (ASEntry) NamespaceScoped() bool

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

func (ASEntry) New

func (ASEntry) New() runtime.Object

New return an empty resource New implements resource.Object

func (ASEntry) NewList

func (ASEntry) NewList() runtime.Object

NewList return an empty resourceList NewList implements resource.Object

func (*ASEntry) PrepareForCreate

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

func (*ASEntry) PrepareForStatusUpdate

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

PrepareForStatusUpdate prepares the status update

func (*ASEntry) PrepareForUpdate

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

func (*ASEntry) SetConditions

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

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

TableConvertor return the table format of the resource

func (*ASEntry) ValidateCreate

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

ValidateCreate statically validates

func (*ASEntry) ValidateStatusUpdate

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

ValidateStatusUpdate validates status updates

func (*ASEntry) ValidateSyntax

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

func (*ASEntry) ValidateUpdate

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

type ASEntryFilter

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

func (in *ASEntryFilter) DeepCopy() *ASEntryFilter

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

func (*ASEntryFilter) DeepCopyInto

func (in *ASEntryFilter) DeepCopyInto(out *ASEntryFilter)

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

func (*ASEntryFilter) Filter

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

type ASEntryList

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

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

func (*ASEntryList) DeepCopy

func (in *ASEntryList) DeepCopy() *ASEntryList

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

func (*ASEntryList) DeepCopyInto

func (in *ASEntryList) DeepCopyInto(out *ASEntryList)

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

func (*ASEntryList) DeepCopyObject

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

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

func (*ASEntryList) GetListMeta

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

GetListMeta returns the ListMeta GetListMeta implements the resource.ObjectList

type ASEntrySpec

type ASEntrySpec struct {
	// Index defines the index for the resource
	Index string `json:"index" protobuf:"bytes,1,opt,name=index"`
	// IndexEntry identifies if the entry is originated from an IP Index
	IndexEntry bool `json:"indexEntry" protobuf:"bytes,2,opt,name=indexEntry"`
	// ClaimType defines the claimType of the resource
	ClaimType backend.ClaimType `json:"claimType,omitempty" protobuf:"bytes,3,opt,name=claimType"`
	// ID defines the id of the resource in the tree
	ID string `json:"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" protobuf:"bytes,5,opt,name=claimLabels"`
}

ASEntrySpec defines the desired state of ASEntry

func (*ASEntrySpec) DeepCopy

func (in *ASEntrySpec) DeepCopy() *ASEntrySpec

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

func (*ASEntrySpec) DeepCopyInto

func (in *ASEntrySpec) DeepCopyInto(out *ASEntrySpec)

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

type ASEntryStatus

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

ASEntryStatus defines the observed state of ASEntry

func (ASEntryStatus) CopyTo

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

func (*ASEntryStatus) DeepCopy

func (in *ASEntryStatus) DeepCopy() *ASEntryStatus

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

func (*ASEntryStatus) DeepCopyInto

func (in *ASEntryStatus) DeepCopyInto(out *ASEntryStatus)

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

func (ASEntryStatus) SubResourceName

func (ASEntryStatus) SubResourceName() string

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

type ASIndex

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

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

func BuildASIndex

func BuildASIndex(meta metav1.ObjectMeta, spec *ASIndexSpec, status *ASIndexStatus) *ASIndex

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

func (*ASIndex) DeepCopy

func (in *ASIndex) DeepCopy() *ASIndex

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

func (*ASIndex) DeepCopyInto

func (in *ASIndex) DeepCopyInto(out *ASIndex)

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

func (*ASIndex) DeepCopyObject

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

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

func (*ASIndex) FieldLabelConversion

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

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

func (*ASIndex) FieldSelector

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

func (ASIndex) GetCategories

func (ASIndex) GetCategories() []string

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

func (*ASIndex) GetClaim added in v0.0.13

func (r *ASIndex) GetClaim(claim ASIndexClaim) backend.ClaimObject

func (*ASIndex) GetClaims added in v0.0.10

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

func (*ASIndex) GetCondition

func (r *ASIndex) GetCondition(t condition.ConditionType) condition.Condition

GetCondition returns the condition based on the condition kind

func (ASIndex) GetGroupVersionResource

func (ASIndex) GetGroupVersionResource() schema.GroupVersionResource

func (*ASIndex) GetKey

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

func (*ASIndex) GetMax

func (r *ASIndex) GetMax() uint64

func (*ASIndex) GetMaxClaim

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

func (*ASIndex) GetMaxClaimNSN

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

func (*ASIndex) GetMaxID

func (r *ASIndex) GetMaxID() *uint64

func (*ASIndex) GetMinClaim

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

func (*ASIndex) GetMinClaimNSN

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

func (*ASIndex) GetMinID

func (r *ASIndex) GetMinID() *uint64

func (*ASIndex) GetNamespacedName

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

func (*ASIndex) GetObjectMeta

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

GetObjectMeta implements resource.Object GetObjectMeta implements resource.Object

func (ASIndex) GetShortNames

func (ASIndex) GetShortNames() []string

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

func (ASIndex) GetSingularName

func (ASIndex) GetSingularName() string

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

func (*ASIndex) GetStatus

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

GetStatus return the resource.StatusSubResource interface

func (*ASIndex) GetTree

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

func (*ASIndex) GetType

func (r *ASIndex) GetType() string

func (*ASIndex) IsEqual

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

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

func (ASIndex) IsStorageVersion() bool

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

func (ASIndex) NamespaceScoped

func (ASIndex) NamespaceScoped() bool

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

func (ASIndex) New

func (ASIndex) New() runtime.Object

New return an empty resource New implements resource.Object

func (ASIndex) NewList

func (ASIndex) NewList() runtime.Object

NewList return an empty resourceList NewList implements resource.Object

func (*ASIndex) PrepareForCreate

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

func (*ASIndex) PrepareForStatusUpdate

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

PrepareForStatusUpdate prepares the status update

func (*ASIndex) PrepareForUpdate

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

func (*ASIndex) SetConditions

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

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

TableConvertor return the table format of the resource

func (*ASIndex) ValidateCreate

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

ValidateCreate statically validates

func (*ASIndex) ValidateStatusUpdate

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

ValidateStatusUpdate validates status updates

func (*ASIndex) ValidateSyntax

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

func (*ASIndex) ValidateUpdate

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

type ASIndexClaim added in v0.0.13

type ASIndexClaim struct {
	// Name of the Claim
	Name string `json:"name" protobuf:"bytes,1,opt,name=name"`
	// ASID defines the AS for the AS claim
	ID *uint32 `json:"id,omitempty" protobuf:"bytes,2,opt,name=id"`
	// Range defines the range of the resource
	// The following notation is used: start-end <start-ID>-<end-ID>
	// the IDs in the range must be consecutive
	Range *string `json:"range,omitempty" protobuf:"bytes,3,opt,name=range"`
	// UserDefinedLabels define metadata to the resource.
	// defined in the spec to distingiush metadata labels from user defined labels
	common.UserDefinedLabels `json:",inline" protobuf:"bytes,4,opt,name=userDefinedLabels"`
}

type ASIndexFilter

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

func (in *ASIndexFilter) DeepCopy() *ASIndexFilter

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

func (*ASIndexFilter) DeepCopyInto

func (in *ASIndexFilter) DeepCopyInto(out *ASIndexFilter)

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

func (*ASIndexFilter) Filter

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

type ASIndexList

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

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

func (*ASIndexList) DeepCopy

func (in *ASIndexList) DeepCopy() *ASIndexList

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

func (*ASIndexList) DeepCopyInto

func (in *ASIndexList) DeepCopyInto(out *ASIndexList)

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

func (*ASIndexList) DeepCopyObject

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

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

func (*ASIndexList) GetListMeta

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

GetListMeta returns the ListMeta GetListMeta implements the resource.ObjectList

type ASIndexSpec

type ASIndexSpec struct {
	// MinID defines the min ID the index supports
	// +optional
	MinID *uint32 `json:"minID,omitempty" protobuf:"bytes,1,opt,name=minID"`
	// MaxID defines the max ID the index supports
	// +optional
	MaxID *uint32 `json:"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" protobuf:"bytes,3,opt,name=userDefinedLabels"`
	// Claims define the embedded claims in the Index
	Claims []ASIndexClaim `json:"claims,omitempty" protobuf:"bytes,4,rep,name=claims"`
}

ASIndexSpec defines the desired state of ASIndex

func (*ASIndexSpec) DeepCopy

func (in *ASIndexSpec) DeepCopy() *ASIndexSpec

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

func (*ASIndexSpec) DeepCopyInto

func (in *ASIndexSpec) DeepCopyInto(out *ASIndexSpec)

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

type ASIndexStatus

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

ASIndexStatus defines the observed state of ASIndex

func (ASIndexStatus) CopyTo

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

func (*ASIndexStatus) DeepCopy

func (in *ASIndexStatus) DeepCopy() *ASIndexStatus

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

func (*ASIndexStatus) DeepCopyInto

func (in *ASIndexStatus) DeepCopyInto(out *ASIndexStatus)

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

func (ASIndexStatus) SubResourceName

func (ASIndexStatus) SubResourceName() string

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

type ASRangeSyntaxValidator

type ASRangeSyntaxValidator struct {
	Name string
}

+k8s:deepcopy-gen:false

func (*ASRangeSyntaxValidator) DeepCopy

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

func (*ASRangeSyntaxValidator) DeepCopyInto

func (in *ASRangeSyntaxValidator) DeepCopyInto(out *ASRangeSyntaxValidator)

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

func (*ASRangeSyntaxValidator) Validate

func (r *ASRangeSyntaxValidator) Validate(claim *ASClaim) field.ErrorList

type ASStaticIDSyntaxValidator

type ASStaticIDSyntaxValidator struct {
	Name string
}

func (*ASStaticIDSyntaxValidator) DeepCopy

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

func (*ASStaticIDSyntaxValidator) DeepCopyInto

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

func (*ASStaticIDSyntaxValidator) Validate

func (r *ASStaticIDSyntaxValidator) Validate(claim *ASClaim) field.ErrorList

type SyntaxValidator

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

+kubebuilder:object:generate=false +k8s:deepcopy-gen:false

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