Documentation
¶
Index ¶
- Constants
- type BIO
- type Docker
- func (dc *Docker) Close() (err error)
- func (dc *Docker) Dial() (err error)
- func (dc *Docker) Init(conf map[string]string)
- func (dc *Docker) IsTTY() bool
- func (dc *Docker) Kind() string
- func (dc *Docker) Ping() (err error)
- func (dc *Docker) Read() (mt int, p []byte, err error)
- func (dc *Docker) ResizeTTY(win ssh.Window) error
- func (dc *Docker) Running() bool
- func (dc *Docker) Write(data []byte) (int, error)
- func (dc *Docker) WritePipe() (err error)
- func (dc *Docker) WriteWebtty(data []byte) (int, error)
- type Instance
- func (sess *Instance) CloseBIO()
- func (sess *Instance) CloseUIO()
- func (sess *Instance) Completer() *readline.PrefixCompleter
- func (sess *Instance) Exit()
- func (sess *Instance) Relay()
- func (sess *Instance) SFTP()
- func (sess *Instance) SetPrompt()
- func (sess *Instance) ShowUsage()
- func (sess *Instance) TTY(args url.Values)
- type SSHSess
- func (ss *SSHSess) Close() (err error)
- func (ss *SSHSess) Kind() string
- func (ss *SSHSess) Read(buf []byte) (n int, err error)
- func (ss *SSHSess) ReadPipe() (err error)
- func (ss *SSHSess) Write(b []byte) (n int, err error)
- func (ss *SSHSess) WritePipe() (err error)
- func (ss *SSHSess) WriteString(str string) (err error)
- func (ss *SSHSess) WriteWebtty(b []byte) (n int, err error)
- type UIO
- type User
- type WsSess
- func (ws *WsSess) Close() (err error)
- func (ws *WsSess) Kind() string
- func (ws *WsSess) Read(buf []byte) (n int, err error)
- func (ws *WsSess) ReadPipe() (err error)
- func (ws *WsSess) Write(b []byte) (int, error)
- func (ws *WsSess) WritePipe() (err error)
- func (ws *WsSess) WriteString(str string) (err error)
- func (ws *WsSess) WriteWebtty(b []byte) (n int, err error)
Constants ¶
View Source
const ( Init = 0 Relay = 1 TTY = 2 RelayTTY = 3 SFTP = 4 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BIO ¶
type BIO interface {
Init(conf map[string]string)
// Write .
Ping() (err error)
Write(b []byte) (n int, err error)
//WritePlain(t int, b []byte) (n int, err error)
WriteWebtty(b []byte) (n int, err error)
// WriteString .
//WriteString(str string) (err error)
// Read .
Read() (n int, p []byte, err error)
// Close .
ResizeTTY(win ssh.Window) (err error)
WritePipe() (err error)
Dial() (err error)
Close() (err error)
Running() bool
IsTTY() bool
Kind() string
}
BIO .
type Docker ¶
type Docker struct {
Sess *Instance
UserName string
RoleName string
ContainerName string
PodName string
NodeName string
NodeHost string
NodePort string
Cmd string
WsConn *websocket.Conn
// contains filtered or unexported fields
}
Docker .
type Instance ¶
type Instance struct {
Kind string
User User
Winch chan ssh.Window
UIO UIO
BIO BIO
Mode int
// contains filtered or unexported fields
}
Instance .
func (*Instance) Completer ¶
func (sess *Instance) Completer() *readline.PrefixCompleter
Completer .
type UIO ¶
type UIO interface {
// Write .
Write(b []byte) (n int, err error)
WriteWebtty(b []byte) (n int, err error)
// WriteString .
WriteString(str string) (err error)
// Read .
Read(buf []byte) (n int, err error)
// Close .
WritePipe() (err error)
Close() (err error)
Kind() string
}
UIO .
Click to show internal directories.
Click to hide internal directories.