sshx

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeRemotePath

func NormalizeRemotePath(value, fallback string) string

Types

type Config

type Config struct {
	Host           string
	Port           int
	User           string
	PrivateKey     []byte
	KnownHostsPath string
	HostKeyPolicy  string
	ProxyJump      string
}

func Load

func Load(value *model.SSHConnection, secrets *store.SecretStore) (Config, error)

func (Config) Command

func (c Config) Command(ctx context.Context, environment map[string]string, remoteArgs ...string) (*exec.Cmd, func(), error)

func (Config) DisplayURL

func (c Config) DisplayURL() string

func (Config) DockerDialer

func (c Config) DockerDialer(socketPath string) func(context.Context, string, string) (net.Conn, error)

func (Config) DockerDialerWithEnvironment

func (c Config) DockerDialerWithEnvironment(endpoint string, environment map[string]string) func(context.Context, string, string) (net.Conn, error)

func (Config) Run

func (c Config) Run(ctx context.Context, stdin []byte, environment map[string]string, remoteArgs ...string) ([]byte, []byte, error)

func (Config) RunShell

func (c Config) RunShell(ctx context.Context, stdin []byte, command string) ([]byte, []byte, error)

func (Config) Target

func (c Config) Target() string

func (Config) Validate

func (c Config) Validate() error

Jump to

Keyboard shortcuts

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