Documentation ¶
Index ¶
- Constants
- func AddTagLV(ctx context.Context, vg string, name string, tags []string) (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 CreatePV(ctx context.Context, block string) (string, error)
- func CreateVG(ctx context.Context, name string, physicalVolume string, tags []string) (string, error)
- func Destory(ctx context.Context, block string) (string, error)
- func ExtendLV(ctx context.Context, size string, name string) (string, error)
- func ExtendVG(ctx context.Context, name string, physicalVolume string) (string, error)
- func GetPVNum(ctx context.Context, name string) (string, error)
- func ListLV(ctx context.Context, listspec string) ([]*parser.LV, error)
- func ListPV(ctx context.Context) ([]*parser.PV, error)
- func ListVG(ctx context.Context) ([]*parser.VG, error)
- func Match(ctx context.Context, block string) string
- func ReduceVG(ctx context.Context, name string, physicalVolume string) (string, error)
- func RemoveLV(ctx context.Context, vg string, name string) (string, error)
- func RemovePV(ctx context.Context, block 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 Validate(ctx context.Context, block string) (bool, error)
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 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 a Volume Group
func RemoveTagLV ¶
RemoveTagLV remove Volume Group tag
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.