app

package
v0.0.0-...-3ec3326 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContainerActionMsg

type ContainerActionMsg struct {
	ContainerID string
	Action      string
	RawAction   string
	Container   *model.Container
	Err         error
}

ContainerActionMsg is sent after a container action completes.

type ExecConnectedMsg

type ExecConnectedMsg struct {
	Session ui.ExecSession
	Err     error
}

ExecConnectedMsg is sent when an exec session is established (or fails).

type FocusArea

type FocusArea int

FocusArea identifies which panel has focus.

const (
	FocusLogs FocusArea = iota
	FocusSidebar
	FocusShell
)

type KeyMap

type KeyMap struct {
	// Global
	Help          key.Binding
	Quit          key.Binding
	Freeze        key.Binding
	Timestamps    key.Binding
	Wrap          key.Binding
	LevelFilter   key.Binding
	Search        key.Binding
	CloseShell    key.Binding
	CycleFocus    key.Binding
	ToggleTheme   key.Binding
	ToggleSidebar key.Binding

	// Sidebar
	SidebarUp     key.Binding
	SidebarDown   key.Binding
	SidebarToggle key.Binding
	SidebarAction key.Binding
	SidebarAll    key.Binding
	SidebarShell  key.Binding
	SidebarHide   key.Binding

	// Log navigation (frozen)
	Up       key.Binding
	Down     key.Binding
	Top      key.Binding
	Bottom   key.Binding
	PageUp   key.Binding
	PageDown key.Binding
	Select   key.Binding
	Copy     key.Binding
	ClearSel key.Binding

	// Search
	SearchNext key.Binding
	SearchPrev key.Binding
}

KeyMap defines all keybindings for the application.

func DefaultKeyMap

func DefaultKeyMap() KeyMap

DefaultKeyMap returns the default keybindings.

type LogMsg

type LogMsg struct {
	Entry *model.LogEntry
	Err   error
}

LogMsg is a Bubbletea message carrying a new log entry.

type Model

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

Model is the root Bubbletea model for the application.

func New

func New(opts Options) Model

New creates a new application model.

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

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

func (Model) View

func (m Model) View() string

View renders the entire TUI.

type NotifClearMsg

type NotifClearMsg struct{}

NotifClearMsg clears a notification.

type Options

type Options struct {
	Project    string
	Containers []*model.Container
	Backend    backend.Backend
	Timestamps bool
	Wrap       bool
	Since      string
}

Options holds startup configuration.

type TickMsg

type TickMsg time.Time

TickMsg triggers periodic UI updates.

Jump to

Keyboard shortcuts

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