Documentation ¶
Overview ¶
Package zfs handles interactions with the zfs filesystem
Index ¶
- Variables
- func GetCreationDate(ctx context.Context, target string) (time.Time, error)
- func GetSnapshotsAndBookmarks(ctx context.Context, target string) ([]files.SnapshotInfo, error)
- func GetZFSProperty(ctx context.Context, prop, target string) (string, error)
- func GetZFSReceiveCommand(ctx context.Context, j *files.JobInfo) *exec.Cmd
- func GetZFSSendCommand(ctx context.Context, j *files.JobInfo) *exec.Cmd
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ZFSPath = "zfs"
)
ZFSPath is the path to the zfs binary
Functions ¶
func GetCreationDate ¶
GetCreationDate will use the zfs command to get and parse the creation datetime of the specified volume/snapshot
func GetSnapshotsAndBookmarks ¶
GetSnapshotsAndBookmarks will retrieve all snapshots and bookmarks for the given target
func GetZFSProperty ¶
GetZFSProperty will return the raw value returned by the "zfs get" command for the given property on the given target.
func GetZFSReceiveCommand ¶
GetZFSReceiveCommand will return the recv command to use for the given JobInfo
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.