Versions in this module Expand all Collapse all v0 v0.20.3 Jan 19, 2016 v0.20.2 Jan 16, 2016 Changes in this version + const DatasetFilesystem + const DatasetSnapshot + const DatasetVolume + const DestroyDefault + const DestroyDeferDeletion + const DestroyForceUmount + const DestroyRecursive + const DestroyRecursiveClones + const ZpoolDegraded + const ZpoolFaulted + const ZpoolOffline + const ZpoolOnline + const ZpoolRemoved + const ZpoolUnavail + func SetLogger(l Logger) + type ChangeType int + const Created + const Modified + const Removed + const Renamed + type Dataset struct + Avail uint64 + Compression string + Logicalused uint64 + Mountpoint string + Name string + Origin string + Quota uint64 + Type string + Used uint64 + Usedbydataset uint64 + Volsize uint64 + Written uint64 + func CreateFilesystem(name string, properties map[string]string) (*Dataset, error) + func CreateVolume(name string, size uint64, properties map[string]string) (*Dataset, error) + func Datasets(filter string) ([]*Dataset, error) + func Filesystems(filter string) ([]*Dataset, error) + func GetDataset(name string) (*Dataset, error) + func ReceiveSnapshot(input io.Reader, name string) (*Dataset, error) + func Snapshots(filter string) ([]*Dataset, error) + func Volumes(filter string) ([]*Dataset, error) + func (d *Dataset) Children(depth uint64) ([]*Dataset, error) + func (d *Dataset) Clone(dest string, properties map[string]string) (*Dataset, error) + func (d *Dataset) Destroy(flags DestroyFlag) error + func (d *Dataset) Diff(snapshot string) ([]*InodeChange, error) + func (d *Dataset) GetProperty(key string) (string, error) + func (d *Dataset) Rollback(destroyMoreRecent bool) error + func (d *Dataset) SendSnapshot(output io.Writer) error + func (d *Dataset) SetProperty(key, val string) error + func (d *Dataset) Snapshot(name string, recursive bool) (*Dataset, error) + func (d *Dataset) Snapshots() ([]*Dataset, error) + type DestroyFlag int + type Error struct + Debug string + Err error + Stderr string + func (e Error) Error() string + type InodeChange struct + Change ChangeType + NewPath string + Path string + ReferenceCountChange int + Type InodeType + type InodeType int + const BlockDevice + const CharacterDevice + const Directory + const Door + const EventPort + const File + const NamedPipe + const Socket + const SymbolicLink + type Logger interface + Log func(cmd []string) + type Zpool struct + Allocated uint64 + Free uint64 + Health string + Name string + Size uint64 + func CreateZpool(name string, properties map[string]string, args ...string) (*Zpool, error) + func GetZpool(name string) (*Zpool, error) + func ListZpools() ([]*Zpool, error) + func (z *Zpool) Datasets() ([]*Dataset, error) + func (z *Zpool) Destroy() error + func (z *Zpool) Snapshots() ([]*Dataset, error)