nfs

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2016 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const BackendName = "nfs"

BackendName is the name of the driver.

Variables

This section is empty.

Functions

func NewMountDriver

func NewMountDriver(mountPath string) (storage.MountDriver, error)

NewMountDriver constructs a new NFS driver.

Types

type Driver

type Driver struct {
	// contains filtered or unexported fields
}

Driver is a basic struct for controlling the NFS driver.

func (*Driver) Mount

func (d *Driver) Mount(do storage.DriverOptions) (*storage.Mount, error)

Mount a Volume

func (*Driver) MountPath

func (d *Driver) MountPath(do storage.DriverOptions) (string, error)

MountPath describes the path at which the volume should be mounted.

func (*Driver) Mounted

func (d *Driver) Mounted(timeout time.Duration) ([]*storage.Mount, error)

Mounted shows any volumes that belong to volplugin on the host, in their native representation. They yield a *Mount.

func (*Driver) Name

func (d *Driver) Name() string

Name returns the string associated with the storage backed of the driver

func (*Driver) Unmount

func (d *Driver) Unmount(do storage.DriverOptions) error

Unmount a volume

func (*Driver) Validate

func (d *Driver) Validate(do *storage.DriverOptions) error

Validate validates the NFS drivers implementation of handling storage.DriverOptions.

Jump to

Keyboard shortcuts

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