Documentation
¶
Overview ¶
Package cmd provides a thin wrapper around zfs commands
Index ¶
- func Bookmark(snapshot, bookmark string) error
- func Clone(snapshot, name string, opts *CloneOpts) error
- func CreateFilesystem(name string, opts *CreateFilesystemOpts) error
- func CreateVolue(name, size string, opts *CreateVolumeOpts) error
- func Destroy(name string, opts *DestroyOpts) error
- func Get(name string, properties []string, opts *GetOpts) (map[string]map[string]*Property, error)
- func Inherit(name string, property string, opts *InheritOpts) error
- func List(name string, opts *ListOpts) ([]string, error)
- func Mount(name string, opts *MountOpts) error
- func Promote(name string) error
- func Rename(name, newName string, opts *RenameOpts) error
- func Rollback(name string, opts *RollbackOpts) error
- func Set(name string, properties map[string]string) error
- func Snapshot(name string, opts *SnapshotOpts) error
- func UnMount(name string, opts *UnMountOpts) error
- type CloneOpts
- type CreateFilesystemOpts
- type CreateVolumeOpts
- type DestroyOpts
- type GetOpts
- type InheritOpts
- type ListOpts
- type MountEntry
- type MountOpts
- type Property
- type RenameOpts
- type RollbackOpts
- type SnapshotOpts
- type UnMountOpts
- type ZFSError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateFilesystem ¶
func CreateFilesystem(name string, opts *CreateFilesystemOpts) error
CreateFilesystem runs zfs create
func CreateVolue ¶
func CreateVolue(name, size string, opts *CreateVolumeOpts) error
CreateVolue runs zfs create -V
func Get ¶
Get runs zfs get Returns a map indexed by dataset, each of which holds a map indexed by the requested property
func Inherit ¶
func Inherit(name string, property string, opts *InheritOpts) error
Inherit runs zfs inherit
Types ¶
type CreateFilesystemOpts ¶
type CreateFilesystemOpts struct { SetProperties map[string]string DontMount bool CreateParents bool }
CreateFilesystemOpts are options that can be passed to CreateFilesystem
type CreateVolumeOpts ¶
type CreateVolumeOpts struct { SetProperties map[string]string CreateParents bool BlockSize string Sparse bool }
CreateVolumeOpts are options that can be passed to CreateVolume
type DestroyOpts ¶
DestroyOpts are options that can be passed to Destroy
type GetOpts ¶
GetOpts are options that can be passed to Get Depth defaults to 0, set to -1 to omit the depth argument
type InheritOpts ¶
InheritOpts are options that can be passed to Inherit
type ListOpts ¶
ListOpts are options that can be passed to List Depth defaults to zero, set to -1 to omit the depth argument
type MountEntry ¶
MountEntry is a mounted zfs filesystem
type RenameOpts ¶
RenameOpts are options that can be passed to Rename
type RollbackOpts ¶
RollbackOpts are options that can be passed to Rollback
type SnapshotOpts ¶
SnapshotOpts are options that can be passed to Snapshot
type UnMountOpts ¶
UnMountOpts are options that can be passed to UnMount