taskenv

package
v0.0.0-...-03bec22 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Environment

type Environment interface {
	Execute(cmd string, args []string, stdout func(string), stderr func(string)) (*ExecutionResult, error)
	Close() error
}

Environment -

type EnvironmentReader

type EnvironmentReader interface {
	Read(p []byte) (n int, err error)
	Close() error
}

type EnvironmentWriter

type EnvironmentWriter interface {
	Write(p []byte) (n int, err error)
	Close() error
}

type ExecutionResult

type ExecutionResult struct {
	ExitCode int
	StdOut   string
	StdErr   string
}

ExecutionResult - represents a execution

type NativeEnvironment

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

NativeEnvironment -

func CreateNativeEnvironment

func CreateNativeEnvironment(fs taskfs.FileSystem) (*NativeEnvironment, error)

CreateNativeEnvironment -

func (*NativeEnvironment) Close

func (e *NativeEnvironment) Close() error

Close - shuts down the environment (no-op)

func (*NativeEnvironment) Execute

func (e *NativeEnvironment) Execute(cmd string, args []string, stdout func(string), stderr func(string)) (*ExecutionResult, error)

Execute -

Jump to

Keyboard shortcuts

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