ui

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App added in v0.2.0

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

func NewApp added in v0.2.0

func NewApp(ctx context.Context, client *docker.Client, defaultSort config.SortField) App

func (App) Init added in v0.2.0

func (a App) Init() tea.Cmd

func (App) Update added in v0.2.0

func (a App) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (App) View added in v0.2.0

func (a App) View() string

type Destroy added in v0.2.0

type Destroy interface {
	// Destroy performs cleanup operations
	Destroy()
}

Destroy is an interface for pages that need cleanup when navigating away. Pages implementing this interface will have their Destroy method called when the user navigates away from the page.

type PageType added in v0.2.0

type PageType int
const (
	List PageType = iota
	Log
)

type StatusBar added in v0.2.0

type StatusBar interface {
	// StatusBar returns the rendered status bar string
	StatusBar() string
}

StatusBar is an interface for pages that display a status bar. Pages implementing this interface will have their height reduced by 1 to account for the status bar when window size is calculated.

Directories

Path Synopsis
components
pages
log

Jump to

Keyboard shortcuts

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