cmdrunner

package
v2.254.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CmdResult

type CmdResult struct {
	IsStdoutTruncated bool
	IsStderrTruncated bool

	// Not using string to avoid copying
	Stdout []byte
	Stderr []byte

	ExitStatus int
}

type CmdRunner

type CmdRunner interface {
	RunCommand(jobName, taskName string, cmd boshsys.Command) (*CmdResult, error)
}

func NewFileLoggingCmdRunner

func NewFileLoggingCmdRunner(
	fs boshsys.FileSystem,
	cmdRunner boshsys.CmdRunner,
	baseDir string,
	truncateLength int64,
) CmdRunner

type FileLoggingCmdRunner

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

func (FileLoggingCmdRunner) RunCommand

func (f FileLoggingCmdRunner) RunCommand(jobName string, taskName string, cmd boshsys.Command) (*CmdResult, error)

type FileLoggingExecErr

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

func (FileLoggingExecErr) Error

func (f FileLoggingExecErr) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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