tui

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package tui provides the Terminal User Interface for Berth.

Package tui provides the Terminal User Interface for Berth.

Package tui provides the Terminal User Interface for Berth.

Package tui provides the Terminal User Interface for Berth.

Package tui provides the Terminal User Interface for Berth.

Package tui provides the Terminal User Interface for Berth.

Package tui provides the Terminal User Interface for Berth.

Package tui provides the Terminal User Interface for Berth.

Package tui provides the Terminal User Interface for Berth.

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 represents the main application model.

func InitialModel

func InitialModel() Model

InitialModel returns an initialized Model with default values.

func (Model) Init

func (m Model) Init() tea.Cmd

Init initializes the Bubble Tea program.

func (Model) Update

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

Update handles incoming messages and updates the model accordingly.

func (Model) View

func (m Model) View() string

View renders the main TUI view.

type Theme

type Theme struct {
	AppStyle           lipgloss.Style
	HeaderStyle        lipgloss.Style
	FooterStyle        lipgloss.Style
	StatusMessageStyle lipgloss.Style
	TableSelectedStyle lipgloss.Style
	TableHeaderStyle   lipgloss.Style
}

Theme defines the color and styling for the application.

func DefaultTheme

func DefaultTheme() Theme

DefaultTheme returns a new Theme with default styles.

type ViewType

type ViewType int

ViewType represents the different views in the TUI.

const (
	ContainersView ViewType = iota
	ImagesView
	VolumesView
	NetworksView
	SystemView
	InspectView
	LogsView
)

Jump to

Keyboard shortcuts

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