package
0.0.0-20241210054802-24370beab758
Repository: https://github.com/kubernetes/utils.git
Documentation: pkg.go.dev

# README

Exec

This package provides an interface for os/exec. It makes it easier to mock and replace in tests, especially with the FakeExec struct.

# Packages

No description provided by the author

# Functions

New returns a new Interface which will os/exec to run commands.

# Variables

ErrExecutableNotFound is returned if the executable is not found.

# Structs

CodeExitError is an implementation of ExitError consisting of an error object and an exit code (the upper bits of os.exec.ExitStatus).
ExitErrorWrapper is an implementation of ExitError in terms of os/exec ExitError.

# Interfaces

Cmd is an interface that presents an API that is very similar to Cmd from os/exec.
ExitError is an interface that presents an API similar to os.ProcessState, which is what ExitError from os/exec is.
Interface is an interface that presents a subset of the os/exec API.