Documentation ¶
Index ¶
- Constants
- func NewMountDriver(mountPath string) (storage.MountDriver, error)
- type Driver
- func (d *Driver) Mount(do storage.DriverOptions) (*storage.Mount, error)
- func (d *Driver) MountPath(do storage.DriverOptions) (string, error)
- func (d *Driver) Mounted(timeout time.Duration) ([]*storage.Mount, error)
- func (d *Driver) Name() string
- func (d *Driver) Unmount(do storage.DriverOptions) error
- func (d *Driver) Validate(do storage.DriverOptions) error
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) MountPath ¶
func (d *Driver) MountPath(do storage.DriverOptions) (string, error)
MountPath describes the path at which the volume should be mounted.
func (*Driver) Mounted ¶
Mounted shows any volumes that belong to volplugin on the host, in their native representation. They yield a *Mount.
Click to show internal directories.
Click to hide internal directories.