Documentation
¶
Index ¶
- func NormalizeTarget(target string) string
- func ShellQuote(value string) string
- func TargetDigest(target string) string
- type Client
- func (c *Client) Connect(ctx context.Context) OperationResult
- func (c *Client) Download(ctx context.Context, remotePath, localPath string) OperationResult
- func (c *Client) Run(ctx context.Context, command string) OperationResult
- func (c *Client) TargetDigest() string
- func (c *Client) Upload(ctx context.Context, localPath, remotePath string) OperationResult
- type Config
- type OperationResult
- type Redactor
- type RunOutput
- type Runner
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NormalizeTarget ¶
func ShellQuote ¶
func TargetDigest ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client runs SSH transport primitives and returns evidence-safe results.
func (*Client) Download ¶
func (c *Client) Download(ctx context.Context, remotePath, localPath string) OperationResult
func (*Client) TargetDigest ¶
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 ¶
func NewRedactor ¶
Click to show internal directories.
Click to hide internal directories.