package exec
import "k8s.io/client-go/util/exec"
Index ¶
- type CodeExitError
- func (e CodeExitError) Error() string
- func (e CodeExitError) ExitStatus() int
- func (e CodeExitError) Exited() bool
- func (e CodeExitError) String() string
- type ExitError
Types ¶
type CodeExitError ¶
CodeExitError is an implementation of ExitError consisting of an error object and an exit code (the upper bits of os.exec.ExitStatus).
func (CodeExitError) Error ¶
func (e CodeExitError) Error() string
func (CodeExitError) ExitStatus ¶
func (e CodeExitError) ExitStatus() int
func (CodeExitError) Exited ¶
func (e CodeExitError) Exited() bool
func (CodeExitError) String ¶
func (e CodeExitError) String() string
type ExitError ¶
ExitError is an interface that presents an API similar to os.ProcessState, which is what ExitError from os/exec is. This is designed to make testing a bit easier and probably loses some of the cross-platform properties of the underlying library.
Source Files ¶
exec.go
- Version
- v0.17.15-rc.0
- Published
- Nov 13, 2020
- Platform
- js/wasm
- Last checked
- 17 seconds ago –
Tools for package owners.