mvcli

package
v0.0.0-...-6410feb Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCommand

func GetCommand(args ...string) string

func GetSpecString

func GetSpecString(dev *baremetal.BaremetalStorage) string

func NewMarvelRaid

func NewMarvelRaid(term raid.IExecTerm) raid.IRaidDriver

Types

type MarvelRaid

type MarvelRaid struct {
	// contains filtered or unexported fields
}

func (*MarvelRaid) CleanRaid

func (r *MarvelRaid) CleanRaid() error

func (*MarvelRaid) GetAdapters

func (r *MarvelRaid) GetAdapters() []raid.IRaidAdapter

func (*MarvelRaid) GetName

func (r *MarvelRaid) GetName() string

func (*MarvelRaid) ParsePhyDevs

func (r *MarvelRaid) ParsePhyDevs() error

func (*MarvelRaid) PreBuildRaid

func (r *MarvelRaid) PreBuildRaid(_ []*api.BaremetalDiskConfig, _ int) error

type MarvelRaidAdaptor

type MarvelRaidAdaptor struct {
	// contains filtered or unexported fields
}

func NewMarvelRaidAdaptor

func NewMarvelRaidAdaptor(index int, raid *MarvelRaid) *MarvelRaidAdaptor

func (*MarvelRaidAdaptor) BuildNoneRaid

func (adapter *MarvelRaidAdaptor) BuildNoneRaid(devs []*baremetal.BaremetalStorage) error

func (*MarvelRaidAdaptor) BuildRaid0

func (adapter *MarvelRaidAdaptor) BuildRaid0(devs []*baremetal.BaremetalStorage, conf *api.BaremetalDiskConfig) error

func (*MarvelRaidAdaptor) BuildRaid1

func (adapter *MarvelRaidAdaptor) BuildRaid1(devs []*baremetal.BaremetalStorage, conf *api.BaremetalDiskConfig) error

func (*MarvelRaidAdaptor) BuildRaid10

func (adapter *MarvelRaidAdaptor) BuildRaid10(devs []*baremetal.BaremetalStorage, conf *api.BaremetalDiskConfig) error

func (*MarvelRaidAdaptor) BuildRaid5

func (adapter *MarvelRaidAdaptor) BuildRaid5(devs []*baremetal.BaremetalStorage, conf *api.BaremetalDiskConfig) error

func (*MarvelRaidAdaptor) GetDevices

func (adapter *MarvelRaidAdaptor) GetDevices() []*baremetal.BaremetalStorage

func (*MarvelRaidAdaptor) GetIndex

func (adapter *MarvelRaidAdaptor) GetIndex() int

func (*MarvelRaidAdaptor) GetLogicVolumes

func (adapter *MarvelRaidAdaptor) GetLogicVolumes() ([]*raid.RaidLogicalVolume, error)

func (*MarvelRaidAdaptor) ParsePhyDevs

func (adapter *MarvelRaidAdaptor) ParsePhyDevs() error

func (*MarvelRaidAdaptor) PostBuildRaid

func (adapter *MarvelRaidAdaptor) PostBuildRaid() error

func (*MarvelRaidAdaptor) PreBuildRaid

func (adapter *MarvelRaidAdaptor) PreBuildRaid(confs []*api.BaremetalDiskConfig) error

func (*MarvelRaidAdaptor) RemoveLogicVolumes

func (adapter *MarvelRaidAdaptor) RemoveLogicVolumes() error

type MarvelRaidPhyDev

type MarvelRaidPhyDev struct {
	*raid.RaidBasePhyDev
	// contains filtered or unexported fields
}

func NewMarvelRaidPhyDev

func NewMarvelRaidPhyDev(adapter int) *MarvelRaidPhyDev

func (*MarvelRaidPhyDev) ToBaremetalStorage

func (dev *MarvelRaidPhyDev) ToBaremetalStorage(idx int) *baremetal.BaremetalStorage

Jump to

Keyboard shortcuts

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