zfs

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInterface

func NewInterface() *zfsImpl

Types

type Dataset

type Dataset struct {
	Name       string
	Mountpoint string
	Hostname   string
	// contains filtered or unexported fields
}

Dataset is a representation of a ZFS dataset

type DestroyFlag

type DestroyFlag int
const (
	DestroyRecursively DestroyFlag = 2
	HostEnvVar                     = "ZFS_HOST"
)

type Interface

type Interface interface {
	GetDataset(name string, hostname string) (*Dataset, error)
	CreateDataset(name string, hostname string, properties map[string]string) (*Dataset, error)
	DestroyDataset(dataset *Dataset, flag DestroyFlag) error
	SetPermissions(dataset *Dataset) error
}

Interface abstracts the underlying ZFS library with the minimum functionality implemented

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL