instances

package
v0.302.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package instances provides a Bubble Tea component for browsing and observing remote Pando instances in a three-panel layout:

  • Left panel: list of running instances discovered via instanceregistry
  • Top-right panel: session list for the selected instance (loaded via RPC)
  • Bottom-right panel: live event stream for the selected session (via ZMQ PUB)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Model

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

Model is the main Bubble Tea model for the instances browser.

func New

func New() Model

New returns a new instances browser model ready to be used.

func (Model) Height

func (m Model) Height() int

Height returns the current height of the model.

func (Model) Init

func (m Model) Init() tea.Cmd

Init starts the polling ticker and performs the first instances fetch.

func (*Model) SetSize

func (m *Model) SetSize(w, h int)

SetSize sets the width and height of the model.

func (Model) Update

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

Update handles all incoming messages for the instances browser.

func (Model) View

func (m Model) View() string

View renders the full three-panel instances browser.

func (Model) Width

func (m Model) Width() int

Width returns the current width of the model.

Jump to

Keyboard shortcuts

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