capture

package
v0.5.22 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Capture

type Capture struct {
	MemoryLimit int
	// contains filtered or unexported fields
}

func NewCapture

func NewCapture() *Capture

func NewCombinedOutputCapture

func NewCombinedOutputCapture(stdout, stderr io.Writer) (captureStdout io.Writer, captureStderr io.Writer, cap *Capture)

func NewCombinedOutputCaptureForProcess

func NewCombinedOutputCaptureForProcess(cmd *exec.Cmd) *Capture

func (*Capture) Close

func (cap *Capture) Close() (err error)

func (*Capture) Output

func (cap *Capture) Output() (io.ReadCloser, error)

func (*Capture) OutputBytes

func (cap *Capture) OutputBytes() ([]byte, error)

func (*Capture) Write

func (cap *Capture) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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