Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthMethodType ¶
type AuthMethodType string
const ( AuthMethodTypeNone AuthMethodType = "none" AuthMethodTypePassword AuthMethodType = "password" AuthMethodTypeKey AuthMethodType = "key" )
type Config ¶
type Config struct {
ServerConfig
JumpServers []ServerConfig
}
func NewDefaultConfig ¶
func NewDefaultConfig() *Config
type ServerConfig ¶
type ServerConfig struct {
Host string
Port int
AuthMethod AuthMethodType
Username string
Password string
Key string
KeyPassphrase string
}
func NewServerConfig ¶
func NewServerConfig() *ServerConfig
Click to show internal directories.
Click to hide internal directories.