ide

package
v0.0.0-...-b6fe2e7 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Overview

Package ide contains UI and state management code for the TUI rebuild debugger.

Index

Constants

View Source
const (
	LogsBucketID ctxKey = iota
	MetadataBucketID
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

type Instance struct {
	ID  string
	URL *url.URL
	// contains filtered or unexported fields
}

Instance represents a single run of the rebuilder container.

func (*Instance) Dead

func (in *Instance) Dead() bool

Dead returns whether the Instance is dead.

func (*Instance) Kill

func (in *Instance) Kill()

Kill does a non-blocking shutdown of the Instance container.

func (*Instance) Run

func (in *Instance) Run(ctx context.Context)

Run triggers the startup of the Instance. Should only be called once to initialize an Instance.

func (*Instance) Serving

func (in *Instance) Serving() bool

Serving returns whether the Instance is serving.

func (*Instance) Wait

func (in *Instance) Wait(ctx context.Context) <-chan error

Wait provides a way of getting alerted when the Instance initialization is complete.

type Rebuilder

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

Rebuilder manages a local instance of the rebuilder docker container.

func (*Rebuilder) Attach

func (rb *Rebuilder) Attach(ctx context.Context) error

Attach opens a new tmux window that's attached to the rebuilder container.

func (*Rebuilder) Instance

func (rb *Rebuilder) Instance() *Instance

Instance returns the underlying rebuilder instance currently in use.

func (*Rebuilder) Kill

func (rb *Rebuilder) Kill()

Kill does a non-blocking shutdown of the rebuilder container.

func (*Rebuilder) Restart

func (rb *Rebuilder) Restart(ctx context.Context)

Restart restarts the rebuilder container.

func (*Rebuilder) RunBench

func (rb *Rebuilder) RunBench(ctx context.Context, set benchmark.PackageSet, runID string) (<-chan schema.Verdict, error)

RunBench executes the benchmark against the local rebuilder.

func (*Rebuilder) RunLocal

func (rb *Rebuilder) RunLocal(ctx context.Context, r rundex.Rebuild, opts RunLocalOpts)

RunLocal runs the rebuilder for the given example.

type RunLocalOpts

type RunLocalOpts struct {
	Strategy *schema.StrategyOneOf
}

type TuiApp

type TuiApp struct {
	Ctx context.Context
	// contains filtered or unexported fields
}

TuiApp represents the entire IDE, containing UI widgets and worker processes.

func NewTuiApp

func NewTuiApp(ctx context.Context, fireClient rundex.Reader, firestoreOpts rundex.FetchRebuildOpts, benchmarkDir string, buildDefs rebuild.LocatableAssetStore) *TuiApp

NewTuiApp creates a new tuiApp object.

func (*TuiApp) Run

func (t *TuiApp) Run() error

Run runs the underlying tview app.

Jump to

Keyboard shortcuts

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