dashboard

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package dashboard presents pool activity without tying monitoring to a single CLI invocation or task owner. Refreshes request snapshots, not event streams.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(snapshot model.PoolActivitySnapshot, now time.Time) string

Render is also used for plain-text snapshots and keeps remote text out of terminal control sequences. JSON output retains the original metadata.

func Run

func Run(ctx context.Context, fetch Fetch, options Options) error

Types

type Copy

type Copy func(context.Context, string) error

type InvitationStatus

type InvitationStatus func(context.Context, string) (enrollment.Invitation, error)

type Invite

Invite creates an invitation for a name, OS, and startup context. A non-empty proxy selects a worker by stable ID and one of its advertised endpoints.

type ManageMachine

type ManageMachine func(context.Context, string, string) error

type Options

type Options struct {
	Interval         time.Duration
	Timeout          time.Duration
	Output           io.Writer
	GatewayURL       string
	Invite           Invite
	ForceInvite      Invite
	InvitationStatus InvitationStatus
	// ProxyWorkers enables the Direct / Through worker connection step.
	ProxyWorkers ProxyWorkers
	Copy         Copy
	Manage       ManageMachine
	Rename       RenameMachine
	ForceRename  RenameMachine
	Refresh      Fetch // Optional uncached fetch for the user's refresh key.
}

type ProxyWorkers added in v0.9.1

type ProxyWorkers func(context.Context) ([]model.ProxyWorker, error)

ProxyWorkers lists workers advertising gateway proxy endpoints.

type RenameMachine

type RenameMachine func(context.Context, string, string) error

Jump to

Keyboard shortcuts

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