Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager interface { // Start starts the manager. Start(stopCh <-chan struct{}) error // Status returns the getPVCStatus of a PVC/PV. Status(namespace, name string) ([]storagev1alpha1.PersistentVolumeClaimStatus, error) // Attach attaches a volume to a workload. Attach(w *storagev1alpha1.Workload, namespace, name string) error // MountedNodes returns the node list this volume mounted on. MountedNodes(namespace, name string) ([]string, error) // Usage returns the real usage of volume in byte. Usage(namespace, name string) (int64, error) }
Manager manages volumes.
func New ¶
func New( config *config.VolumeConfig, pvcrClient clientset.Interface, pvLister corelisters.PersistentVolumeLister, pvcLister corelisters.PersistentVolumeClaimLister, pvcrLister pvcrlisters.PersistentVolumeClaimRuntimeLister) Manager
New creates a new manager.
Click to show internal directories.
Click to hide internal directories.