environments

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BuildStatusQueued   = "queued"
	BuildStatusBuilding = "building"
	BuildStatusReady    = "ready"
	BuildStatusFailed   = "failed"
	BuildStatusCanceled = "canceled"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandRunner

type CommandRunner interface {
	Run(ctx context.Context, stdin string, name string, args ...string) (string, error)
}

type Manager

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

func NewManager

func NewManager(st store.Store, logger zerolog.Logger) *Manager

func NewManagerWithRunner

func NewManagerWithRunner(st store.Store, logger zerolog.Logger, runner CommandRunner) *Manager

func (*Manager) Enqueue

func (m *Manager) Enqueue(buildID string) error

func (*Manager) Start

func (m *Manager) Start(workers int)

func (*Manager) Stop

func (m *Manager) Stop()

type OSRunner

type OSRunner struct{}

func (OSRunner) Run

func (OSRunner) Run(ctx context.Context, stdin string, name string, args ...string) (string, error)

Jump to

Keyboard shortcuts

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