v1alpha1

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

v1alpha1 is the v1alpha1 version of the API.

Index

Constants

View Source
const (
	Group   = "genid.be.kuid.dev"
	Version = "v1alpha1"
)
View Source
const GENIDID_Min = 0

Variables

View Source
var (
	GENIDClaimKind     = reflect.TypeOf(GENIDClaim{}).Name()
	GENIDClaimListKind = reflect.TypeOf(GENIDClaimList{}).Name()
)
View Source
var (
	GENIDEntryKind     = reflect.TypeOf(GENIDEntry{}).Name()
	GENIDEntryListKind = reflect.TypeOf(GENIDEntryList{}).Name()
)
View Source
var (
	GENIDIndexKind     = reflect.TypeOf(GENIDIndex{}).Name()
	GENIDIndexListKind = reflect.TypeOf(GENIDIndexList{}).Name()
)
View Source
var (
	// SchemeGroupVersion contains the API group and version information for the types in this package.
	SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: Version}
	// AddToScheme applies all the stored functions to the scheme. A non-nil error
	// indicates that one function failed and the attempt was abandoned.
	//AddToScheme = (&runtime.SchemeBuilder{}).AddToScheme
	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var GENIDID_MaxBits = map[GENIDType]int{
	GENIDType_Invalid: 0,
	GENIDType_16bit:   16,
	GENIDType_32bit:   32,
	GENIDType_48bit:   48,
	GENIDType_64bit:   64,
}
View Source
var GENIDID_MaxValue = map[GENIDType]uint64{
	GENIDType_Invalid: 0,
	GENIDType_16bit:   1<<GENIDID_MaxBits[GENIDType_16bit] - 1,
	GENIDType_32bit:   1<<GENIDID_MaxBits[GENIDType_32bit] - 1,
	GENIDType_48bit:   1<<GENIDID_MaxBits[GENIDType_48bit] - 1,
	GENIDType_64bit:   1<<GENIDID_MaxBits[GENIDType_64bit] - 1,
}

Functions

func GENIDClaimFromUnstructured

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

func GENIDEntryFromUnstructured

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

func GENIDIndexFromUnstructured

func GENIDIndexFromUnstructured(ru runtime.Unstructured) (backend.IndexObject, error)

func GetGENIDEntry

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

func GetMaxClaimRange

func GetMaxClaimRange(genidType GENIDType, id uint64) string

func GetMinClaimRange

func GetMinClaimRange(id uint64) string

func NewBackend

func NewBackend() backend.Backend

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type GENIDClaim

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

	Spec   GENIDClaimSpec   `json:"spec,omitempty" yaml:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
	Status GENIDClaimStatus `json:"status,omitempty" yaml:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}

GENIDClaim is the Schema for the GENIDClaim API

func BuildGENIDClaim

func BuildGENIDClaim(meta metav1.ObjectMeta, spec *GENIDClaimSpec, status *GENIDClaimStatus) *GENIDClaim

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

func (*GENIDClaim) DeepCopy

func (in *GENIDClaim) DeepCopy() *GENIDClaim

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

func (*GENIDClaim) DeepCopyInto

func (in *GENIDClaim) DeepCopyInto(out *GENIDClaim)

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

func (*GENIDClaim) DeepCopyObject

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

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

func (*GENIDClaim) GetClaimID

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

func (*GENIDClaim) GetClaimLabels

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

func (*GENIDClaim) GetClaimRequest

func (r *GENIDClaim) GetClaimRequest() string

func (*GENIDClaim) GetClaimResponse

func (r *GENIDClaim) GetClaimResponse() string

func (*GENIDClaim) GetClaimType

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

func (*GENIDClaim) GetCondition

GetCondition returns the condition based on the condition kind

func (*GENIDClaim) GetIndex

func (r *GENIDClaim) GetIndex() string

func (*GENIDClaim) GetKey

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

func (*GENIDClaim) GetLabelSelector

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

func (*GENIDClaim) GetNamespacedName

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

func (*GENIDClaim) GetOwnerSelector

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

GetOwnerSelector selects the route based on the name of the claim

func (*GENIDClaim) GetRange

func (r *GENIDClaim) GetRange() *string

func (*GENIDClaim) GetRangeID

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

func (*GENIDClaim) GetSelector

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

func (*GENIDClaim) GetStaticID

func (r *GENIDClaim) GetStaticID() *uint64

func (*GENIDClaim) GetStaticTreeID

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

func (*GENIDClaim) GetStatus

func (r *GENIDClaim) GetStatus() (map[string]any, error)

func (*GENIDClaim) GetStatusID

func (r *GENIDClaim) GetStatusID() *uint64

func (*GENIDClaim) GetTable

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

func (*GENIDClaim) SetConditions

func (r *GENIDClaim) SetConditions(c ...condv1alpha1.Condition)

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

func (*GENIDClaim) SetStatusID

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

func (*GENIDClaim) SetStatusRange

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

func (*GENIDClaim) ValidateGENIDClaimType

func (r *GENIDClaim) ValidateGENIDClaimType() error

func (*GENIDClaim) ValidateGENIDID

func (r *GENIDClaim) ValidateGENIDID(genidType GENIDType) error

func (*GENIDClaim) ValidateGENIDRange

func (r *GENIDClaim) ValidateGENIDRange(genidType GENIDType) error

func (*GENIDClaim) ValidateOwner

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

func (*GENIDClaim) ValidateSyntax

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

type GENIDClaimList

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

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

func (*GENIDClaimList) DeepCopy

func (in *GENIDClaimList) DeepCopy() *GENIDClaimList

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

func (*GENIDClaimList) DeepCopyInto

func (in *GENIDClaimList) DeepCopyInto(out *GENIDClaimList)

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

func (*GENIDClaimList) DeepCopyObject

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

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

type GENIDClaimSpec

type GENIDClaimSpec 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 *uint64 `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
	commonv1alpha1.ClaimLabels `json:",inline" yaml:",inline" protobuf:"bytes,4,opt,name=claimLabels"`
}

GENIDClaimSpec defines the desired state of GENIDClaim

func (*GENIDClaimSpec) DeepCopy

func (in *GENIDClaimSpec) DeepCopy() *GENIDClaimSpec

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

func (*GENIDClaimSpec) DeepCopyInto

func (in *GENIDClaimSpec) DeepCopyInto(out *GENIDClaimSpec)

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

type GENIDClaimStatus

type GENIDClaimStatus struct {
	// ConditionedStatus provides the status of the VLANClain using conditions
	// - a ready condition indicates the overall status of the resource
	condv1alpha1.ConditionedStatus `json:",inline" yaml:",inline" protobuf:"bytes,1,opt,name=conditionedStatus"`
	// ID defines the ID assigned to the resource
	// +optional
	ID *uint64 `json:"id,omitempty" yaml:"id,omitempty" protobuf:"bytes,2,opt,name=id"`
	// Range defines the range assigned to the resource
	// +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"`
}

GENIDClaimStatus defines the observed state of GENIDClaim

func (*GENIDClaimStatus) DeepCopy

func (in *GENIDClaimStatus) DeepCopy() *GENIDClaimStatus

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

func (*GENIDClaimStatus) DeepCopyInto

func (in *GENIDClaimStatus) DeepCopyInto(out *GENIDClaimStatus)

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

type GENIDDynamicIDSyntaxValidator

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

func (*GENIDDynamicIDSyntaxValidator) DeepCopy

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

func (*GENIDDynamicIDSyntaxValidator) DeepCopyInto

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

func (*GENIDDynamicIDSyntaxValidator) Validate

func (r *GENIDDynamicIDSyntaxValidator) Validate(claim *GENIDClaim, genidType GENIDType) field.ErrorList

type GENIDEntry

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

	Spec   GENIDEntrySpec   `json:"spec,omitempty" yaml:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
	Status GENIDEntryStatus `json:"status,omitempty" yaml:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}

GENIDEntry is the Schema for the GENIDEntry API

func BuildGENIDEntry

func BuildGENIDEntry(meta metav1.ObjectMeta, spec *GENIDEntrySpec, status *GENIDEntryStatus) *GENIDEntry

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

func (*GENIDEntry) DeepCopy

func (in *GENIDEntry) DeepCopy() *GENIDEntry

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

func (*GENIDEntry) DeepCopyInto

func (in *GENIDEntry) DeepCopyInto(out *GENIDEntry)

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

func (*GENIDEntry) DeepCopyObject

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

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

func (*GENIDEntry) GetClaimType

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

func (*GENIDEntry) GetCondition

GetCondition returns the condition based on the condition kind

func (*GENIDEntry) GetIndex

func (r *GENIDEntry) GetIndex() string

func (*GENIDEntry) GetKey

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

func (*GENIDEntry) GetNamespacedName

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

func (*GENIDEntry) GetSpecID

func (r *GENIDEntry) GetSpecID() string

func (*GENIDEntry) SetConditions

func (r *GENIDEntry) SetConditions(c ...condv1alpha1.Condition)

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

func (*GENIDEntry) ValidateSyntax

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

type GENIDEntryList

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

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

func (*GENIDEntryList) DeepCopy

func (in *GENIDEntryList) DeepCopy() *GENIDEntryList

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

func (*GENIDEntryList) DeepCopyInto

func (in *GENIDEntryList) DeepCopyInto(out *GENIDEntryList)

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

func (*GENIDEntryList) DeepCopyObject

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

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

type GENIDEntrySpec

type GENIDEntrySpec struct {
	// Index defines the index for the resource
	Index string `json:"index" yaml:"index" protobuf:"bytes,1,opt,name=index"`
	// ClaimType defines the claimType of the resource
	ClaimType backend.ClaimType `json:"claimType,omitempty" yaml:"claimType,omitempty" protobuf:"bytes,2,opt,name=claimType"`
	// ID defines the id of the resource in the tree
	ID string `json:"id,omitempty" yaml:"id,omitempty" protobuf:"bytes,3,opt,name=id"`
	// ClaimLabels define the user defined labels and selector labels used
	// in resource claim
	commonv1alpha1.ClaimLabels `json:",inline" yaml:",inline" protobuf:"bytes,5,opt,name=claimLabels"`
}

GENIDEntrySpec defines the desired state of GENIDEntry

func (*GENIDEntrySpec) DeepCopy

func (in *GENIDEntrySpec) DeepCopy() *GENIDEntrySpec

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

func (*GENIDEntrySpec) DeepCopyInto

func (in *GENIDEntrySpec) DeepCopyInto(out *GENIDEntrySpec)

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

type GENIDEntryStatus

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

GENIDEntryStatus defines the observed state of GENIDEntry

func (*GENIDEntryStatus) DeepCopy

func (in *GENIDEntryStatus) DeepCopy() *GENIDEntryStatus

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

func (*GENIDEntryStatus) DeepCopyInto

func (in *GENIDEntryStatus) DeepCopyInto(out *GENIDEntryStatus)

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

type GENIDIndex

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

	Spec   GENIDIndexSpec   `json:"spec,omitempty" yaml:"spec,omitempty" protobuf:"bytes,2,opt,name=spec"`
	Status GENIDIndexStatus `json:"status,omitempty" yaml:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
}

GENIDIndex is the Schema for the GENIDIndex API

func BuildGENIDIndex

func BuildGENIDIndex(meta metav1.ObjectMeta, spec *GENIDIndexSpec, status *GENIDIndexStatus) *GENIDIndex

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

func (*GENIDIndex) DeepCopy

func (in *GENIDIndex) DeepCopy() *GENIDIndex

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

func (*GENIDIndex) DeepCopyInto

func (in *GENIDIndex) DeepCopyInto(out *GENIDIndex)

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

func (*GENIDIndex) DeepCopyObject

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

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

func (*GENIDIndex) GetCondition

GetCondition returns the condition based on the condition kind

func (*GENIDIndex) GetKey

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

func (*GENIDIndex) GetMax

func (r *GENIDIndex) GetMax() uint64

func (*GENIDIndex) GetMaxClaim

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

func (*GENIDIndex) GetMaxClaimNSN

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

func (*GENIDIndex) GetMaxID

func (r *GENIDIndex) GetMaxID() *uint64

func (*GENIDIndex) GetMinClaim

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

func (*GENIDIndex) GetMinClaimNSN

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

func (*GENIDIndex) GetMinID

func (r *GENIDIndex) GetMinID() *uint64

func (*GENIDIndex) GetNamespacedName

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

func (*GENIDIndex) GetStatus

func (r *GENIDIndex) GetStatus() (map[string]any, error)

func (*GENIDIndex) GetTree

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

func (*GENIDIndex) GetType

func (r *GENIDIndex) GetType() string

func (*GENIDIndex) SetConditions

func (r *GENIDIndex) SetConditions(c ...condv1alpha1.Condition)

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

func (*GENIDIndex) ValidateSyntax

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

type GENIDIndexList

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

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

func (*GENIDIndexList) DeepCopy

func (in *GENIDIndexList) DeepCopy() *GENIDIndexList

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

func (*GENIDIndexList) DeepCopyInto

func (in *GENIDIndexList) DeepCopyInto(out *GENIDIndexList)

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

func (*GENIDIndexList) DeepCopyObject

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

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

type GENIDIndexSpec

type GENIDIndexSpec struct {
	// MinID defines the min ID the index supports
	// +optional
	MinID *uint64 `json:"minID,omitempty" yaml:"minID,omitempty" protobuf:"bytes,1,opt,name=minID"`
	// MaxID defines the max ID the index supports
	// +optional
	MaxID *uint64 `json:"maxID,omitempty" yaml:"maxID,omitempty" protobuf:"bytes,2,opt,name=maxID"`
	// UserDefinedLabels define metadata to the resource.
	// defined in the spec to distingiush metadata labels from user defined labels
	commonv1alpha1.UserDefinedLabels `json:",inline" yaml:",inline" protobuf:"bytes,3,opt,name=userDefinedLabels"`
	// Type defines the type of the GENID
	// 16bit, 32bit, 48bit, 64bit
	Type string `json:"type,omitempty" yaml:"type,omitempty" protobuf:"bytes,4,opt,name=type"`
}

GENIDIndexSpec defines the desired state of GENIDIndex

func (*GENIDIndexSpec) DeepCopy

func (in *GENIDIndexSpec) DeepCopy() *GENIDIndexSpec

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

func (*GENIDIndexSpec) DeepCopyInto

func (in *GENIDIndexSpec) DeepCopyInto(out *GENIDIndexSpec)

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

type GENIDIndexStatus

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

GENIDIndexStatus defines the observed state of GENIDIndex

func (*GENIDIndexStatus) DeepCopy

func (in *GENIDIndexStatus) DeepCopy() *GENIDIndexStatus

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

func (*GENIDIndexStatus) DeepCopyInto

func (in *GENIDIndexStatus) DeepCopyInto(out *GENIDIndexStatus)

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

type GENIDRangeSyntaxValidator

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

func (*GENIDRangeSyntaxValidator) DeepCopy

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

func (*GENIDRangeSyntaxValidator) DeepCopyInto

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

func (*GENIDRangeSyntaxValidator) Validate

func (r *GENIDRangeSyntaxValidator) Validate(claim *GENIDClaim, genidType GENIDType) field.ErrorList

type GENIDStaticIDSyntaxValidator

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

func (*GENIDStaticIDSyntaxValidator) DeepCopy

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

func (*GENIDStaticIDSyntaxValidator) DeepCopyInto

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

func (*GENIDStaticIDSyntaxValidator) Validate

func (r *GENIDStaticIDSyntaxValidator) Validate(claim *GENIDClaim, genidType GENIDType) field.ErrorList

type GENIDType

type GENIDType string
const (
	GENIDType_Invalid GENIDType = "invalid"
	GENIDType_16bit   GENIDType = "16bit"
	GENIDType_32bit   GENIDType = "32bit"
	GENIDType_48bit   GENIDType = "48bit"
	GENIDType_64bit   GENIDType = "64bit"
)

func GetGenIDType

func GetGenIDType(s string) GENIDType

type SyntaxValidator

type SyntaxValidator interface {
	Validate(claim *GENIDClaim, genidType GENIDType) field.ErrorList
}

+kubebuilder:object:generate=false

Jump to

Keyboard shortcuts

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