volume

package
v0.0.0-...-6526340 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2020 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 24 Imported by: 0

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

New creates a new manager.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL