Documentation
¶
Index ¶
- Constants
- Variables
- type DockerTty
- func (tty *DockerTty) Close()
- func (tty *DockerTty) DockerExecAttach(name string, ec *types.ExecConfig) error
- func (tty *DockerTty) DockerExecResize(w, h int64) error
- func (tty *DockerTty) DockerGetK8sContainers(pod, container string) ([]types.Container, error)
- func (tty *DockerTty) DockerInit(host string, version string, httpClient *http.Client, ...) error
- func (tty *DockerTty) Start()
- func (tty *DockerTty) Stdio(stdin io.Reader, stdout, stderr io.Writer)
- func (tty *DockerTty) Wc(wc *Wc) *DockerTty
- type ExecConfig
- type InitMessage
- type ResizeOption
- type Wc
Constants ¶
View Source
const ( // UnknownInput Unknown message type, maybe sent by a bug UnknownInput = '0' // Input User input typically from a keyboard Input = '1' // Ping to the server Ping = '2' // ResizeTerminal Notify that the browser size has been changed ResizeTerminal = '3' )
View Source
const ( // UnknownOutput unknown message type, maybe set by a bug UnknownOutput = '0' // Output Normal output to the terminal Output = '1' // Pong to the browser Pong = '2' // SetWindowTitle Set window title of the terminal SetWindowTitle = '3' // SetPreferences Set terminal preference SetPreferences = '4' // SetReconnect Make terminal to reconnect SetReconnect = '5' )
Variables ¶
View Source
var Protocols = []string{"webtty"}
Protocols string
Functions ¶
This section is empty.
Types ¶
type DockerTty ¶
type DockerTty struct { User string Role string ID string Hr types.HijackedResponse Stdin io.Reader Stdout io.Writer Stderr io.Writer Kind int SFTP bool Writable bool Cols int64 Rows int64 Ctx context.Context Cf context.CancelFunc // contains filtered or unexported fields }
DockerTty .
func (*DockerTty) DockerExecAttach ¶
func (tty *DockerTty) DockerExecAttach(name string, ec *types.ExecConfig) error
DockerExecAttach .
func (*DockerTty) DockerExecResize ¶
DockerExecResize .
func (*DockerTty) DockerGetK8sContainers ¶
DockerGetK8sContainers .
func (*DockerTty) DockerInit ¶
func (tty *DockerTty) DockerInit(host string, version string, httpClient *http.Client, httpHeaders map[string]string) error
DockerInit .
type InitMessage ¶
type InitMessage struct { Arguments string `json:"Arguments,omitempty"` AuthToken string `json:"AuthToken,omitempty"` }
InitMessage .
Click to show internal directories.
Click to hide internal directories.