scriptrunner

package
v0.0.0-...-0a82276 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ScriptResult

type ScriptResult struct {
	Stdout []byte
	Stderr []byte
	Code   int
}

ScriptResult holds the result of running a script.

func RunCommand

func RunCommand(command string, environ []string, clock clock.Clock, timeout time.Duration) (*ScriptResult, error)

RunCommand runs the given command with the given environment and returns the result. If timeout is non-zero, the command will be killed after that duration.

Jump to

Keyboard shortcuts

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