containers

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

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 containers pane. It holds no client and performs no I/O.

func New

func New() Model

func (Model) KeyMap

func (m Model) KeyMap() table.KeyMap

KeyMap returns the pane's key bindings for the help footer.

func (Model) Selected

func (m Model) Selected() (container.Short, bool)

Selected returns the container under the cursor.

func (Model) SetDark

func (m Model) SetDark(dark bool) Model

SetDark adapts the column headers and the selection to a dark or light terminal background.

func (Model) SetErr

func (m Model) SetErr(err error) Model

SetErr shows err below the table, or hides the error line if err is nil.

func (Model) SetShorts

func (m Model) SetShorts(shorts []container.Short) Model

SetShorts replaces the rows and keeps the cursor on the same container across refreshes; the table itself only keeps the row index.

func (Model) SetSize

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

SetSize sets the outer size of the pane, including its border.

func (Model) Update

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

func (Model) View

func (m Model) View() string

Jump to

Keyboard shortcuts

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