Documentation
¶
Index ¶
- type LvmGraph
- func (lg *LvmGraph) AddDevice(name string, size uint64) error
- func (lg *LvmGraph) AddLogicalVolume(name string, vg string, state model.LvmState, size uint64) error
- func (lg *LvmGraph) AddPhysicalVolume(name string, size uint64) error
- func (lg *LvmGraph) AddVolumeGroup(name string, pv string, size uint64) error
- func (lg *LvmGraph) GetChildren(node *LvmNode, kind model.LvmKind) []*LvmNode
- func (lg *LvmGraph) GetDevice(name string) (*LvmNode, error)
- func (lg *LvmGraph) GetLogicalVolume(name string, vg string) (*LvmNode, error)
- func (lg *LvmGraph) GetParents(node *LvmNode, kind model.LvmKind) []*LvmNode
- func (lg *LvmGraph) GetPhysicalVolume(name string) (*LvmNode, error)
- func (lg *LvmGraph) GetVolumeGroup(name string) (*LvmNode, error)
- type LvmNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LvmGraph ¶
type LvmGraph struct {
// contains filtered or unexported fields
}
func NewLvmGraph ¶
func NewLvmGraph() *LvmGraph
func (*LvmGraph) AddLogicalVolume ¶
func (*LvmGraph) AddPhysicalVolume ¶
func (*LvmGraph) AddVolumeGroup ¶
func (*LvmGraph) GetChildren ¶
func (*LvmGraph) GetLogicalVolume ¶
func (*LvmGraph) GetParents ¶
func (*LvmGraph) GetPhysicalVolume ¶
type LvmNode ¶
type LvmNode struct { Name string State model.LvmState Size uint64 // contains filtered or unexported fields }
func NewLogicalVolume ¶
func NewPhysicalVolume ¶
func NewVolumeGroup ¶
Click to show internal directories.
Click to hide internal directories.