Documentation
¶
Index ¶
- func CheckBeforeStart()
- func CheckInputServerExit(inputServer []string, nameList []string) bool
- func GenerateConfig()
- func GetFullPath(path string) (fullPath string)
- func GetNameList(listConf Config) (nameList []string)
- func ParsePathArg(arg string) (hostType string, path string, result bool)
- func PathWalkDir(dir string) (files []string, err error)
- func ReadSshConfig() (cfg *ssh_config.Config, err error)
- type Config
- type IncludeConfig
- type LogConfig
- type ProxyConfig
- type ServerConfig
- type ServerConfigMaps
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckBeforeStart ¶
func CheckBeforeStart()
func CheckInputServerExit ¶
func GenerateConfig ¶ added in v0.4.4
func GenerateConfig()
func GetFullPath ¶ added in v0.4.3
func GetNameList ¶
func ParsePathArg ¶ added in v0.4.3
func PathWalkDir ¶ added in v0.4.3
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
}
type IncludeConfig ¶
type IncludeConfig struct {
Path string `toml:"path"`
}
type ProxyConfig ¶ added in v0.4.4
type ServerConfig ¶
type ServerConfig struct {
// Basic
Addr string `toml:"addr"`
Port string `toml:"port"`
User string `toml:"user"`
Pass string `toml:"pass"`
Key string `toml:"key"`
// Local command
BeforeCmd string `toml:"before_cmd"`
AfterCmd string `toml:"after_cmd"`
// Proxy
ProxyServer string `toml:"proxy_server"`
Proxy ProxyConfig
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.