terminal

package
v11.4.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProxyTerminal

func ProxyTerminal(timeoutCh, disconnectCh, proxyStopCh chan error, proxyFunc func())

Types

type Conn

type Conn interface {
	Start(w http.ResponseWriter, r *http.Request, timeoutCh, disconnectCh chan error)
	Close() error
}

type InteractiveTerminal

type InteractiveTerminal interface {
	Connect() (Conn, error)
}

type MockConn

type MockConn struct {
	mock.Mock
}

MockConn is an autogenerated mock type for the Conn type

func (*MockConn) Close

func (_m *MockConn) Close() error

Close provides a mock function with given fields:

func (*MockConn) Start

func (_m *MockConn) Start(w http.ResponseWriter, r *http.Request, timeoutCh chan error, disconnectCh chan error)

Start provides a mock function with given fields: w, r, timeoutCh, disconnectCh

type MockInteractiveTerminal

type MockInteractiveTerminal struct {
	mock.Mock
}

MockInteractiveTerminal is an autogenerated mock type for the InteractiveTerminal type

func (*MockInteractiveTerminal) Connect

func (_m *MockInteractiveTerminal) Connect() (Conn, error)

Connect provides a mock function with given fields:

Jump to

Keyboard shortcuts

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