exec

package
v2.7.3 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(cmd *exec.Cmd) (string, error)

func RunWithExecRunOpts added in v2.6.0

func RunWithExecRunOpts(cmd *exec.Cmd, opts ExecRunOpts) (string, error)

func RunWithRedactor

func RunWithRedactor(cmd *exec.Cmd, redactor func(text string) string) (string, error)

Types

type ExecRunOpts added in v2.6.0

type ExecRunOpts struct {
	// Redactor redacts tokens from the output
	Redactor func(text string) string
	// TimeoutBehavior configures what to do in case of timeout
	TimeoutBehavior argoexec.TimeoutBehavior
}

Jump to

Keyboard shortcuts

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