Documentation ¶
Index ¶
Constants ¶
This section is empty.
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 CapacityViaMetrics ¶ added in v0.9.0
func CapacityViaMetrics(namespace, driverName string, podLister corelistersv1.PodLister) Capacity
Click to show internal directories.
Click to hide internal directories.