remote

package
v0.11.0-beta.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 23, 2025 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const SshProxyJumpMaxDepth = 10

Variables

This section is empty.

Functions

func ConnectToClient

func ConnectToClient(connCtx context.Context, opts *SSHOpts, currentClient *ssh.Client, jumpNum int32, connFlags *wconfig.ConnKeywords) (*ssh.Client, int32, error)

func CpWshToRemote added in v0.11.0

func CpWshToRemote(ctx context.Context, client *ssh.Client, clientOs string, clientArch string) error

func GetClientPlatform added in v0.11.0

func GetClientPlatform(ctx context.Context, shell genconn.ShellClient) (string, string, error)

returns (os, arch, error) guaranteed to return a supported platform

func GetClientPlatformFromOsArchStr added in v0.11.0

func GetClientPlatformFromOsArchStr(ctx context.Context, osArchStr string) (string, string, error)

func IsPowershell

func IsPowershell(shellPath string) bool

func NormalizeConfigPattern

func NormalizeConfigPattern(pattern string) string

func ParseProfiles added in v0.11.0

func ParseProfiles() []string

func SimpleMessageFromPossibleConnectionError added in v0.11.0

func SimpleMessageFromPossibleConnectionError(err error) string

func WaveSshConfigUserSettings added in v0.9.0

func WaveSshConfigUserSettings() *ssh_config.UserSettings

Types

type ConnectionDebugInfo added in v0.9.0

type ConnectionDebugInfo struct {
	CurrentClient *ssh.Client
	NextOpts      *SSHOpts
	JumpNum       int32
}

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

type HostKeyAlgorithms

type HostKeyAlgorithms = func(hostWithPort string) (algos []string)

type SSHOpts

type SSHOpts struct {
	SSHHost string `json:"sshhost"`
	SSHUser string `json:"sshuser"`
	SSHPort string `json:"sshport,omitempty"`
}

func ParseOpts

func ParseOpts(input string) (*SSHOpts, error)

func (SSHOpts) String

func (opts SSHOpts) String() string

type UserInputCancelError

type UserInputCancelError struct {
	Err error
}

func (UserInputCancelError) Error

func (uice UserInputCancelError) Error() string

Directories

Path Synopsis
Description: This package is used to create a connection to AWS services.
Description: This package is used to create a connection to AWS services.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL