ui

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DependencyStatus added in v0.3.0

type DependencyStatus struct {
	Name      string
	Condition string
	State     dag.DisplayState
	Satisfied bool
}

DependencyStatus is one dependency/dependent entry rendered in the Deps tab.

type Model

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

Model is the root Bubble Tea model.

func New

func New(snap *discover.Snapshot, dc *docker.Client) Model

New creates the initial model and starts the Docker polling goroutine.

func (Model) Init

func (m Model) Init() tea.Cmd

Init starts the spinner ticker and begins listening for poll/stats updates.

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

Update routes incoming messages, mutating model state and returning any follow-up commands.

func (Model) View

func (m Model) View() string

View renders the current model state to a string for display.

type Row added in v0.2.0

type Row struct {
	Kind        RowKind
	Label       string
	ProjectName string
	ConfigFiles []string
	Graph       *dag.Graph
	Node        *dag.Node
	Standalone  *discover.Standalone
	ContainerID string
	// contains filtered or unexported fields
}

Row is one line in the unified navigation order.

func BuildRows added in v0.2.0

func BuildRows(snap *discover.Snapshot) []Row

BuildRows flattens a snapshot into render/navigation order.

type RowKind added in v0.2.0

type RowKind int

RowKind identifies a navigable or decorative row in the view.

const (
	RowProjectHeader RowKind = iota
	RowComposeNode
	RowStandaloneHeader
	RowStandalone
	RowSpacer // blank line between project sections (not selectable)
)

Row kind constants for the unified view.

type ServiceInspector added in v0.3.0

type ServiceInspector struct {
	Name         string
	Project      string
	DisplayState dag.DisplayState
	StateLabel   string
	ExitCode     *int
	Image        string
	Ports        []string
	CreatedAgo   string
	ContainerID  string
	WaitingOn    []DependencyStatus
	Dependencies []DependencyStatus
	Dependents   []DependencyStatus
}

ServiceInspector is a normalized, render-ready view of one service, shared by the Deps tab and the doctor/graph tabs' edge-condition lookups.

Jump to

Keyboard shortcuts

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