runner

package
v0.0.0-...-366c5a6 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Redact

func Redact(a string) redact

Types

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

func NewRunner

func NewRunner(command string, stdout io.Writer, stderr io.Writer) (*Runner, error)

func (*Runner) Execute

func (r *Runner) Execute(args []interface{}) (*bytes.Buffer, *bytes.Buffer, error)

func (*Runner) ExecuteWithEnvVars

func (r *Runner) ExecuteWithEnvVars(env []string, args []interface{}) (*bytes.Buffer, *bytes.Buffer, error)

func (*Runner) ExecuteWithEnvVarsCtx

func (r *Runner) ExecuteWithEnvVarsCtx(ctx context.Context, env []string, args []interface{}) (*bytes.Buffer, *bytes.Buffer, error)

Jump to

Keyboard shortcuts

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