Documentation ¶
Index ¶
- Variables
- func ListDatasets(typ string) ([]string, error)
- func ZPools() ([]string, error)
- func Zfs(cmd string, args ...string) error
- func ZfsFields(cmd string, args ...string) ([][]string, error)
- func ZfsLines(cmd string, args ...string) ([]string, error)
- func ZfsOutput(cmd string, args ...string) (string, error)
- func ZfsReceive(r io.Reader, args ...string) error
- func ZfsSend(w io.Writer, args ...string) error
- type Dataset
- func (ds *Dataset) ChildName(name string) string
- func (ds *Dataset) Children(depth int, args ...string) ([]*Dataset, error)
- func (ds *Dataset) Clone(name string, args ...string) (*Dataset, error)
- func (ds *Dataset) CreateDataset(name string, args ...string) (*Dataset, error)
- func (ds *Dataset) Destroy(flags ...string) error
- func (ds *Dataset) Get(name string) (string, error)
- func (ds *Dataset) GetDataset(name string) (*Dataset, error)
- func (ds *Dataset) GetMany(attr ...string) (map[string]string, error)
- func (ds *Dataset) GetSnapshot(name string) (*Dataset, error)
- func (ds *Dataset) Mount() (err error)
- func (ds *Dataset) Path(elem ...string) string
- func (ds *Dataset) Rename(name string, args ...string) (err error)
- func (ds *Dataset) Rollback(args ...string) error
- func (ds *Dataset) RollbackTo(name string, args ...string) error
- func (ds *Dataset) Send(w io.Writer, args ...string) error
- func (ds *Dataset) Set(name, value string) (err error)
- func (ds *Dataset) SetMany(attr map[string]string) (err error)
- func (ds *Dataset) Snapshot(name string, args ...string) (*Dataset, error)
- func (ds *Dataset) SnapshotName(name string) string
- func (ds *Dataset) String() string
- func (ds *Dataset) Unmount() (err error)
- func (ds *Dataset) Zfs(cmd string, args ...string) error
- func (ds *Dataset) ZfsFields(cmd string, args ...string) ([][]string, error)
- func (ds *Dataset) ZfsOutput(cmd string, args ...string) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("Not found")
Functions ¶
func ListDatasets ¶
Types ¶
type Dataset ¶
func GetDataset ¶
func (*Dataset) Children ¶
depth: -1: self and all descendants (unlimited recursion); 0: only all descendants (unlimited recursion); >0: set depth, not include self
func (*Dataset) CreateDataset ¶
func (*Dataset) SnapshotName ¶
Click to show internal directories.
Click to hide internal directories.