drivers

package
v0.0.0-...-2b29b9b Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: Apache-2.0 Imports: 16 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildRaid

func BuildRaid(driver raid.IRaidDriver, confs []*api.BaremetalDiskConfig, adapterIdx int) error

func GetBlockDeviceLogicalVolume

func GetBlockDeviceLogicalVolume(drv raid.IRaidDriver, blockDev string) (*raid.RaidLogicalVolume, error)

func GetDriver

func GetDriver(name string, term raid.IExecTerm) raid.IRaidDriver

func GetDriverByKernelModule

func GetDriverByKernelModule(module string, term raid.IExecTerm) (raid.IRaidDriver, error)

func GetDriverWithInit

func GetDriverWithInit(name string, term raid.IExecTerm) (raid.IRaidDriver, error)

func GetDrivers

func GetDrivers(term raid.IExecTerm) []raid.IRaidDriver

func GetFirstLogicalVolume

func GetFirstLogicalVolume(drv raid.IRaidDriver, adapterIdx int) (*raid.RaidLogicalVolume, error)

func GetLocalDriver

func GetLocalDriver(name string) raid.IRaidDriver

func PostBuildRaid

func PostBuildRaid(driver raid.IRaidDriver, adapterIdx int) error

Types

type Executor

type Executor struct{}

func NewExecutor

func NewExecutor() *Executor

func (*Executor) Run

func (e *Executor) Run(cmds ...string) ([]string, error)

func (*Executor) RunWithInput

func (e *Executor) RunWithInput(input io.Reader, cmds ...string) ([]string, error)

Jump to

Keyboard shortcuts

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