runnerhost

package
v0.0.0-...-06ec9a8 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, opts Options) error

Run starts sshdev, publishes Pinggy metadata, then blocks until the tunnel exits.

Types

type Metadata

type Metadata struct {
	RequestID  string `json:"request_id"`
	Status     string `json:"status"`
	SSHHost    string `json:"ssh_host"`
	SSHPort    int    `json:"ssh_port"`
	SSHUser    string `json:"ssh_user"`
	SSHCommand string `json:"ssh_command"`
}

Metadata is the structured artifact published back to the SDK.

type Options

type Options struct {
	RequestID      string
	PinggyToken    string
	MetadataPath   string
	StartupTimeout time.Duration
}

Options configures one helper run on the GitHub Actions runner.

type Shell

type Shell struct {
	Path string
	Args []string
}

Shell describes the shell exposed through sshdev.

func SelectShell

func SelectShell() (Shell, error)

SelectShell chooses the first available shell in zsh -> bash -> sh order.

func (Shell) Command

func (s Shell) Command() []string

Command returns the argv for launching the shell directly.

Jump to

Keyboard shortcuts

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