Documentation ¶
Index ¶
- func GetCommand(args ...string) string
- func GetSpecString(dev *baremetal.BaremetalStorage) string
- func NewMarvelRaid(term raid.IExecTerm) raid.IRaidDriver
- type MarvelRaid
- type MarvelRaidAdaptor
- func (adapter *MarvelRaidAdaptor) BuildNoneRaid(devs []*baremetal.BaremetalStorage) error
- func (adapter *MarvelRaidAdaptor) BuildRaid0(devs []*baremetal.BaremetalStorage, conf *api.BaremetalDiskConfig) error
- func (adapter *MarvelRaidAdaptor) BuildRaid1(devs []*baremetal.BaremetalStorage, conf *api.BaremetalDiskConfig) error
- func (adapter *MarvelRaidAdaptor) BuildRaid10(devs []*baremetal.BaremetalStorage, conf *api.BaremetalDiskConfig) error
- func (adapter *MarvelRaidAdaptor) BuildRaid5(devs []*baremetal.BaremetalStorage, conf *api.BaremetalDiskConfig) error
- func (adapter *MarvelRaidAdaptor) GetDevices() []*baremetal.BaremetalStorage
- func (adapter *MarvelRaidAdaptor) GetIndex() int
- func (adapter *MarvelRaidAdaptor) GetLogicVolumes() ([]*raid.RaidLogicalVolume, error)
- func (adapter *MarvelRaidAdaptor) ParsePhyDevs() error
- func (adapter *MarvelRaidAdaptor) PostBuildRaid() error
- func (adapter *MarvelRaidAdaptor) PreBuildRaid(confs []*api.BaremetalDiskConfig) error
- func (adapter *MarvelRaidAdaptor) RemoveLogicVolumes() error
- type MarvelRaidPhyDev
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCommand ¶
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
Click to show internal directories.
Click to hide internal directories.