Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllocateResult ¶
type AllocateResult = types.NamespacedName
type Allocator ¶
type Allocator interface {
// Allocate allocates a DPUCluster for DPU
Allocate(context.Context, *provisioningv1.DPU) (AllocateResult, error)
// SaveAssignedDPU stores assigned DPU to cache
SaveAssignedDPU(*provisioningv1.DPU)
// SaveCluster updates cached DPUCluster with the given one
SaveCluster(*provisioningv1.DPUCluster)
// ReleaseDPU releases the given DPU from its allocated DPUCluster
ReleaseDPU(*provisioningv1.DPU)
// RemoveCluster removes given DPUCluster from cache
RemoveCluster(dc *provisioningv1.DPUCluster)
}
Allocator allocates DPUCluster for DPUs. This is just a temporary solution for Oct Rel, and we will implement a more complex allocator in a dedicated controller in future releases
func NewAllocator ¶
type ClusterCache ¶
type ClusterCache struct {
// contains filtered or unexported fields
}
ClusterCache caches DPUClusters and to which DPUs they are allocated.
type ClusterInfo ¶
type ClusterInfo struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.