kubernetes/vendor/k8s.io/utils/exec/exec.go

var ErrExecutableNotFound

type Interface

type Cmd

type ExitError

type executor

// New returns a new Interface which will os/exec to run commands.
func New() Interface {}

// Command is part of the Interface interface.
func (executor *executor) Command(cmd string, args ...string) Cmd {}

// CommandContext is part of the Interface interface.
func (executor *executor) CommandContext(ctx context.Context, cmd string, args ...string) Cmd {}

// LookPath is part of the Interface interface
func (executor *executor) LookPath(file string) (string, error) {}

type cmdWrapper

var _

func (cmd *cmdWrapper) SetDir(dir string) {}

func (cmd *cmdWrapper) SetStdin(in io.Reader) {}

func (cmd *cmdWrapper) SetStdout(out io.Writer) {}

func (cmd *cmdWrapper) SetStderr(out io.Writer) {}

func (cmd *cmdWrapper) SetEnv(env []string) {}

func (cmd *cmdWrapper) StdoutPipe() (io.ReadCloser, error) {}

func (cmd *cmdWrapper) StderrPipe() (io.ReadCloser, error) {}

func (cmd *cmdWrapper) Start() error {}

func (cmd *cmdWrapper) Wait() error {}

// Run is part of the Cmd interface.
func (cmd *cmdWrapper) Run() error {}

// CombinedOutput is part of the Cmd interface.
func (cmd *cmdWrapper) CombinedOutput() ([]byte, error) {}

func (cmd *cmdWrapper) Output() ([]byte, error) {}

// Stop is part of the Cmd interface.
func (cmd *cmdWrapper) Stop() {}

func handleError(err error) error {}

type ExitErrorWrapper

var _

// ExitStatus is part of the ExitError interface.
func (eew ExitErrorWrapper) ExitStatus() int {}

type CodeExitError

var _

func (e CodeExitError) Error() string {}

func (e CodeExitError) String() string {}

// Exited is to check if the process has finished
func (e CodeExitError) Exited() bool {}

// ExitStatus is for checking the error code
func (e CodeExitError) ExitStatus() int {}