Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSSHClient ¶
func NewSSHClient(conf ClientConfig) (*ssh.Client, error)
Types ¶
type AuthMethod ¶
type AuthMethod string
const ( PASSWORD AuthMethod = "password" PUBLICKEY AuthMethod = "publickey" )
type ClientConfig ¶
type ClientConfig struct {
AuthMethod AuthMethod `json:"auth_method"`
Host string `json:"host"`
User string `json:"user"`
Password string `json:"password"`
Key string `json:"key"`
Passphrase string `json:"passphrase"`
Timeout time.Duration `json:"timeout"`
}
func ClientConfigPassword ¶
func ClientConfigPassword(host, user, password string) *ClientConfig
func ClientConfigPublicKey ¶
func ClientConfigPublicKey(host, user, key, passphrase string) *ClientConfig
type MessageResize ¶
Click to show internal directories.
Click to hide internal directories.