Documentation ¶
Index ¶
Constants ¶
View Source
const ( ConfigHistorySize = "history-size" ConfigBind = "bind" ConfigHostKeyFile = "host-key-file" ConfigUser = "user" ConfigPassword = "password" ConfigConnection = "connection" ConnectionFormat = "name=password@host:port" )
View Source
const ( ETX = 0x3 // control-C EOT = 0x4 // control-D BEL = 0x7 BS = 0x8 LF = 0xa CR = 0xd ESC = 0x1b CSI = '[' DEL = 0x7f )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Commander ¶
type Commander struct {
// contains filtered or unexported fields
}
func NewCommander ¶
type Config ¶
type Config struct { HistorySize int `mapstructure:"history-size"` HostKeyFile string `mapstructure:"host-key-file"` Users map[string]User Connections map[string]Connection }
func LoadConfig ¶
func (*Config) AddExtraConnection ¶
type Connection ¶
type HostKeyResolver ¶
type HostKeyResolver struct {
// contains filtered or unexported fields
}
func NewHostKeyResolver ¶
func NewHostKeyResolver(config *Config) *HostKeyResolver
func (*HostKeyResolver) Resolve ¶
func (r *HostKeyResolver) Resolve() string
func (*HostKeyResolver) ResolveOption ¶
func (r *HostKeyResolver) ResolveOption() ssh.Option
type Shell ¶
type Shell struct {
// contains filtered or unexported fields
}
func (*Shell) OutputLine ¶
type SshServer ¶
type SshServer struct {
// contains filtered or unexported fields
}
func NewSshServer ¶
func (*SshServer) ListenAndServe ¶
Click to show internal directories.
Click to hide internal directories.