v1alpha1

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the allocation v1alpha1 API group. +kubebuilder:object:generate=true +groupName=allocation.cybericebox.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// SchemeVersion is group version used to register these objects.
	SchemeGroupVersion = schema.GroupVersion{Group: "allocation.cybericebox.com", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme.
	SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group-qualified GroupResource

Types

type Pool

type Pool struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   PoolSpec   `json:"spec,omitempty"`
	Status PoolStatus `json:"status,omitempty"`
}

Pool is the Schema for the pools API.

func (*Pool) DeepCopy

func (in *Pool) DeepCopy() *Pool

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

func (*Pool) DeepCopyInto

func (in *Pool) DeepCopyInto(out *Pool)

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

func (*Pool) DeepCopyObject

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

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

type PoolLease added in v1.1.0

type PoolLease struct {
	OwnerUID   string `json:"ownerUID"`
	Generation int64  `json:"generation"`
}

func (*PoolLease) DeepCopy added in v1.1.0

func (in *PoolLease) DeepCopy() *PoolLease

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

func (*PoolLease) DeepCopyInto added in v1.1.0

func (in *PoolLease) DeepCopyInto(out *PoolLease)

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

type PoolList

type PoolList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Pool `json:"items"`
}

PoolList contains a list of Pool.

func (*PoolList) DeepCopy

func (in *PoolList) DeepCopy() *PoolList

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

func (*PoolList) DeepCopyInto

func (in *PoolList) DeepCopyInto(out *PoolList)

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

func (*PoolList) DeepCopyObject

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

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

type PoolSpec

type PoolSpec struct {
	// Size is the total number of slots in this pool.
	// +kubebuilder:validation:Minimum=1
	Size uint `json:"size"`
	// Offset shifts allocated indices: real value = Offset + bit_index.
	// +kubebuilder:default=0
	Offset uint `json:"offset,omitempty"`
}

PoolSpec defines the immutable configuration of a Pool.

func (*PoolSpec) DeepCopy

func (in *PoolSpec) DeepCopy() *PoolSpec

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

func (*PoolSpec) DeepCopyInto

func (in *PoolSpec) DeepCopyInto(out *PoolSpec)

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

type PoolStatus

type PoolStatus struct {
	// Lease owners and bitmap change in the same resourceVersion CAS.
	Leases              map[string]PoolLease `json:"leases,omitempty"`
	NextLeaseGeneration int64                `json:"nextLeaseGeneration,omitempty"`
	// Free is the count of unallocated slots; mirrored to label pool.cybericebox.com/free.
	Free uint `json:"free,omitempty"`
	// BitMap is a base64-encoded bitset (one bit per slot, 1 = allocated).
	BitMap string `json:"bitMap,omitempty"`
}

PoolStatus holds the mutable allocation state.

func (*PoolStatus) DeepCopy

func (in *PoolStatus) DeepCopy() *PoolStatus

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

func (*PoolStatus) DeepCopyInto

func (in *PoolStatus) DeepCopyInto(out *PoolStatus)

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

Jump to

Keyboard shortcuts

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