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 ¶ added in v0.4.26
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 Endpoint ¶
func NewEndpoint ¶
func NewEndpointWithUser ¶
NewEndpoint creates an Endpoint from a string that contains a user, host and port. Both User and Port are optional (depending on context). The host can be a domain name, IPv4 address or IPv6 address. If it's an IPv6, it must be enclosed in square brackets
Click to show internal directories.
Click to hide internal directories.