executor

package
v1.4.7 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 8 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeCommand

func MakeCommand(dir string, entrypoint string, args []string, envs []string) *exec.Cmd

func Output

func Output(cmd *exec.Cmd) (output []byte, err error)

func Run

func Run(cmd *exec.Cmd) error

Types

type CmdUsage

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

func RunAndLogLines

func RunAndLogLines(cmd *exec.Cmd, logLabels map[string]string) (*CmdUsage, error)

Jump to

Keyboard shortcuts

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