inspect

package
v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyMap

type KeyMap struct {
	viewport.KeyMap
	Top    key.Binding
	Bottom key.Binding
	Env    key.Binding
}

KeyMap extends the viewport keys with jumps to the start and end and the environment toggle.

type Model

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

Model is the inspect pane. It holds no client and performs no I/O; details are set by the caller as they arrive.

func New

func New() Model

func (Model) KeyMap

func (m Model) KeyMap() KeyMap

KeyMap returns the pane's key bindings for the help footer. The help of the environment toggle follows its state.

func (Model) SetDark

func (m Model) SetDark(dark bool) Model

SetDark adapts the section titles to a dark or light terminal background.

func (Model) SetDetails

func (m Model) SetDetails(d container.Details) Model

SetDetails shows d and clears any error. The scroll position is kept, so a refresh doesn't lose the user's place.

func (Model) SetErr

func (m Model) SetErr(err error) Model

SetErr shows err above the details, which are kept if a refresh fails.

func (Model) SetSize

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

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

func (Model) Start

func (m Model) Start() Model

Start clears the pane for a new container and hides the environment again.

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