exec2hterm

package
v0.0.0-...-fc21188 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2020 License: Apache-2.0 Imports: 40 Imported by: 0

Documentation

Overview

Source from:

k8s.io/kubernetes/pkg/kubectl/cmd/exec.go

Index

Constants

View Source
const (
	Input          = '0'
	Ping           = '1'
	ResizeTerminal = '2'
)
View Source
const (
	Output         = '0'
	Pong           = '1'
	SetWindowTitle = '2'
	SetPreferences = '3'
	SetReconnect   = '4'
)

Variables

This section is empty.

Functions

func GoTTY

func GoTTY()

func SliceIndex

func SliceIndex(limit int, predicate func(i int) bool) int

Types

type App

type App struct {
	ExecOptions *kubectlcmd.ExecOptions
	PTY         *os.File
	// contains filtered or unexported fields
}

func NewApp

func NewApp(command []string, options *gotty.Options) (*App, error)

func NewCmdExec

func NewCmdExec(clientConfig clientcmd.ClientConfig,
	ns, pod, container string, stdin, tty bool,
	ptyIO *os.File, cmdIn io.Reader, cmdOut, cmdErr io.Writer,
	command []string, options *gotty.Options) (*App, error)

func (*App) Complete

func (app *App) Complete(clientConfig clientcmd.ClientConfig) error

Complete verifies command line arguments and loads data from the command environment

func (*App) Exit

func (app *App) Exit() (firstCall bool)

func (*App) Run

func (app *App) Run() error

type ContextVars

type ContextVars struct {
	Command    string
	Pid        int
	Hostname   string
	RemoteAddr string
}

Jump to

Keyboard shortcuts

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