{"modulePath":"github.com/wavetermdev/waveterm","version":"v0.14.5","isLatest":true,"isStandardLibrary":false,"goos":"linux","goarch":"amd64","docs":"# package remote\n\n## Constants\n\n```go\nconst (\n\tConnErrCode_ConfigParse    = \"config-parse\"\n\tConnErrCode_ConfigDefault  = \"config-default\"\n\tConnErrCode_ProxyDepth     = \"proxy-depth\"\n\tConnErrCode_ProxyParse     = \"proxy-parse\"\n\tConnErrCode_SecretStore    = \"secret-error\"\n\tConnErrCode_SecretNotFound = \"secret-notfound\"\n\tConnErrCode_KnownHostsNone = \"knownhosts-none\"\n\tConnErrCode_KnownHostsFmt  = \"knownhosts-format\"\n\tConnErrCode_Dial           = \"dial-error\"\n\tConnErrCode_ProxyJumpDial  = \"dial-proxy-jump\"\n\tConnErrCode_HostKeyRevoked = \"hostkey-revoked\"\n\tConnErrCode_HostKeyChanged = \"hostkey-changed\"\n\tConnErrCode_HostKeyVerify  = \"hostkey-verify\"\n\tConnErrCode_UserCancelled  = \"user-cancelled\"\n\tConnErrCode_UserTimeout    = \"user-timeout\"\n\tConnErrCode_AuthFailed     = \"auth-failed\"\n\tConnErrCode_Unknown        = \"unknown\"\n)\n```\n\n```go\nconst (\n\tDialSubCode_DNS             = \"dns\"\n\tDialSubCode_Refused         = \"refused\"\n\tDialSubCode_Timeout         = \"timeout\"\n\tDialSubCode_ContextCanceled = \"context-canceled\"\n\tDialSubCode_NoRoute         = \"no-route\"\n\tDialSubCode_HostUnreach     = \"host-unreachable\"\n\tDialSubCode_NetUnreach      = \"net-unreachable\"\n\tDialSubCode_ConnReset       = \"conn-reset\"\n\tDialSubCode_PermDenied      = \"perm-denied\"\n\tDialSubCode_ProxyJump       = \"proxy-jump\"\n\tDialSubCode_Other           = \"other\"\n)\n```\nDial error subcodes for more granular classification\n\n```go\nconst (\n\tAuthSubCode_UnableToAuth    = \"unable-to-auth\"\n\tAuthSubCode_HandshakeFailed = \"handshake-failed\"\n)\n```\nAuth error subcodes for more granular classification\n\n```go\nconst SshProxyJumpMaxDepth = 10\n```\n\n## Functions\n\n```go\nfunc ClassifyConnError(err error) (string, string)\n```\n\n```go\nfunc ClassifyDialErrorSubCode(err error) string\n```\nClassifyDialErrorSubCode provides more granular classification of dial errors to help identify root causes (DNS, VPN, timeouts, etc.)\n\n```go\nfunc ConnectToClient(connCtx context.Context, opts *SSHOpts, currentClient *ssh.Client, jumpNum int32, connFlags *wconfig.ConnKeywords) (*ssh.Client, int32, error)\n```\n\n```go\nfunc CpWshToRemote(ctx context.Context, client *ssh.Client, clientOs string, clientArch string) error\n```\n\n```go\nfunc GetClientPlatform(ctx context.Context, shell genconn.ShellClient) (string, string, error)\n```\nreturns (os, arch, error) guaranteed to return a supported platform\n\n```go\nfunc GetClientPlatformFromOsArchStr(ctx context.Context, osArchStr string) (string, string, error)\n```\n\n```go\nfunc IsPowershell(shellPath string) bool\n```\n\n```go\nfunc NormalizeConfigPattern(pattern string) string\n```\n\n```go\nfunc ParseProfiles() []string\n```\n\n```go\nfunc SimpleMessageFromPossibleConnectionError(err error) string\n```\n\n```go\nfunc WaveSshConfigUserSettings() *ssh_config.UserSettings\n```\n\n## Types\n\n```go\ntype ConnectionDebugInfo struct {\n\tCurrentClient *ssh.Client\n\tNextOpts      *SSHOpts\n\tJumpNum       int32\n}\n```\n\n```go\ntype ConnectionError struct {\n\t*ConnectionDebugInfo\n\tErr error\n}\n```\n\n```go\nfunc (ce ConnectionError) Error() string\n```\n\n```go\nfunc (ce ConnectionError) Unwrap() error\n```\n\n```go\ntype HostKeyAlgorithms = func(hostWithPort string) (algos []string)\n```\n\n```go\ntype SSHOpts struct {\n\tSSHHost string `json:\"sshhost\"`\n\tSSHUser string `json:\"sshuser\"`\n\tSSHPort string `json:\"sshport,omitempty\"`\n}\n```\n\n```go\nfunc ParseOpts(input string) (*SSHOpts, error)\n```\n\n```go\nfunc (opts SSHOpts) String() string\n```\n\n```go\ntype UserInputCancelError struct {\n\tErr error\n}\n```\n\n```go\nfunc (uice UserInputCancelError) Error() string\n```\n\n```go\nfunc (uice UserInputCancelError) Unwrap() error\n```\n\n","path":"github.com/wavetermdev/waveterm/pkg/remote","name":"remote","synopsis":"","isRedistributable":true}
