Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DryRunCommand ¶
DryRunCommand returns a redacted human-readable command for diagnostics.
Types ¶
type Executor ¶
type Executor interface {
Run(ctx context.Context, args []string, stdin io.Reader) (string, error)
Copy(ctx context.Context, source, destination string) error
}
Executor is the small seam around the system ssh/scp (or wsl.exe) commands. Implementations must never put secrets in argv; stdin is used for credentials.
type Options ¶
type Options struct {
ID string
Server string
Token string
Binary string
BinaryURL string
RemotePath string
DryRun bool
Timeout time.Duration
Executor Executor
Output io.Writer
// ResolveURL / ResolveBinary let callers reuse their configured release mirror.
// They are called only after the remote platform has been probed.
ResolveURL func(context.Context, string, string) (string, error)
ResolveBinary func(context.Context, string, string) (string, error)
}
Options describes one remote worker installation.
type SystemExecutor ¶
SystemExecutor uses only the operating system's ssh/scp or wsl.exe.