Documentation
¶
Index ¶
- func DatasetExists(name string) bool
- func IsEmpty(name string) (bool, error)
- func SnapshotExists(Name string) bool
- type Dataset
- func (ds *Dataset) DatasetList() ([]Dataset, error)
- func (ds *Dataset) Destroy() error
- func (ds *Dataset) GetCreation() (time.Time, error)
- func (ds *Dataset) GetExactProperty(property string) (string, error)
- func (ds *Dataset) GetMountpoint() (string, error)
- func (ds *Dataset) GetProperty(property string) (string, error)
- func (ds *Dataset) Promote() error
- func (ds *Dataset) Snapshot(name string) (*Snapshot, error)
- type Snapshot
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DatasetExists ¶
DatasetExists checks for the existence of a dataset
func SnapshotExists ¶
SnapshotExists checks for the existence of a dataset
Types ¶
type Dataset ¶
type Dataset struct {
Name string
}
Dataset is a zfs dataset
func CreateDataset ¶
CreateDataset creates a dataset
func CreateDatasetRecursive ¶
CreateDatasetRecursive recursively creates a dataset
func GetDataset ¶
GetDataset returns a zfs dataset object from a string
func (*Dataset) DatasetList ¶
DatasetList lists all child datasets
func (*Dataset) GetExactProperty ¶
GetExactProperty returns a property for a dataset using exact values
func (*Dataset) GetMountpoint ¶
GetMountpoint returns the mountpoint for a dataset
func (*Dataset) GetProperty ¶
GetProperty returns a property for a dataset
type Snapshot ¶
type Snapshot struct {
Name string
}
Snapshot represents a zfs snapshot
func GetSnapshot ¶
GetSnapshot returns a snapshot from a string
Click to show internal directories.
Click to hide internal directories.