Documentation ¶
Index ¶
Constants ¶
View Source
const (
// Resource is the resource that will trigger the scheduler extender.
Resource = "pmem-csi.intel.com/scheduler"
)
Variables ¶
This section is empty.
Functions ¶
func NewScheduler ¶
func NewScheduler( driverName string, capacity Capacity, clientSet kubernetes.Interface, pvcLister corelisters.PersistentVolumeClaimLister, scLister storagelisters.StorageClassLister, ) (http.Handler, error)
Types ¶
type Capacity ¶
type Capacity interface { // NodeCapacity returns the available PMEM for the node. NodeCapacity(nodeName string) (int64, error) }
Capacity provides information of remaining free PMEM per node.
func CapacityViaRegistry ¶
func CapacityViaRegistry(rs *registryserver.RegistryServer) Capacity
Click to show internal directories.
Click to hide internal directories.