autobuild

package
v2.34.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: AGPL-3.0 Imports: 29 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package autobuild contains logic for scheduling workspace builds in the background.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

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

Executor automatically starts or stops workspaces.

func NewExecutor

New returns a new wsactions executor.

func (*Executor) Run

func (e *Executor) Run()

Run will cause executor to start or stop workspaces on every tick from its channel. It will stop when its context is Done, or when its channel is closed.

func (*Executor) WithStatsChannel

func (e *Executor) WithStatsChannel(ch chan<- Stats) *Executor

WithStatsChannel will cause Executor to push a RunStats to ch after every tick.

type Stats

type Stats struct {
	Transitions map[uuid.UUID]database.WorkspaceTransition
	Elapsed     time.Duration
	Errors      map[uuid.UUID]error
}

Stats contains information about one run of Executor.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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