zfsdriver

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2020 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ZfsDriver

type ZfsDriver struct {
	volume.Driver
	// contains filtered or unexported fields
}

ZfsDriver implements the plugin helpers volume.Driver interface for zfs

func NewZfsDriver

func NewZfsDriver(dss ...string) (*ZfsDriver, error)

NewZfsDriver returns the plugin driver object

func (*ZfsDriver) Capabilities

func (zd *ZfsDriver) Capabilities() *volume.CapabilitiesResponse

Capabilities sets the scope to local as this is a local only driver

func (*ZfsDriver) Create

func (zd *ZfsDriver) Create(req *volume.CreateRequest) error

Create creates a new zfs dataset for a volume

func (*ZfsDriver) Get

func (zd *ZfsDriver) Get(req *volume.GetRequest) (*volume.GetResponse, error)

Get returns the volume.Volume{} object for the requested volume nolint: dupl

func (*ZfsDriver) List

func (zd *ZfsDriver) List() (*volume.ListResponse, error)

List returns a list of zfs volumes on this host

func (*ZfsDriver) Mount

func (zd *ZfsDriver) Mount(req *volume.MountRequest) (*volume.MountResponse, error)

Mount returns the mountpoint of the zfs volume nolint: dupl

func (*ZfsDriver) Path

func (zd *ZfsDriver) Path(req *volume.PathRequest) (*volume.PathResponse, error)

Path returns the mountpoint of a volume nolint: dupl

func (*ZfsDriver) Remove

func (zd *ZfsDriver) Remove(req *volume.RemoveRequest) error

Remove destroys a zfs dataset for a volume

func (*ZfsDriver) Unmount

func (zd *ZfsDriver) Unmount(req *volume.UnmountRequest) error

Unmount does nothing because a zfs dataset need not be unmounted

Jump to

Keyboard shortcuts

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