Documentation ¶
Index ¶
- Constants
- func AddTagLV(ctx context.Context, vg string, name string, tags []string) (string, error)
- func CleanPath(ctx context.Context, path string) error
- func CloneLV(ctx context.Context, src, dest string) (string, error)
- func CreateLV(ctx context.Context, vg string, name string, size uint64, mirrors uint32, ...) (string, error)
- func CreateVG(ctx context.Context, name string, physicalVolume string, tags []string) (string, error)
- func ListLV(listspec string) ([]*parser.LV, error)
- func ListVG() ([]*parser.VG, error)
- func RemoveLV(ctx context.Context, vg string, name string) (string, error)
- func RemoveTagLV(ctx context.Context, vg string, name string, tags []string) (string, error)
- func RemoveVG(ctx context.Context, name string) (string, error)
- func Run(cmd string) (string, error)
Constants ¶
View Source
const (
// NsenterCmd is the nsenter command
NsenterCmd = "/nsenter --mount=/proc/1/ns/mnt "
)
View Source
const ProtectedTagName = "protected"
ProtectedTagName is a tag that prevents RemoveLV & RemoveVG from removing a volume
Variables ¶
This section is empty.
Functions ¶
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)
CreateVG create volume group
func RemoveTagLV ¶
RemoveTagLV remove tag
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.