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)
@TODO: 項目のアップデートをする(v0.5.6) @TODO: import処理をできるように考慮する(v0.5.6) @TODO: .ssh/configの読み込み、Parse処理を分離するので、そちらを参照させる(v0.5.6)
Types ¶
type Config ¶
type Config struct {
Log LogConfig
Shell ShellConfig
Include map[string]IncludeConfig
Includes IncludesConfig
Common ServerConfig
Server map[string]ServerConfig
Proxy map[string]ProxyConfig
SshConfigs []string // OpenSsh Configs(@TODO: 多分このままだと指定はできないので、後で指定できるようにする)
}
type IncludeConfig ¶
type IncludeConfig struct {
Path string `toml:"path"`
}
type IncludesConfig ¶ added in v0.5.2
type IncludesConfig struct {
Path []string `toml:"path"`
}
multiple include path
type OpenSshConfig ¶ added in v0.5.5
type OpenSshConfig struct {
Path string `toml:"path"`
ServerConfig
}
@NOTE: this struct is not use... @TODO: そのうち実装する
type ProxyConfig ¶ added in v0.4.4
type ServerConfig ¶
type ServerConfig struct {
// Connect Setting
Addr string `toml:"addr"`
Port string `toml:"port"`
User string `toml:"user"`
// Connect auth Setting
Pass string `toml:"pass"`
Passes []string `toml:"passes"`
Key string `toml:"key"`
KeyPass string `toml:"keypass"`
Keys []string `toml:"keys"` // "keypath::passphase"
Cert string `toml:"cert"`
CertKey string `toml:"certkey"`
CertKeyPass string `toml:"certkeypass"`
AgentAuth bool `toml:"agentauth"`
SSHAgentUse bool `toml:"ssh_agent"`
SSHAgentKeyPath []string `toml:"ssh_agent_key"` // "keypath::passphase"
PKCS11Use bool `toml:"pkcs11"`
PKCS11Provider string `toml:"pkcs11provider"` // PKCS11 Provider PATH
PKCS11PIN string `toml:"pkcs11pin"` // PKCS11 PIN code
// pre | post command setting
PreCmd string `toml:"pre_cmd"`
PostCmd string `toml:"post_cmd"`
// proxy setting
ProxyType string `toml:"proxy_type"`
Proxy string `toml:"proxy"`
ProxyCommand string `toml:"proxy_cmd"` // OpenSSH type proxy setting
// local rcfile setting
LocalRcUse string `toml:"local_rc"` // yes|no (default: yes)
LocalRcPath []string `toml:"local_rc_file"`
LocalRcDecodeCmd string `toml:"local_rc_decode_cmd"`
// port forwarding setting
PortForwardLocal string `toml:"port_forward_local"` // port forward (local). "host:port"
PortForwardRemote string `toml:"port_forward_remote"` // port forward (remote). "host:port"
Note string `toml:"note"`
}
type ShellConfig ¶ added in v0.5.3
type ShellConfig struct {
// prompt
Prompt string `toml:"PROMPT"` // lssh shell prompt
OPrompt string `toml:"OPROMPT"` // lssh shell output prompt
// message,title etc...
Title string `toml:"title"`
// history file
HistoryFile string `toml:"histfile"`
// pre | post command setting
PreCmd string `toml:"pre_cmd"`
PostCmd string `toml:"post_cmd"`
}
Click to show internal directories.
Click to hide internal directories.