runner

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Opt

type Opt func(r *Runner)

Opt is a functional option for Runner.

func WithLogger

func WithLogger(logger *zerolog.Logger) Opt

WithLogger sets the logger for the Runner.

func WithStderr

func WithStderr(stderr io.Writer) Opt

WithStderr sets the writer to which the GitHub runner writes its stderr.

func WithStdout

func WithStdout(stdout io.Writer) Opt

WithStdout sets the writer to which the GitHub runner writes its stdout.

type Runner

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

Runner represents a virtual machine agent that's responsible for running the actual GitHub runner.

func New

func New(config string, opts ...Opt) *Runner

New creates a new Runner.

func (*Runner) Run

func (r *Runner) Run(ctx context.Context) error

Start starts the GitHub runner. This requires the GitHub runner to be configured first. If the GitHub runner is already running, this is a no-op.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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