commands

package
v0.0.0-...-17bd8b9 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2020 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

View Source
const ProtectedTagName = "protected"

ProtectedTagName is a tag that prevents RemoveLV & RemoveVG from removing a volume

Variables

This section is empty.

Functions

func AddTagLV

func AddTagLV(ctx context.Context, vg string, name string, tags []string) (string, error)

func CloneLV

func CloneLV(ctx context.Context, src, dest string) (string, error)

CloneLV clones a volume via dd

func CreateLV

func CreateLV(ctx context.Context, vg string, name string, size uint64, mirrors uint32, tags []string) (string, error)

CreateLV creates a new volume

func CreateVG

func CreateVG(ctx context.Context, name string, physicalVolume string, tags []string) (string, error)

func ListLV

func ListLV(ctx context.Context, listspec string) ([]*parser.LV, error)

ListLV lists lvm volumes

func ListVG

func ListVG(ctx context.Context) ([]*parser.VG, error)

func RemoveLV

func RemoveLV(ctx context.Context, vg string, name string) (string, error)

RemoveLV removes a volume

func RemoveTagLV

func RemoveTagLV(ctx context.Context, vg string, name string, tags []string) (string, error)

func RemoveVG

func RemoveVG(ctx context.Context, name string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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