Documentation
¶
Index ¶
- type LogicalVolume
- func (lv *LogicalVolume) Activate(ctx context.Context, rawArgs string) (bool, error)
- func (lv *LogicalVolume) Change(ctx context.Context, rawArgs string) (bool, error)
- func (lv *LogicalVolume) Create(ctx context.Context, rawArgs string) (bool, error)
- func (lv *LogicalVolume) Deactivate(ctx context.Context, rawArgs string) (bool, error)
- func (lv *LogicalVolume) Exists(ctx context.Context) (bool, error)
- func (lv *LogicalVolume) Remove(ctx context.Context, rawArgs string) (bool, error)
- type PhysicalVolume
- type VolumeGroup
- func (vg *VolumeGroup) Change(ctx context.Context, rawArgs string) (bool, error)
- func (vg *VolumeGroup) Create(ctx context.Context, rawArgs string) (bool, error)
- func (vg *VolumeGroup) Exists(ctx context.Context) (bool, error)
- func (vg *VolumeGroup) LockStart(ctx context.Context, rawArgs string) (bool, error)
- func (vg *VolumeGroup) LockStop(ctx context.Context, rawArgs string) (bool, error)
- func (vg *VolumeGroup) NumLVs(ctx context.Context) (int, error)
- func (vg *VolumeGroup) Remove(ctx context.Context, rawArgs string) (bool, error)
- func (vg *VolumeGroup) WaitForAppearance(ctx context.Context) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogicalVolume ¶
type LogicalVolume struct {
Name string
Size int64
PercentVG int
VolumeGroup *VolumeGroup
Vars map[string]string
Log logr.Logger
}
func NewLogicalVolume ¶
func NewLogicalVolume(ctx context.Context, name string, vg *VolumeGroup, size int64, percentVG int, log logr.Logger) *LogicalVolume
func (*LogicalVolume) Deactivate ¶
type VolumeGroup ¶
type VolumeGroup struct {
Name string
PhysicalVolumes []*PhysicalVolume
Vars map[string]string
Log logr.Logger
}
func NewVolumeGroup ¶
func NewVolumeGroup(ctx context.Context, name string, pvs []*PhysicalVolume, log logr.Logger) *VolumeGroup
NewVolumeGroup returns a VolumeGroup for operations.
func (*VolumeGroup) Exists ¶
func (vg *VolumeGroup) Exists(ctx context.Context) (bool, error)
Exists determines if the VG exists in the OS
func (*VolumeGroup) NumLVs ¶ added in v0.1.17
func (vg *VolumeGroup) NumLVs(ctx context.Context) (int, error)
func (*VolumeGroup) WaitForAppearance ¶ added in v0.1.5
func (vg *VolumeGroup) WaitForAppearance(ctx context.Context) (bool, error)
WaitForAppearance checks the existence of the VG and waits a brief time for the VG to be created if it is not present
Click to show internal directories.
Click to hide internal directories.