k8s

package
v5.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 21 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 interface {
	Attach() error
	TryRun(cmd *cobra.Command, args []string) bool
}

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)

type Version

type Version struct {
	Major      int
	Minor      int
	GitVersion string
}

Jump to

Keyboard shortcuts

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