remote

package
v0.8.0-beta.10 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 27 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnectToClient

func ConnectToClient(connCtx context.Context, opts *SSHOpts) (*ssh.Client, error)

func CpHostToRemote

func CpHostToRemote(client *ssh.Client, sourcePath string, destPath string) error

func DetectShell

func DetectShell(client *ssh.Client) (string, error)

func DialContext

func DialContext(ctx context.Context, network string, addr string, config *ssh.ClientConfig) (*ssh.Client, error)

func GetClientArch

func GetClientArch(client *ssh.Client) (string, error)

func GetClientOs

func GetClientOs(client *ssh.Client) (string, error)

func GetHomeDir

func GetHomeDir(client *ssh.Client) string

func GetWshPath

func GetWshPath(client *ssh.Client) string

func GetWshVersion

func GetWshVersion(client *ssh.Client) (string, error)

func InstallClientRcFiles

func InstallClientRcFiles(client *ssh.Client) error

func IsPowershell

func IsPowershell(shellPath string) bool

func NormalizeConfigPattern

func NormalizeConfigPattern(pattern string) string

Types

type HostKeyAlgorithms

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

type SSHOpts

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

func ParseOpts

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

func (SSHOpts) String

func (opts SSHOpts) String() string

type SshKeywords

type SshKeywords struct {
	User                         string
	HostName                     string
	Port                         string
	IdentityFile                 []string
	BatchMode                    bool
	PubkeyAuthentication         bool
	PasswordAuthentication       bool
	KbdInteractiveAuthentication bool
	PreferredAuthentications     []string
	AddKeysToAgent               bool
	IdentityAgent                string
}

type UserInputCancelError

type UserInputCancelError struct {
	Err error
}

func (UserInputCancelError) Error

func (uice UserInputCancelError) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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