commandrunner

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const LSBLKBinaryPath = "/usr/bin/lsblk"
View Source
const MDADMBinaryPath = "/usr/sbin/mdadm"
View Source
const SSACLIPath = "ssacli"
View Source
const SmartCTLBinaryPath = "/usr/sbin/smartctl"
View Source
const (
	UDevADMBinaryPath = "/usr/bin/udevadm"
)

Variables

View Source
var (

	//nolint:gochecknoglobals // Needed for mocking in tests
	LSBLKExecCommand = exec.Command
)
View Source
var (

	//nolint:gochecknoglobals // Needed for mocking in tests
	MDADMExecCommand = exec.Command
)
View Source
var (

	//nolint:gochecknoglobals // Needed for mocking in tests
	SSACLIExecCommand = exec.Command
)
View Source
var (

	//nolint:gochecknoglobals // Needed for mocking in tests
	SmartCTLExecCommand = exec.Command
)
View Source
var (

	//nolint:gochecknoglobals // Needed for mocking in tests
	UDevADMExecCommand = exec.Command
)

Functions

This section is empty.

Types

type CommandRunner

type CommandRunner interface {
	Run(args []string) ([]byte, error)
}

type LSBLK

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

func NewLSBLK

func NewLSBLK(path *string) *LSBLK

func (*LSBLK) Run

func (l *LSBLK) Run(args []string) ([]byte, error)

type MDADM

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

func NewMDADM

func NewMDADM(path *string) *MDADM

func (*MDADM) Run

func (m *MDADM) Run(args []string) ([]byte, error)

type SSACLI

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

func NewSSACLI

func NewSSACLI(path *string) *SSACLI

func (*SSACLI) Run

func (s *SSACLI) Run(args []string) ([]byte, error)

type SmartCTL

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

func NewSmartCTL

func NewSmartCTL(path *string) *SmartCTL

func (*SmartCTL) Run

func (s *SmartCTL) Run(args []string) ([]byte, error)

type UDevADM

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

func NewUDevADM

func NewUDevADM(path *string) *UDevADM

func (*UDevADM) Run

func (u *UDevADM) Run(args []string) ([]byte, error)

Jump to

Keyboard shortcuts

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