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.