Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var KafkaCtlVersion string
Functions ¶
Types ¶
type ExitError ¶
ExitError is created whenever your shell command exits with a non-zero exit status
func (ExitError) ExitStatus ¶
type Operation ¶
func NewOperation ¶
func NewOperation() Operation
type PodOverrideType ¶
type PodOverrideType struct { APIVersion string `json:"apiVersion"` Metadata *metadataType `json:"metadata,omitempty"` Spec *specType `json:"spec,omitempty"` }
func (*PodOverrideType) IsEmpty ¶
func (o *PodOverrideType) IsEmpty() bool
type Runner ¶
type Runner interface { ExecuteAndReturn(cmd string, args []string) ([]byte, error) Execute(cmd string, args []string) error }
Runner interface for shell commands
type ShellRunner ¶
type ShellRunner struct {
Dir string
}
func (*ShellRunner) Execute ¶
func (shell *ShellRunner) Execute(binary string, args []string) error
Execute a shell command
func (*ShellRunner) ExecuteAndReturn ¶
func (shell *ShellRunner) ExecuteAndReturn(binary string, args []string) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.