Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPrivateKeyAuthMethod ¶
func GetPrivateKeyAuthMethod(keyBytes []byte, passphrase *string) (ssh.AuthMethod, error)
func GetTunnelAuthMethodFromSshConfig ¶
func GetTunnelAuthMethodFromSshConfig(auth *mgmtv1alpha1.SSHAuthentication) (ssh.AuthMethod, error)
Auth Method is optional and will return nil if there is no valid method. Will only return error if unable to parse the private key into an auth method
Types ¶
type SSHDialer ¶
type SSHDialer struct {
// contains filtered or unexported fields
}
func NewLazySSHDialer ¶
func NewLazySSHDialer(addr string, cfg *ssh.ClientConfig) *SSHDialer
func NewSSHDialer ¶
Click to show internal directories.
Click to hide internal directories.