k8s

package
v1.24.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KafkaCtlVersion string

Functions

func Indent

func Indent(text, indent string) string

indents a block of text with an indent string

Types

type ExitError

type ExitError struct {
	Message string
	Code    int
}

ExitError is created whenever your shell command exits with a non-zero exit status

func (ExitError) Error

func (e ExitError) Error() string

func (ExitError) ExitStatus

func (e ExitError) ExitStatus() int

type Operation

type Operation struct {
	// contains filtered or unexported fields
}

func (*Operation) Attach

func (operation *Operation) Attach() error

func (*Operation) Run

func (operation *Operation) Run(cmd *cobra.Command, args []string) error

func (*Operation) TryRun

func (operation *Operation) TryRun(cmd *cobra.Command, args []string) 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)

type Version

type Version struct {
	Major int
	Minor int
	Patch int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL