executor

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: Apache-2.0 Imports: 13 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(cmd *exec.Cmd) error

Types

type CmdUsage

type CmdUsage struct {
	Sys    time.Duration
	User   time.Duration
	MaxRss int64
}

type Executor added in v1.5.2

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

func NewExecutor added in v1.5.2

func NewExecutor(dir string, entrypoint string, args []string, envs []string) *Executor

func (*Executor) Output added in v1.5.2

func (e *Executor) Output() ([]byte, error)

func (*Executor) RunAndLogLines added in v1.5.2

func (e *Executor) RunAndLogLines(logLabels map[string]string) (*CmdUsage, error)

func (*Executor) WithCMDStderr added in v1.5.2

func (e *Executor) WithCMDStderr(w io.Writer) *Executor

func (*Executor) WithCMDStdout added in v1.5.2

func (e *Executor) WithCMDStdout(w io.Writer) *Executor

func (*Executor) WithLogProxyHookJSON added in v1.5.2

func (e *Executor) WithLogProxyHookJSON(logProxyHookJSON bool) *Executor

func (*Executor) WithLogProxyHookJSONKey added in v1.5.2

func (e *Executor) WithLogProxyHookJSONKey(logProxyHookJSONKey string) *Executor

func (*Executor) WithLogger added in v1.5.2

func (e *Executor) WithLogger(logger *log.Logger) *Executor

Jump to

Keyboard shortcuts

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