Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssumedGPUPod ¶
AssumedGPUPod represents an assumed GPU pod.
type Cluster ¶
type Cluster struct {
ClusterID string
ClusterName string
UpdatedAt time.Time
GPUNodes []*v1.GpuNode
ProvisionableResources []*v1.ProvisionableResource
GPUPods []*v1.GpuPod
// AssumedGPUPodsByKey is a map from key to the assumed GPU pods on the node.
// This pod is bound to the cluster by scheduler, but not yet created.
// The key is the prefix of the pod.
AssumedGPUPodsByKey map[string]*AssumedGPUPod
}
Cluster represents a cluster.
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is a cache store.
func (*Store) AddAssumedPod ¶
AddAssumedPod adds an assumed pod to the cache. If the tenant is not found in the cache, it fetches them from the store.
func (*Store) AddOrUpdateCluster ¶
AddOrUpdateCluster adds or updates a cluster. If the tenant is not found in the cache, it fetches them from the store.
Click to show internal directories.
Click to hide internal directories.