datastructures

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

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) AddDevice added in v1.1.2

func (lg *LvmGraph) AddDevice(name string, size uint64) error

func (*LvmGraph) AddLogicalVolume

func (lg *LvmGraph) AddLogicalVolume(name string, vg string, state model.LvmState, size uint64) error

func (*LvmGraph) AddPhysicalVolume

func (lg *LvmGraph) AddPhysicalVolume(name string, size uint64) error

func (*LvmGraph) AddVolumeGroup

func (lg *LvmGraph) AddVolumeGroup(name string, pv string, size uint64) error

func (*LvmGraph) GetChildren

func (lg *LvmGraph) GetChildren(node *LvmNode, kind model.LvmKind) []*LvmNode

func (*LvmGraph) GetDevice added in v1.1.3

func (lg *LvmGraph) GetDevice(name string) (*LvmNode, error)

func (*LvmGraph) GetLogicalVolume

func (lg *LvmGraph) GetLogicalVolume(name string, vg string) (*LvmNode, error)

func (*LvmGraph) GetParents

func (lg *LvmGraph) GetParents(node *LvmNode, kind model.LvmKind) []*LvmNode

func (*LvmGraph) GetPhysicalVolume

func (lg *LvmGraph) GetPhysicalVolume(name string) (*LvmNode, error)

func (*LvmGraph) GetVolumeGroup

func (lg *LvmGraph) GetVolumeGroup(name string) (*LvmNode, error)

type LvmNode

type LvmNode struct {
	Name  string
	State model.LvmState
	Size  uint64
	// contains filtered or unexported fields
}

func NewDevice added in v1.1.2

func NewDevice(name string, size uint64) *LvmNode

func NewLogicalVolume

func NewLogicalVolume(name string, vg string, State model.LvmState, size uint64) *LvmNode

func NewPhysicalVolume

func NewPhysicalVolume(name string, size uint64) *LvmNode

func NewVolumeGroup

func NewVolumeGroup(name string, size uint64) *LvmNode

Jump to

Keyboard shortcuts

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