Documentation ¶
Index ¶
- Constants
- func GetCpu(data string) (int64, error)
- func GetIrqs(data string, device string, cpus []int64) ([]string, error)
- func RemoveEmptyElm(arr []string) []string
- func SlicePop(dwarfs []int64) (int64, []int64, error)
- func SyncExecute(name string) (string, error)
- type CmdStatus
- type ExecConfig
- func (execConfig *ExecConfig) BalanceDeviceIrq(device string) error
- func (execConfig *ExecConfig) CheckDeviceIrqBalance(device string) (bool, error)
- func (execConfig *ExecConfig) ReadConfig(configFilePath string) error
- func (execConfig *ExecConfig) Run()
- func (execConfig *ExecConfig) SetCpuNum() error
Constants ¶
View Source
const (
LineSeparator = "\n"
)
Variables ¶
This section is empty.
Functions ¶
func SyncExecute ¶
Types ¶
type CmdStatus ¶
type CmdStatus struct { Cmd string `json:"cmd"` PID int `json:"pid"` Complete bool `json:"complete"` // false if stopped or signaled Exit int `json:"exit"` // exit code of process Error error `json:"error" swaggertype:"string"` // Go error StartTs int64 `json:"startTs"` // Unix ts (nanoseconds), zero if Cmd not started StopTs int64 `json:"stopTs"` // Unix ts (nanoseconds), zero if Cmd not started or running Runtime float64 `json:"runtime"` // seconds, zero if Cmd not started Stderr string `json:"stderr"` Stdout string `json:"stdout"` }
type ExecConfig ¶
func NewExecConfig ¶
func NewExecConfig(configPath string) (*ExecConfig, error)
func (*ExecConfig) BalanceDeviceIrq ¶
func (execConfig *ExecConfig) BalanceDeviceIrq(device string) error
func (*ExecConfig) CheckDeviceIrqBalance ¶
func (execConfig *ExecConfig) CheckDeviceIrqBalance(device string) (bool, error)
func (*ExecConfig) ReadConfig ¶
func (execConfig *ExecConfig) ReadConfig(configFilePath string) error
func (*ExecConfig) Run ¶
func (execConfig *ExecConfig) Run()
func (*ExecConfig) SetCpuNum ¶
func (execConfig *ExecConfig) SetCpuNum() error
Click to show internal directories.
Click to hide internal directories.