Documentation ¶
Overview ¶
Package as is the internal version of the API.
Index ¶
- Constants
- Variables
- func ASClaimFromRuntime(ru runtime.Object) (backend.ClaimObject, error)
- func ASClaimFromUnstructured(ru runtime.Unstructured) (backend.ClaimObject, error)
- func ASEntryFromRuntime(ru runtime.Object) (backend.EntryObject, error)
- func ASEntryFromUnstructured(ru runtime.Unstructured) (backend.EntryObject, error)
- func ASIndexFromRuntime(ru runtime.Object) (backend.IndexObject, error)
- func BuildASClaim(meta metav1.ObjectMeta, spec *ASClaimSpec, status *ASClaimStatus) backend.ClaimObject
- func BuildASEntry(meta metav1.ObjectMeta, spec *ASEntrySpec, status *ASEntryStatus) backend.EntryObject
- func GetASEntry(k store.Key, vrange, id string, labels map[string]string) backend.EntryObject
- func GetMaxClaimRange(id uint32) string
- func GetMinClaimRange(id uint32) string
- 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
- type ASClaim
- func (in *ASClaim) DeepCopy() *ASClaim
- func (in *ASClaim) DeepCopyInto(out *ASClaim)
- func (in *ASClaim) DeepCopyObject() runtime.Object
- func (r *ASClaim) FieldLabelConversion() runtime.FieldLabelConversionFunc
- func (r *ASClaim) FieldSelector() ...
- func (ASClaim) GetCategories() []string
- func (r *ASClaim) GetChoreoAPIVersion() string
- func (r *ASClaim) GetClaimID(t string, id uint64) tree.ID
- func (r *ASClaim) GetClaimLabels() labels.Set
- func (r *ASClaim) GetClaimRequest() string
- func (r *ASClaim) GetClaimResponse() string
- func (r *ASClaim) GetClaimSet(typ string) (map[string]tree.ID, sets.Set[string], error)
- func (r *ASClaim) GetClaimType() backend.ClaimType
- func (r *ASClaim) GetCondition(t condition.ConditionType) condition.Condition
- func (ASClaim) GetGroupVersionResource() schema.GroupVersionResource
- func (r *ASClaim) GetIndex() string
- func (r *ASClaim) GetKey() store.Key
- func (r *ASClaim) GetLabelSelector() (labels.Selector, error)
- func (r *ASClaim) GetNamespacedName() types.NamespacedName
- func (r *ASClaim) GetObjectMeta() *metav1.ObjectMeta
- func (r *ASClaim) GetOwnerSelector() (labels.Selector, error)
- func (r *ASClaim) GetRange() *string
- func (r *ASClaim) GetRangeID(_ string) (tree.Range, error)
- func (r *ASClaim) GetSelector() *metav1.LabelSelector
- func (ASClaim) GetShortNames() []string
- func (ASClaim) GetSingularName() string
- func (r *ASClaim) GetStaticID() *uint64
- func (r *ASClaim) GetStaticTreeID(t string) tree.ID
- func (r *ASClaim) GetStatus() resource.StatusSubResource
- func (r *ASClaim) GetStatusClaimID(_ string) tree.ID
- func (r *ASClaim) GetStatusID() *uint64
- func (r *ASClaim) GetTable(_ string, to, from uint64) table.Table
- func (r *ASClaim) IsEqual(ctx context.Context, obj, old runtime.Object) bool
- func (r *ASClaim) IsOwner(labels labels.Set) bool
- func (r *ASClaim) IsStatusEqual(ctx context.Context, obj, old runtime.Object) bool
- func (ASClaim) IsStorageVersion() bool
- func (ASClaim) NamespaceScoped() bool
- func (ASClaim) New() runtime.Object
- func (ASClaim) NewList() runtime.Object
- func (r *ASClaim) PrepareForCreate(ctx context.Context, obj runtime.Object)
- func (r *ASClaim) PrepareForStatusUpdate(ctx context.Context, obj, old runtime.Object)
- func (r *ASClaim) PrepareForUpdate(ctx context.Context, obj, old runtime.Object)
- func (r *ASClaim) SetConditions(c ...condition.Condition)
- func (r *ASClaim) SetStatusID(s *uint64)
- func (r *ASClaim) SetStatusRange(s *string)
- func (r *ASClaim) TableConvertor() func(gr schema.GroupResource) rest.TableConvertor
- func (r *ASClaim) ValidateASClaimType() error
- func (r *ASClaim) ValidateASID() error
- func (r *ASClaim) ValidateASRange() error
- func (r *ASClaim) ValidateCreate(ctx context.Context, obj runtime.Object) field.ErrorList
- func (r *ASClaim) ValidateOwner(labels labels.Set) error
- func (r *ASClaim) ValidateStatusUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList
- func (r *ASClaim) ValidateSyntax(s string) field.ErrorList
- func (r *ASClaim) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList
- type ASClaimFilter
- type ASClaimList
- type ASClaimSpec
- type ASClaimStatus
- type ASDynamicIDSyntaxValidator
- type ASEntry
- func (in *ASEntry) DeepCopy() *ASEntry
- func (in *ASEntry) DeepCopyInto(out *ASEntry)
- func (in *ASEntry) DeepCopyObject() runtime.Object
- func (r *ASEntry) FieldLabelConversion() runtime.FieldLabelConversionFunc
- func (r *ASEntry) FieldSelector() ...
- func (ASEntry) GetCategories() []string
- func (r *ASEntry) GetChoreoAPIVersion() string
- func (r *ASEntry) GetClaimType() backend.ClaimType
- func (r *ASEntry) GetCondition(t condition.ConditionType) condition.Condition
- func (ASEntry) GetGroupVersionResource() schema.GroupVersionResource
- func (r *ASEntry) GetIndex() string
- func (r *ASEntry) GetKey() store.Key
- func (r *ASEntry) GetNamespacedName() types.NamespacedName
- func (r *ASEntry) GetObjectMeta() *metav1.ObjectMeta
- func (ASEntry) GetShortNames() []string
- func (ASEntry) GetSingularName() string
- func (r *ASEntry) GetSpecID() string
- func (r *ASEntry) GetStatus() resource.StatusSubResource
- func (r *ASEntry) IsEqual(ctx context.Context, obj, old runtime.Object) bool
- func (r *ASEntry) IsIndexEntry() bool
- func (r *ASEntry) IsStatusEqual(ctx context.Context, obj, old runtime.Object) bool
- func (ASEntry) IsStorageVersion() bool
- func (ASEntry) NamespaceScoped() bool
- func (ASEntry) New() runtime.Object
- func (ASEntry) NewList() runtime.Object
- func (r *ASEntry) PrepareForCreate(ctx context.Context, obj runtime.Object)
- func (r *ASEntry) PrepareForStatusUpdate(ctx context.Context, obj, old runtime.Object)
- func (r *ASEntry) PrepareForUpdate(ctx context.Context, obj, old runtime.Object)
- func (r *ASEntry) SetConditions(c ...condition.Condition)
- func (r *ASEntry) TableConvertor() func(gr schema.GroupResource) rest.TableConvertor
- func (r *ASEntry) ValidateCreate(ctx context.Context, obj runtime.Object) field.ErrorList
- func (r *ASEntry) ValidateStatusUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList
- func (r *ASEntry) ValidateSyntax(s string) field.ErrorList
- func (r *ASEntry) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList
- type ASEntryFilter
- type ASEntryList
- type ASEntrySpec
- type ASEntryStatus
- type ASIndex
- func (in *ASIndex) DeepCopy() *ASIndex
- func (in *ASIndex) DeepCopyInto(out *ASIndex)
- func (in *ASIndex) DeepCopyObject() runtime.Object
- func (r *ASIndex) FieldLabelConversion() runtime.FieldLabelConversionFunc
- func (r *ASIndex) FieldSelector() ...
- func (ASIndex) GetCategories() []string
- func (r *ASIndex) GetClaim(claim ASIndexClaim) backend.ClaimObject
- func (r *ASIndex) GetClaims() []backend.ClaimObject
- func (r *ASIndex) GetCondition(t condition.ConditionType) condition.Condition
- func (ASIndex) GetGroupVersionResource() schema.GroupVersionResource
- func (r *ASIndex) GetKey() store.Key
- func (r *ASIndex) GetMax() uint64
- func (r *ASIndex) GetMaxClaim() backend.ClaimObject
- func (r *ASIndex) GetMaxClaimNSN() types.NamespacedName
- func (r *ASIndex) GetMaxID() *uint64
- func (r *ASIndex) GetMinClaim() backend.ClaimObject
- func (r *ASIndex) GetMinClaimNSN() types.NamespacedName
- func (r *ASIndex) GetMinID() *uint64
- func (r *ASIndex) GetNamespacedName() types.NamespacedName
- func (r *ASIndex) GetObjectMeta() *metav1.ObjectMeta
- func (ASIndex) GetShortNames() []string
- func (ASIndex) GetSingularName() string
- func (r *ASIndex) GetStatus() resource.StatusSubResource
- func (r *ASIndex) GetTree() gtree.GTree
- func (r *ASIndex) GetType() string
- func (r *ASIndex) IsEqual(ctx context.Context, obj, old runtime.Object) bool
- func (r *ASIndex) IsStatusEqual(ctx context.Context, obj, old runtime.Object) bool
- func (ASIndex) IsStorageVersion() bool
- func (ASIndex) NamespaceScoped() bool
- func (ASIndex) New() runtime.Object
- func (ASIndex) NewList() runtime.Object
- func (r *ASIndex) PrepareForCreate(ctx context.Context, obj runtime.Object)
- func (r *ASIndex) PrepareForStatusUpdate(ctx context.Context, obj, old runtime.Object)
- func (r *ASIndex) PrepareForUpdate(ctx context.Context, obj, old runtime.Object)
- func (r *ASIndex) SetConditions(c ...condition.Condition)
- func (r *ASIndex) TableConvertor() func(gr schema.GroupResource) rest.TableConvertor
- func (r *ASIndex) ValidateCreate(ctx context.Context, obj runtime.Object) field.ErrorList
- func (r *ASIndex) ValidateStatusUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList
- func (r *ASIndex) ValidateSyntax(s string) field.ErrorList
- func (r *ASIndex) ValidateUpdate(ctx context.Context, obj, old runtime.Object) field.ErrorList
- type ASIndexClaim
- type ASIndexFilter
- type ASIndexList
- type ASIndexSpec
- type ASIndexStatus
- type ASRangeSyntaxValidator
- type ASStaticIDSyntaxValidator
- type SyntaxValidator
Constants ¶
const ( ASClaimPlural = "asclaims" ASClaimSingular = "asclaim" )
const ( ASEntryPlural = "asentries" ASEntrySingular = "asentry" )
const ( ASIndexPlural = "asindices" ASIndexSingular = "asindex" )
const ( GroupName = "as.be.kuid.dev" Version = runtime.APIVersionInternal )
const ASID_Max = 4294967295
const ASID_Min = 0
Variables ¶
var ( ASClaimShortNames = []string{} ASClaimCategories = []string{"kuid", "knet"} )
var ( ASClaimKind = reflect.TypeOf(ASClaim{}).Name() ASClaimListKind = reflect.TypeOf(ASClaimList{}).Name() )
var ( ASEntryShortNames = []string{} ASEntryCategories = []string{"kuid", "knet"} )
var ( ASEntryKind = reflect.TypeOf(ASEntry{}).Name() ASEntryListKind = reflect.TypeOf(ASEntryList{}).Name() )
var ( ASIndexShortNames = []string{} ASIndexCategories = []string{"kuid", "knet"} )
var ( ASIndexKind = reflect.TypeOf(ASIndex{}).Name() ASIndexListKind = reflect.TypeOf(ASIndexList{}).Name() )
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
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 GetMaxClaimRange ¶
func GetMinClaimRange ¶
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ASClaim.
func (*ASClaim) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ASClaim) DeepCopyObject ¶
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 (ASClaim) GetCategories ¶
GetCategories return the categories of the resource GetCategories implements resource.Object
func (*ASClaim) GetChoreoAPIVersion ¶
func (*ASClaim) GetClaimLabels ¶
func (*ASClaim) GetClaimRequest ¶
func (*ASClaim) GetClaimResponse ¶
func (*ASClaim) GetClaimSet ¶
func (*ASClaim) GetClaimType ¶
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) 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 ¶
GetOwnerSelector selects the route based on the name of the claim
func (*ASClaim) GetSelector ¶
func (r *ASClaim) GetSelector() *metav1.LabelSelector
func (ASClaim) GetShortNames ¶
GetShortNames returns the shortnames for the resource GetShortNames implements resource.Object
func (ASClaim) GetSingularName ¶
GetSingularName returns the singular name of the resource GetSingularName implements resource.Object
func (*ASClaim) GetStaticID ¶
func (*ASClaim) GetStatus ¶
func (r *ASClaim) GetStatus() resource.StatusSubResource
GetStatus return the resource.StatusSubResource interface
func (*ASClaim) GetStatusClaimID ¶ added in v0.0.10
func (*ASClaim) GetStatusID ¶
func (*ASClaim) IsEqual ¶
IsEqual returns a bool indicating if the desired state of both resources is equal or not
func (*ASClaim) IsStatusEqual ¶
IsStatusEqual returns a bool indicating if the status of both resources is equal or not
func (ASClaim) IsStorageVersion ¶
IsStorageVersion returns true -- Config is used as the internal version. IsStorageVersion implements resource.Object
func (ASClaim) NamespaceScoped ¶
NamespaceScoped returns true to indicate Fortune is a namespaced resource. NamespaceScoped implements resource.Object
func (*ASClaim) PrepareForCreate ¶
func (*ASClaim) PrepareForStatusUpdate ¶
PrepareForStatusUpdate prepares the status update
func (*ASClaim) PrepareForUpdate ¶
func (*ASClaim) SetConditions ¶
SetConditions sets the conditions on the resource. it allows for 0, 1 or more conditions to be set at once
func (*ASClaim) SetStatusID ¶
func (*ASClaim) SetStatusRange ¶
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 (*ASClaim) ValidateASID ¶
func (*ASClaim) ValidateASRange ¶
func (*ASClaim) ValidateCreate ¶
ValidateCreate statically validates
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.
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 ¶
func (r ASClaimStatus) CopyTo(obj resource.ObjectWithStatusSubResource)
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 ¶
func (in *ASDynamicIDSyntaxValidator) DeepCopy() *ASDynamicIDSyntaxValidator
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ASDynamicIDSyntaxValidator.
func (*ASDynamicIDSyntaxValidator) DeepCopyInto ¶
func (in *ASDynamicIDSyntaxValidator) DeepCopyInto(out *ASDynamicIDSyntaxValidator)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ASEntry.
func (*ASEntry) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ASEntry) DeepCopyObject ¶
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 (ASEntry) GetCategories ¶
GetCategories return the categories of the resource GetCategories implements resource.Object
func (*ASEntry) GetChoreoAPIVersion ¶
func (*ASEntry) GetClaimType ¶
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) 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 ¶
GetShortNames returns the shortnames for the resource GetShortNames implements resource.Object
func (ASEntry) GetSingularName ¶
GetSingularName returns the singular name of the resource GetSingularName implements resource.Object
func (*ASEntry) GetStatus ¶
func (r *ASEntry) GetStatus() resource.StatusSubResource
GetStatus return the resource.StatusSubResource interface
func (*ASEntry) IsEqual ¶
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 (*ASEntry) IsStatusEqual ¶
IsStatusEqual returns a bool indicating if the status of both resources is equal or not
func (ASEntry) IsStorageVersion ¶
IsStorageVersion returns true -- Config is used as the internal version. IsStorageVersion implements resource.Object
func (ASEntry) NamespaceScoped ¶
NamespaceScoped returns true to indicate Fortune is a namespaced resource. NamespaceScoped implements resource.Object
func (*ASEntry) PrepareForCreate ¶
func (*ASEntry) PrepareForStatusUpdate ¶
PrepareForStatusUpdate prepares the status update
func (*ASEntry) PrepareForUpdate ¶
func (*ASEntry) SetConditions ¶
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 ¶
ValidateCreate statically validates
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.
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 ¶
func (r ASEntryStatus) CopyTo(obj resource.ObjectWithStatusSubResource)
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 ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ASIndex.
func (*ASIndex) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ASIndex) DeepCopyObject ¶
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 (ASIndex) GetCategories ¶
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) GetMaxClaim ¶
func (r *ASIndex) GetMaxClaim() backend.ClaimObject
func (*ASIndex) GetMaxClaimNSN ¶
func (r *ASIndex) GetMaxClaimNSN() types.NamespacedName
func (*ASIndex) GetMinClaim ¶
func (r *ASIndex) GetMinClaim() backend.ClaimObject
func (*ASIndex) GetMinClaimNSN ¶
func (r *ASIndex) GetMinClaimNSN() types.NamespacedName
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 ¶
GetShortNames returns the shortnames for the resource GetShortNames implements resource.Object
func (ASIndex) GetSingularName ¶
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) IsEqual ¶
IsEqual returns a bool indicating if the desired state of both resources is equal or not
func (*ASIndex) IsStatusEqual ¶
IsStatusEqual returns a bool indicating if the status of both resources is equal or not
func (ASIndex) IsStorageVersion ¶
IsStorageVersion returns true -- Config is used as the internal version. IsStorageVersion implements resource.Object
func (ASIndex) NamespaceScoped ¶
NamespaceScoped returns true to indicate Fortune is a namespaced resource. NamespaceScoped implements resource.Object
func (*ASIndex) PrepareForCreate ¶
func (*ASIndex) PrepareForStatusUpdate ¶
PrepareForStatusUpdate prepares the status update
func (*ASIndex) PrepareForUpdate ¶
func (*ASIndex) SetConditions ¶
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 ¶
ValidateCreate statically validates
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.
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 ¶
func (r ASIndexStatus) CopyTo(obj resource.ObjectWithStatusSubResource)
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 ¶
func (in *ASRangeSyntaxValidator) DeepCopy() *ASRangeSyntaxValidator
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.
type ASStaticIDSyntaxValidator ¶
type ASStaticIDSyntaxValidator struct {
Name string
}
func (*ASStaticIDSyntaxValidator) DeepCopy ¶
func (in *ASStaticIDSyntaxValidator) DeepCopy() *ASStaticIDSyntaxValidator
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ASStaticIDSyntaxValidator.
func (*ASStaticIDSyntaxValidator) DeepCopyInto ¶
func (in *ASStaticIDSyntaxValidator) DeepCopyInto(out *ASStaticIDSyntaxValidator)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SyntaxValidator ¶
+kubebuilder:object:generate=false +k8s:deepcopy-gen:false