Documentation
¶
Index ¶
- Constants
- func ClassifyConnError(err error) string
- func ConnectToClient(connCtx context.Context, opts *SSHOpts, currentClient *ssh.Client, ...) (*ssh.Client, int32, error)
- func CpWshToRemote(ctx context.Context, client *ssh.Client, clientOs string, clientArch string) error
- func GetClientPlatform(ctx context.Context, shell genconn.ShellClient) (string, string, error)
- func GetClientPlatformFromOsArchStr(ctx context.Context, osArchStr string) (string, string, error)
- func IsPowershell(shellPath string) bool
- func NormalizeConfigPattern(pattern string) string
- func ParseProfiles() []string
- func SimpleMessageFromPossibleConnectionError(err error) string
- func WaveSshConfigUserSettings() *ssh_config.UserSettings
- type ConnectionDebugInfo
- type ConnectionError
- type HostKeyAlgorithms
- type SSHOpts
- type UserInputCancelError
Constants ¶
View Source
const ( ConnErrCode_ConfigParse = "config-parse" ConnErrCode_ConfigDefault = "config-default" ConnErrCode_ProxyDepth = "proxy-depth" ConnErrCode_ProxyParse = "proxy-parse" ConnErrCode_SecretStore = "secret-error" ConnErrCode_SecretNotFound = "secret-notfound" ConnErrCode_KnownHostsNone = "knownhosts-none" ConnErrCode_KnownHostsFmt = "knownhosts-format" ConnErrCode_Dial = "dial-error" ConnErrCode_HostKeyRevoked = "hostkey-revoked" ConnErrCode_HostKeyChanged = "hostkey-changed" ConnErrCode_HostKeyVerify = "hostkey-verify" ConnErrCode_UserCancelled = "user-cancelled" ConnErrCode_UserTimeout = "user-timeout" ConnErrCode_AuthFailed = "auth-failed" ConnErrCode_Unknown = "unknown" )
View Source
const SshProxyJumpMaxDepth = 10
Variables ¶
This section is empty.
Functions ¶
func ClassifyConnError ¶ added in v0.14.0
func ConnectToClient ¶
func CpWshToRemote ¶ added in v0.11.0
func GetClientPlatform ¶ added in v0.11.0
returns (os, arch, error) guaranteed to return a supported platform
func GetClientPlatformFromOsArchStr ¶ added in v0.11.0
func IsPowershell ¶
func NormalizeConfigPattern ¶
func ParseProfiles ¶ added in v0.11.0
func ParseProfiles() []string
func SimpleMessageFromPossibleConnectionError ¶ added in v0.11.0
func WaveSshConfigUserSettings ¶ added in v0.9.0
func WaveSshConfigUserSettings() *ssh_config.UserSettings
Types ¶
type ConnectionDebugInfo ¶ added in v0.9.0
type ConnectionError ¶ added in v0.9.0
type ConnectionError struct {
*ConnectionDebugInfo
Err error
}
func (ConnectionError) Error ¶ added in v0.9.0
func (ce ConnectionError) Error() string
func (ConnectionError) Unwrap ¶ added in v0.14.0
func (ce ConnectionError) Unwrap() error
type HostKeyAlgorithms ¶
type SSHOpts ¶
type UserInputCancelError ¶
type UserInputCancelError struct {
Err error
}
func (UserInputCancelError) Error ¶
func (uice UserInputCancelError) Error() string
func (UserInputCancelError) Unwrap ¶ added in v0.14.0
func (uice UserInputCancelError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.