executor

package
v0.0.2 Latest Latest
Warning

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

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

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