Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInterface ¶
func NewInterface() *zfsImpl
Types ¶
type Dataset ¶
type Dataset struct { Name string Mountpoint string Hostname string // contains filtered or unexported fields }
Dataset is a representation of a ZFS dataset
type DestroyFlag ¶
type DestroyFlag int
const ( DestroyRecursively DestroyFlag = 2 HostEnvVar = "ZFS_HOST" )
type Interface ¶
type Interface interface { GetDataset(name string, hostname string) (*Dataset, error) CreateDataset(name string, hostname string, properties map[string]string) (*Dataset, error) DestroyDataset(dataset *Dataset, flag DestroyFlag) error SetPermissions(dataset *Dataset) error }
Interface abstracts the underlying ZFS library with the minimum functionality implemented
Click to show internal directories.
Click to hide internal directories.