sshtransport

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: May 24, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeTarget

func NormalizeTarget(target string) string

func ShellQuote

func ShellQuote(value string) string

func TargetDigest

func TargetDigest(target string) string

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client runs SSH transport primitives and returns evidence-safe results.

func New

func New(config Config) (*Client, error)

New constructs a Client with conservative OpenSSH defaults.

func (*Client) Connect

func (c *Client) Connect(ctx context.Context) OperationResult

func (*Client) Download

func (c *Client) Download(ctx context.Context, remotePath, localPath string) OperationResult

func (*Client) Run

func (c *Client) Run(ctx context.Context, command string) OperationResult

func (*Client) TargetDigest

func (c *Client) TargetDigest() string

func (*Client) Upload

func (c *Client) Upload(ctx context.Context, localPath, remotePath string) OperationResult

type Config

type Config struct {
	Target       string
	IdentityFile string
	SSHBinary    string
	SCPBinary    string
	ExtraArgs    []string
	Timeout      time.Duration
	RedactValues []string
	Runner       transport.Runner
}

Config describes an OpenSSH-backed transport endpoint.

type OperationResult

type OperationResult = transport.OperationResult

type Redactor

type Redactor = transport.Redactor

func NewRedactor

func NewRedactor(values []string) Redactor

type RunOutput

type RunOutput = transport.RunOutput

type Runner

type Runner = transport.Runner

Jump to

Keyboard shortcuts

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