executor

package
v1.8.39 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: Apache-2.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 CommandOutput

type CommandOutput struct {
	ResultOutput bytes.Buffer
	ErrorOutput  bytes.Buffer
}

CommandOutput is RunCommand result object

type CommandRunner

type CommandRunner struct {
}

func CreateNewCommandRunner

func CreateNewCommandRunner() *CommandRunner

func (*CommandRunner) BuildCommandDescription

func (c *CommandRunner) BuildCommandDescription(dir string, name string, args []string) string

BuildCommandDescription executes Cmd strcuts and returns a human-readable description of it

func (*CommandRunner) CreateTempFile

func (c *CommandRunner) CreateTempFile(tempFilePrefix string, content []byte) (string, error)

func (*CommandRunner) ExecuteKustomizeBin

func (c *CommandRunner) ExecuteKustomizeBin(args []string) ([]byte, error)

func (*CommandRunner) RunCommand

func (c *CommandRunner) RunCommand(name string, args []string) (CommandOutput, error)

RunCommand executes Cmd struct with given named program and arguments and returns CommandOutput

Jump to

Keyboard shortcuts

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