Documentation
¶
Overview ¶
Package sshconfig contains SSH related models and methods.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsEnabled ¶ added in v1.5.1
func IsEnabled() bool
IsEnabled - checks if SSH config feature is enabled in application state.
func IsUserDefinedPath ¶ added in v1.5.0
func IsUserDefinedPath() bool
IsUserDefinedPath - checks if user re-defined SSH config file path.
Types ¶
type Config ¶
type Config struct {
// Values which should be extracted from 'ssh -G <hostname>' command:
// 1. 'hostname'
// 2. 'identityfile'
// 3. 'port'
// 4. 'user'
Hostname string
IdentityFile string
Port string
User string
}
Config struct contains values loaded from ~/.ssh_config file.
func StubConfig ¶
func StubConfig() *Config
StubConfig - returns a stub SSH config. It is used on application startup when build application state and no hosts yet available. Consider to run real ssh process to request a config. See 'message.RunProcessLoadSSHConfig'.
Click to show internal directories.
Click to hide internal directories.