kube

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIOExecutor

func NewIOExecutor(rw io.ReadWriter, rows, cols uint16, args []string, event *audit.Event, kubectlBin string, auditLogger *zap.Logger) prompt.Executor

NewIOExecutor returns executor tied to io ReadWriter

Types

type Completer

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

Completer is prompt completer

func NewCompleter

func NewCompleter(ctx context.Context, kubeConfig []byte) (*Completer, error)

NewCompleter returns new prompt completer for kubeconfig file

func (*Completer) Complete

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

Complete completes the prompt input

type Config

type Config struct {
	KubeConfigBytes []byte
}

Jump to

Keyboard shortcuts

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