btrfs

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// valid btrfs data & metadata profiles
	Profiles = map[string]struct{}{
		"raid0":  struct{}{},
		"raid1":  struct{}{},
		"raid5":  struct{}{},
		"raid6":  struct{}{},
		"raid10": struct{}{},
		"dup":    struct{}{},
		"single": struct{}{},
		"":       struct{}{},
	}
)

Functions

This section is empty.

Types

type CreateArgument

type CreateArgument struct {
	Label     string   `json:"label"`
	Metadata  string   `json:"metadata"`
	Data      string   `json:"data"`
	Devices   []string `json:"devices"`
	Overwrite bool     `json:"overwrite"`
}

func (CreateArgument) Validate

func (arg CreateArgument) Validate() error

type DeviceAddArgument

type DeviceAddArgument struct {
	InfoArgument
	Devices []string `json:"devices"`
}

type InfoArgument

type InfoArgument struct {
	Mountpoint string `json:"mountpoint"`
}

type SnapshotArgument

type SnapshotArgument struct {
	Source      string `json:"source"`
	Destination string `json:"destination"`
	Readonly    bool   `json:"read_only"`
}

type SubvolArgument

type SubvolArgument struct {
	Path string `json:"path"`
}

type SubvolQuotaArgument

type SubvolQuotaArgument struct {
	SubvolArgument
	Limit string `json:"limit"`
}

Jump to

Keyboard shortcuts

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