opensshlib

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildLocalForwardPlan

func BuildLocalForwardPlan(cfg Config, listenHost, listenPort, targetHost, targetPort string) providerapi.ConnectorPlan

func BuildSFTPTransportPlan

func BuildSFTPTransportPlan(cfg Config) providerapi.ConnectorPlan

func BuildShellPlan

func BuildShellPlan(cfg Config) providerapi.ConnectorPlan

Types

type Config

type Config struct {
	SSHPath               string
	Host                  string
	User                  string
	Port                  string
	IdentityFile          string
	SSHConfigFile         string
	UserKnownHostsFile    string
	StrictHostKeyChecking string
	BatchMode             bool
	ForwardAgent          bool
	ExtraOptions          []string
}

func ConfigFromMaps

func ConfigFromMaps(provider map[string]interface{}, target map[string]interface{}) (Config, error)

type SFTPTransport

type SFTPTransport struct {
	Client *sftp.Client
	// contains filtered or unexported fields
}

func StartSFTPTransport

func StartSFTPTransport(ctx context.Context, cfg Config) (*SFTPTransport, error)

func StartSFTPTransportPlan

func StartSFTPTransportPlan(ctx context.Context, plan providerapi.ConnectorPlan) (*SFTPTransport, error)

func (*SFTPTransport) Close

func (t *SFTPTransport) Close() error

Jump to

Keyboard shortcuts

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