sas2iru

package
v0.3.10-0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSpecString

func GetSpecString(dev *baremetal.BaremetalStorage) string

func NewMpt2SASRaid

func NewMpt2SASRaid(term raid.IExecTerm) raid.IRaidDriver

Types

type Mpt2SASRaid

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

func (*Mpt2SASRaid) CleanRaid

func (r *Mpt2SASRaid) CleanRaid() error

func (*Mpt2SASRaid) GetAdapters

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

func (*Mpt2SASRaid) GetCommand

func (r *Mpt2SASRaid) GetCommand(args ...string) string

func (*Mpt2SASRaid) GetName

func (r *Mpt2SASRaid) GetName() string

func (*Mpt2SASRaid) ParsePhyDevs

func (r *Mpt2SASRaid) ParsePhyDevs() error

func (*Mpt2SASRaid) PreBuildRaid

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

type Mpt2SASRaidAdaptor

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

func (*Mpt2SASRaidAdaptor) BuildNoneRaid

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

func (*Mpt2SASRaidAdaptor) BuildRaid0

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

func (*Mpt2SASRaidAdaptor) BuildRaid1

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

func (*Mpt2SASRaidAdaptor) BuildRaid10

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

func (*Mpt2SASRaidAdaptor) BuildRaid5

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

func (*Mpt2SASRaidAdaptor) GetDevices

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

func (*Mpt2SASRaidAdaptor) GetIndex

func (adapter *Mpt2SASRaidAdaptor) GetIndex() int

func (*Mpt2SASRaidAdaptor) GetLogicVolumes

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

func (*Mpt2SASRaidAdaptor) ParsePhyDevs

func (adapter *Mpt2SASRaidAdaptor) ParsePhyDevs() error

func (*Mpt2SASRaidAdaptor) PostBuildRaid

func (adapter *Mpt2SASRaidAdaptor) PostBuildRaid() error

func (*Mpt2SASRaidAdaptor) PreBuildRaid

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

func (*Mpt2SASRaidAdaptor) RemoveLogicVolumes

func (adapter *Mpt2SASRaidAdaptor) RemoveLogicVolumes() error

type Mpt2SASRaidPhyDev

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

func (*Mpt2SASRaidPhyDev) ToBaremetalStorage

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

Jump to

Keyboard shortcuts

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