kube

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GlobalState sync.Map
	Version     = "unset"
)

Functions

func ExecuteAndGetResults

func ExecuteAndGetResults(s string) string

func Executor

func Executor(s string)

func GetGlobalState

func GetGlobalState(key string) (interface{}, bool)

添加这个新函数

func Getns

func Getns(key string) string

func Pstop added in v0.1.2

func Pstop()

var ExitChan = make(chan os.Signal, 1)

Types

type Completer

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

func NewCompleter

func NewCompleter(kubeconfigPath string) (*Completer, error)

func (*Completer) Complete

func (c *Completer) Complete(d prompt.Document) ([]prompt.Suggest, pstrings.RuneNumber, pstrings.RuneNumber)

Jump to

Keyboard shortcuts

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