executor

package
v0.0.0-...-4cbcc9d Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ExecutionLogicalOpNone executionLogicalOp = 0
	ExecutionLogicalOpOr   executionLogicalOp = iota
	ExecutionLogicalOpAnd  executionLogicalOp = iota
)

Variables

View Source
var DefaultFprintWr io.Writer = os.Stderr

Functions

func Execute

func Execute(workingDir string, c Collector, prog string, args ...string) (int, int, error)

Types

type ClientCollector

type ClientCollector struct {
	Logger *log.Logger
	*client.Client
}

func (*ClientCollector) Collect

func (cc *ClientCollector) Collect(exitCode int, args, workingDir, stderr string) (int, int, error)

type Collector

type Collector interface {
	Collect(exitCode int, args, workingDir, stderr string) (r int, p int, err error)
}

type StderrMonitor

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

func (*StderrMonitor) Flush

func (wr *StderrMonitor) Flush()

func (*StderrMonitor) Write

func (wr *StderrMonitor) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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