ioutil

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

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

Go to latest
Published: Mar 20, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadAll

func ReadAll(r io.Reader) ([]byte, error)

func StderrOnError

func StderrOnError(o *CmdOutputStream) error

Types

type CmdOutputStream

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

CmdOutputStream implements io.Reader by wrapping the line channel

func NewCmdOutputStream

func NewCmdOutputStream(logger log.Logger, cInfo *CommandInfo) *CmdOutputStream

func (*CmdOutputStream) Read

func (o *CmdOutputStream) Read(b []byte) (int, error)

type CommandInfo

type CommandInfo struct {
	CommandStatus <-chan cmd.Status
	Command       *cmd.Cmd
}

type StreamReader

type StreamReader interface {
	Read(b []byte) (int, error) // read stream to buffer with Reader
}

Jump to

Keyboard shortcuts

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