Documentation
¶
Index ¶
- Constants
- Variables
- func GetUserHome() string
- func GhodssYAMLToMapInterface(in string) (map[string]interface{}, error)
- func InterfaceToYAML(in interface{}) (string, error)
- func SplitBySep(s string) []interface{}
- func YAMLToInterface(in string, out interface{}) error
- type Dialer
- type Host
- type Pool
- type PoolConfig
Constants ¶
View Source
const ( // DefaultPort const DefaultPort = "22" // DefaultHostTimeout const DefaultHostTimeout = "30s" // DefaultHostKeepAlive const DefaultHostKeepAlive = "30s" )
View Source
const DefaultPoolTimeout = "300s"
DefaultPoolTimeout const
Variables ¶
View Source
var DefaultKeyPath string
DefaultKeyPath var
Functions ¶
func GhodssYAMLToMapInterface ¶
GhodssYAMLToMapInterface func
Types ¶
type Dialer ¶
type Dialer struct {
// contains filtered or unexported fields
}
Dialer struct
type Host ¶
type Host struct {
Address string `yaml:"address" json:"address,omitempty"`
Port string `yaml:"port" json:"port,omitempty"`
User string `yaml:"user" json:"user,omitempty"`
Pass string `yaml:"password" json:"password,omitempty"`
SSHAgentAuth bool `yaml:"ssh_agent_auth,omitempty" json:"sshAgentAuth,omitempty"`
SSHKey string `yaml:"ssh_key" json:"sshKey,omitempty"`
SSHKeyPass string `yaml:"ssh_key_pass" json:"sshKeyPass,omitempty"`
SSHKeyPath string `yaml:"ssh_key_path" json:"sshKeyPath,omitempty"`
SSHCert string `yaml:"ssh_cert" json:"sshCert,omitempty"`
SSHCertPath string `yaml:"ssh_cert_path" json:"sshCertPath,omitempty"`
SSHTimeout string `yaml:"ssh_timeout" json:"sshTimeout,omitempty"`
SSHKeepAlive string `yaml:"ssh_keep_alive" json:"sshKeepAlive,omitempty"`
// contains filtered or unexported fields
}
Host struct
type PoolConfig ¶
type PoolConfig struct {
Hosts []Host `yaml:"hosts" json:"hosts,omitempty"`
Cmds []string `yaml:"cmds" json:"cmds,omitempty"`
CmdFiles []string `yaml:"cmd_files,omitempty" json:"cmd_files,omitempty"`
Timeout string `yaml:"timeout,omitempty" json:"timeout,omitempty"`
}
PoolConfig struct
func NewPoolConfigFromYAML ¶
func NewPoolConfigFromYAML(config string) (*PoolConfig, error)
NewPoolConfigFromYAML func
Click to show internal directories.
Click to hide internal directories.