Versions in this module Expand all Collapse all v3 v3.0.1 May 23, 2023 v3.0.0 Mar 30, 2022 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 + Referenced 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) IncrementalSend(baseSnapshot *Dataset, output io.Writer) error + func (d *Dataset) Mount(overlay bool, options []string) (*Dataset, error) + func (d *Dataset) Rename(name string, createParent, recursiveRenameSnapshots bool) (*Dataset, 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) + func (d *Dataset) Unmount(force bool) (*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 + DedupRatio float64 + Fragmentation uint64 + Free uint64 + Freeing uint64 + Health string + Leaked uint64 + Name string + ReadOnly bool + 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) Other modules containing this package github.com/mistifyio/go-zfs