zfs

package
v0.0.0-...-c5655c4 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2017 License: Apache-2.0 Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

Close should be called when shutting down the ZFS storage backend

Types

type ErrZfsNotFound

type ErrZfsNotFound struct{}

ErrZfsNotFound ...

func (ErrZfsNotFound) Error

func (e ErrZfsNotFound) Error() string

type ErrZfsUtilsNotFound

type ErrZfsUtilsNotFound struct{}

ErrZfsUtilsNotFound ...

func (ErrZfsUtilsNotFound) Error

func (e ErrZfsUtilsNotFound) Error() string

type ErrZpoolNotFound

type ErrZpoolNotFound struct {
	Zpool string
}

ErrZpoolNotFound ...

func (ErrZpoolNotFound) Error

func (e ErrZpoolNotFound) Error() string

type ZFS

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

ZFS hides implementation details of the ZFS backend from caller

func New

func New(zpool string, blobDiffer datalayer.BlobDifferFactory) (ZFS, error)

New creates a new ZFS storage backend

func (ZFS) BlobDiffer

func (z ZFS) BlobDiffer() datalayer.BlobDifferFactory

BlobDiffer is the ZFS implementation of the Storage interface

func (ZFS) CreateSnapshot

func (z ZFS) CreateSnapshot(vsid volumeset.ID, ssid snapPkg.ID, vid volume.ID) (blob.ID, error)

CreateSnapshot is the ZFS implementation of the Storage interface

func (ZFS) CreateVolume

func (z ZFS) CreateVolume(
	vsid volumeset.ID,
	b blob.ID,
	autoMount datalayer.MountType,
) (volume.ID, securefilepath.SecureFilePath, error)

CreateVolume is the ZFS implements of the Storage interface

func (ZFS) DestroySnapshot

func (z ZFS) DestroySnapshot(b blob.ID) error

DestroySnapshot is the ZFS implementation of the Storage interface

func (ZFS) DestroyVolume

func (z ZFS) DestroyVolume(vsid volumeset.ID, vid volume.ID) error

DestroyVolume is the ZFS implementation of the Storage interface

func (ZFS) DestroyVolumeSet

func (z ZFS) DestroyVolumeSet(vsid volumeset.ID) error

DestroyVolumeSet ...

func (ZFS) EmptyBlobID

func (z ZFS) EmptyBlobID(vsid volumeset.ID) (blob.ID, error)

EmptyBlobID is the ZFS implementation of the Storage interface

func (ZFS) GetSnapshotSpace

func (z ZFS) GetSnapshotSpace(b blob.ID) (datalayer.SnapshotSpace, error)

GetSnapshotSpace ...

func (ZFS) GetTotalSpace

func (z ZFS) GetTotalSpace() (datalayer.DiskSpace, error)

GetTotalSpace ...

func (ZFS) GetVolumesetSpace

func (z ZFS) GetVolumesetSpace(vsid volumeset.ID) (datalayer.DiskSpace, error)

GetVolumesetSpace ...

func (ZFS) MountBlob

func (z ZFS) MountBlob(b blob.ID) (string, error)

MountBlob is the ZFS implementation of Storage interface

func (ZFS) SnapshotExists

func (z ZFS) SnapshotExists(b blob.ID) (bool, error)

SnapshotExists is the ZFS implementation of Storage interface

func (ZFS) Unmount

func (z ZFS) Unmount(path string) error

Unmount implements datalayer.Storage interface

func (ZFS) Validate

func (z ZFS) Validate() error

Validate ...

func (ZFS) Version

func (z ZFS) Version() string

Version fetch the zfs kernel version

Jump to

Keyboard shortcuts

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