kubernetes/vendor/github.com/mistifyio/go-zfs/zpool.go

const ZpoolOnline

const ZpoolDegraded

const ZpoolFaulted

const ZpoolOffline

const ZpoolUnavail

const ZpoolRemoved

type Zpool

// zpool is a helper function to wrap typical calls to zpool.
func zpool(arg ...string) ([][]string, error) {}

// GetZpool retrieves a single ZFS zpool by name.
func GetZpool(name string) (*Zpool, error) {}

// Datasets returns a slice of all ZFS datasets in a zpool.
func (z *Zpool) Datasets() ([]*Dataset, error) {}

// Snapshots returns a slice of all ZFS snapshots in a zpool.
func (z *Zpool) Snapshots() ([]*Dataset, error) {}

// CreateZpool creates a new ZFS zpool with the specified name, properties,
// and optional arguments.
// A full list of available ZFS properties and command-line arguments may be
// found here: https://www.freebsd.org/cgi/man.cgi?zfs(8).
func CreateZpool(name string, properties map[string]string, args ...string) (*Zpool, error) {}

// Destroy destroys a ZFS zpool by name.
func (z *Zpool) Destroy() error {}

// ListZpools list all ZFS zpools accessible on the current system.
func ListZpools() ([]*Zpool, error) {}