streamexec

package
v0.0.0-...-39aaf25 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	ErrorLog           string
	OutputLog          string
	IncomingBufferSize int
	Concurrency        int
	ContinueOnErr      bool
	DryRun             bool
	DebugMode          bool
	Params             Params
}

type Params

type Params struct {
	ExecString string
	Retries    int
}

type Result

type Result struct {
	Envvars   []string `json:",omitempty"`
	Params    Params   `json:",omitempty"`
	Stderr    string   `json:",omitempty"`
	Stdout    string   `json:",omitempty"`
	ExitCode  int      `json:",omitempty"`
	Succeeded bool
}

func (Result) Error

func (r Result) Error() string

func (Result) Structured

func (r Result) Structured() string

func (Result) Text

func (r Result) Text(debug bool) string

type StreamExec

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

func New

func New(inputstream io.ReadCloser, outputstream io.WriteCloser, errStream io.WriteCloser, o Options) *StreamExec

func (*StreamExec) Run

func (s *StreamExec) Run() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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