Documentation ¶
Index ¶
- func GetCommand(args ...string) string
- func GetSpecString(dev *baremetal.BaremetalStorage) string
- func NewHPSARaid(term raid.IExecTerm) raid.IRaidDriver
- type HPSARaid
- type HPSARaidAdaptor
- func (adapter *HPSARaidAdaptor) BuildNoneRaid(devs []*baremetal.BaremetalStorage) error
- func (adapter *HPSARaidAdaptor) BuildRaid0(devs []*baremetal.BaremetalStorage, conf *api.BaremetalDiskConfig) error
- func (adapter *HPSARaidAdaptor) BuildRaid1(devs []*baremetal.BaremetalStorage, conf *api.BaremetalDiskConfig) error
- func (adapter *HPSARaidAdaptor) BuildRaid10(devs []*baremetal.BaremetalStorage, conf *api.BaremetalDiskConfig) error
- func (adapter *HPSARaidAdaptor) BuildRaid5(devs []*baremetal.BaremetalStorage, conf *api.BaremetalDiskConfig) error
- func (adapter *HPSARaidAdaptor) GetDevices() []*baremetal.BaremetalStorage
- func (adapter *HPSARaidAdaptor) GetIndex() int
- func (adapter *HPSARaidAdaptor) GetLogicVolumes() ([]*raid.RaidLogicalVolume, error)
- func (adapter *HPSARaidAdaptor) ParsePhyDevs() error
- func (adapter *HPSARaidAdaptor) PostBuildRaid() error
- func (adapter *HPSARaidAdaptor) PreBuildRaid(confs []*api.BaremetalDiskConfig) error
- func (adapter *HPSARaidAdaptor) RemoveLogicVolumes() error
- type HPSARaidPhyDev
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCommand ¶
func GetSpecString ¶
func GetSpecString(dev *baremetal.BaremetalStorage) string
func NewHPSARaid ¶
func NewHPSARaid(term raid.IExecTerm) raid.IRaidDriver
Types ¶
type HPSARaid ¶
type HPSARaid struct {
// contains filtered or unexported fields
}
func (*HPSARaid) GetAdapters ¶
func (r *HPSARaid) GetAdapters() []raid.IRaidAdapter
func (*HPSARaid) ParsePhyDevs ¶
func (*HPSARaid) PreBuildRaid ¶
func (r *HPSARaid) PreBuildRaid(_ []*api.BaremetalDiskConfig, _ int) error
type HPSARaidAdaptor ¶
type HPSARaidAdaptor struct {
// contains filtered or unexported fields
}
func (*HPSARaidAdaptor) BuildNoneRaid ¶
func (adapter *HPSARaidAdaptor) BuildNoneRaid(devs []*baremetal.BaremetalStorage) error
func (*HPSARaidAdaptor) BuildRaid0 ¶
func (adapter *HPSARaidAdaptor) BuildRaid0(devs []*baremetal.BaremetalStorage, conf *api.BaremetalDiskConfig) error
func (*HPSARaidAdaptor) BuildRaid1 ¶
func (adapter *HPSARaidAdaptor) BuildRaid1(devs []*baremetal.BaremetalStorage, conf *api.BaremetalDiskConfig) error
func (*HPSARaidAdaptor) BuildRaid10 ¶
func (adapter *HPSARaidAdaptor) BuildRaid10(devs []*baremetal.BaremetalStorage, conf *api.BaremetalDiskConfig) error
func (*HPSARaidAdaptor) BuildRaid5 ¶
func (adapter *HPSARaidAdaptor) BuildRaid5(devs []*baremetal.BaremetalStorage, conf *api.BaremetalDiskConfig) error
func (*HPSARaidAdaptor) GetDevices ¶
func (adapter *HPSARaidAdaptor) GetDevices() []*baremetal.BaremetalStorage
func (*HPSARaidAdaptor) GetIndex ¶
func (adapter *HPSARaidAdaptor) GetIndex() int
func (*HPSARaidAdaptor) GetLogicVolumes ¶
func (adapter *HPSARaidAdaptor) GetLogicVolumes() ([]*raid.RaidLogicalVolume, error)
func (*HPSARaidAdaptor) ParsePhyDevs ¶
func (adapter *HPSARaidAdaptor) ParsePhyDevs() error
func (*HPSARaidAdaptor) PostBuildRaid ¶
func (adapter *HPSARaidAdaptor) PostBuildRaid() error
func (*HPSARaidAdaptor) PreBuildRaid ¶
func (adapter *HPSARaidAdaptor) PreBuildRaid(confs []*api.BaremetalDiskConfig) error
func (*HPSARaidAdaptor) RemoveLogicVolumes ¶
func (adapter *HPSARaidAdaptor) RemoveLogicVolumes() error
type HPSARaidPhyDev ¶
type HPSARaidPhyDev struct { *raid.RaidBasePhyDev // contains filtered or unexported fields }
func (*HPSARaidPhyDev) ToBaremetalStorage ¶
func (dev *HPSARaidPhyDev) ToBaremetalStorage(index int) *baremetal.BaremetalStorage
Click to show internal directories.
Click to hide internal directories.