Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNameList ¶
func ReadSshConfig ¶ added in v0.4.4
func ReadSshConfig() (cfg *ssh_config.Config, err error)
Types ¶
type Config ¶
type Config struct {
Log LogConfig
Include map[string]IncludeConfig
Common ServerConfig
Server map[string]ServerConfig
Proxy map[string]ProxyConfig
}
type IncludeConfig ¶
type IncludeConfig struct {
Path string `toml:"path"`
}
type ProxyConfig ¶ added in v0.4.4
type ProxyConfigMaps ¶ added in v0.5.0
type ProxyConfigMaps map[string]ProxyConfig
type ServerConfig ¶
type ServerConfig struct {
Addr string `toml:"addr"`
Port string `toml:"port"`
User string `toml:"user"`
Pass string `toml:"pass"`
Key string `toml:"key"`
KeyPass string `toml:"keypass"`
PreCmd string `toml:"pre_cmd"`
PostCmd string `toml:"post_cmd"`
ProxyType string `toml:"proxy_type"`
Proxy string `toml:"proxy"`
Note string `toml:"note"`
}
type ServerConfigMaps ¶ added in v0.4.4
type ServerConfigMaps map[string]ServerConfig
Click to show internal directories.
Click to hide internal directories.