Documentation ¶
Index ¶
- Constants
- func GetCommand(args ...string) string
- func NewAdaptecRaid(term raid.IExecTerm) raid.IRaidDriver
- type AdaptecRaid
- type AdaptecRaidAdaptor
- func (ada *AdaptecRaidAdaptor) BuildNoneRaid(devs []*baremetal.BaremetalStorage) error
- func (ada *AdaptecRaidAdaptor) BuildRaid0(devs []*baremetal.BaremetalStorage, conf *api.BaremetalDiskConfig) error
- func (ada *AdaptecRaidAdaptor) BuildRaid1(devs []*baremetal.BaremetalStorage, conf *api.BaremetalDiskConfig) error
- func (ada *AdaptecRaidAdaptor) BuildRaid10(devs []*baremetal.BaremetalStorage, conf *api.BaremetalDiskConfig) error
- func (ada *AdaptecRaidAdaptor) BuildRaid5(devs []*baremetal.BaremetalStorage, conf *api.BaremetalDiskConfig) error
- func (ada *AdaptecRaidAdaptor) GetDevices() []*baremetal.BaremetalStorage
- func (ada *AdaptecRaidAdaptor) GetIndex() int
- func (ada *AdaptecRaidAdaptor) GetLogicVolumes() ([]*raid.RaidLogicalVolume, error)
- func (r *AdaptecRaidAdaptor) PostBuildRaid() error
- func (ada *AdaptecRaidAdaptor) PreBuildRaid(confs []*api.BaremetalDiskConfig) error
- func (ada *AdaptecRaidAdaptor) RemoveLogicVolumes() error
- type AdaptecRaidPhyDev
Constants ¶
View Source
const ( ControllerModeRaidExposeRaw = "RAID (Expose RAW)" ControllerModeRaidHideRaw = "RAID (Hide RAW)" ControllerModeMixed = "Mixed" )
Variables ¶
This section is empty.
Functions ¶
func GetCommand ¶
func NewAdaptecRaid ¶
func NewAdaptecRaid(term raid.IExecTerm) raid.IRaidDriver
Types ¶
type AdaptecRaid ¶
type AdaptecRaid struct {
// contains filtered or unexported fields
}
func (*AdaptecRaid) CleanRaid ¶
func (r *AdaptecRaid) CleanRaid() error
func (*AdaptecRaid) GetAdapters ¶
func (r *AdaptecRaid) GetAdapters() []raid.IRaidAdapter
func (*AdaptecRaid) GetName ¶
func (r *AdaptecRaid) GetName() string
func (*AdaptecRaid) ParsePhyDevs ¶
func (r *AdaptecRaid) ParsePhyDevs() error
func (*AdaptecRaid) PreBuildRaid ¶
func (r *AdaptecRaid) PreBuildRaid(confs []*api.BaremetalDiskConfig, adapterIdx int) error
type AdaptecRaidAdaptor ¶
type AdaptecRaidAdaptor struct {
// contains filtered or unexported fields
}
func NewAdaptecRaidAdaptor ¶
func NewAdaptecRaidAdaptor(index int, raid *AdaptecRaid) (*AdaptecRaidAdaptor, error)
func (*AdaptecRaidAdaptor) BuildNoneRaid ¶
func (ada *AdaptecRaidAdaptor) BuildNoneRaid(devs []*baremetal.BaremetalStorage) error
func (*AdaptecRaidAdaptor) BuildRaid0 ¶
func (ada *AdaptecRaidAdaptor) BuildRaid0(devs []*baremetal.BaremetalStorage, conf *api.BaremetalDiskConfig) error
func (*AdaptecRaidAdaptor) BuildRaid1 ¶
func (ada *AdaptecRaidAdaptor) BuildRaid1(devs []*baremetal.BaremetalStorage, conf *api.BaremetalDiskConfig) error
func (*AdaptecRaidAdaptor) BuildRaid10 ¶
func (ada *AdaptecRaidAdaptor) BuildRaid10(devs []*baremetal.BaremetalStorage, conf *api.BaremetalDiskConfig) error
func (*AdaptecRaidAdaptor) BuildRaid5 ¶
func (ada *AdaptecRaidAdaptor) BuildRaid5(devs []*baremetal.BaremetalStorage, conf *api.BaremetalDiskConfig) error
func (*AdaptecRaidAdaptor) GetDevices ¶
func (ada *AdaptecRaidAdaptor) GetDevices() []*baremetal.BaremetalStorage
func (*AdaptecRaidAdaptor) GetIndex ¶
func (ada *AdaptecRaidAdaptor) GetIndex() int
func (*AdaptecRaidAdaptor) GetLogicVolumes ¶
func (ada *AdaptecRaidAdaptor) GetLogicVolumes() ([]*raid.RaidLogicalVolume, error)
func (*AdaptecRaidAdaptor) PostBuildRaid ¶
func (r *AdaptecRaidAdaptor) PostBuildRaid() error
func (*AdaptecRaidAdaptor) PreBuildRaid ¶
func (ada *AdaptecRaidAdaptor) PreBuildRaid(confs []*api.BaremetalDiskConfig) error
func (*AdaptecRaidAdaptor) RemoveLogicVolumes ¶
func (ada *AdaptecRaidAdaptor) RemoveLogicVolumes() error
type AdaptecRaidPhyDev ¶
type AdaptecRaidPhyDev struct { *raid.RaidBasePhyDev // contains filtered or unexported fields }
func (*AdaptecRaidPhyDev) ToBaremetalStorage ¶
func (dev *AdaptecRaidPhyDev) ToBaremetalStorage(index int) *baremetal.BaremetalStorage
Click to show internal directories.
Click to hide internal directories.