Documentation ¶
Index ¶
- func Close()
- type ErrZfsNotFound
- type ErrZfsUtilsNotFound
- type ErrZpoolNotFound
- type ZFS
- func (z ZFS) BlobDiffer() datalayer.BlobDifferFactory
- func (z ZFS) CreateSnapshot(vsid volumeset.ID, ssid snapPkg.ID, vid volume.ID) (blob.ID, error)
- func (z ZFS) CreateVolume(vsid volumeset.ID, b blob.ID, autoMount datalayer.MountType) (volume.ID, securefilepath.SecureFilePath, error)
- func (z ZFS) DestroySnapshot(b blob.ID) error
- func (z ZFS) DestroyVolume(vsid volumeset.ID, vid volume.ID) error
- func (z ZFS) DestroyVolumeSet(vsid volumeset.ID) error
- func (z ZFS) EmptyBlobID(vsid volumeset.ID) (blob.ID, error)
- func (z ZFS) GetSnapshotSpace(b blob.ID) (datalayer.SnapshotSpace, error)
- func (z ZFS) GetTotalSpace() (datalayer.DiskSpace, error)
- func (z ZFS) GetVolumesetSpace(vsid volumeset.ID) (datalayer.DiskSpace, error)
- func (z ZFS) MountBlob(b blob.ID) (string, error)
- func (z ZFS) SnapshotExists(b blob.ID) (bool, error)
- func (z ZFS) Unmount(path string) error
- func (z ZFS) Validate() error
- func (z ZFS) Version() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
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 ¶
DestroySnapshot is the ZFS implementation of the Storage interface
func (ZFS) DestroyVolume ¶
DestroyVolume is the ZFS implementation of the Storage interface
func (ZFS) DestroyVolumeSet ¶
DestroyVolumeSet ...
func (ZFS) EmptyBlobID ¶
EmptyBlobID is the ZFS implementation of the Storage interface
func (ZFS) GetSnapshotSpace ¶
GetSnapshotSpace ...
func (ZFS) GetTotalSpace ¶
GetTotalSpace ...
func (ZFS) GetVolumesetSpace ¶
GetVolumesetSpace ...
func (ZFS) SnapshotExists ¶
SnapshotExists is the ZFS implementation of Storage interface