cmdrunner

package
v2.929.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: Apache-2.0 Imports: 7 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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