client-go: k8s.io/client-go/util/exec Index | Files

package exec

import "k8s.io/client-go/util/exec"

Index

Package Files

exec.go

type CodeExitError Uses

type CodeExitError struct {
    Err  error
    Code int
}

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 Uses

func (e CodeExitError) Error() string

func (CodeExitError) ExitStatus Uses

func (e CodeExitError) ExitStatus() int

func (CodeExitError) Exited Uses

func (e CodeExitError) Exited() bool

func (CodeExitError) String Uses

func (e CodeExitError) String() string

type ExitError Uses

type ExitError interface {
    String() string
    Error() string
    Exited() bool
    ExitStatus() int
}

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.

Package exec is imported by 3 packages. Updated 2017-10-17. Refresh now. Tools for package owners.