executor

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: Apache-2.0 Imports: 11 Imported by: 8

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