tui

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Item

type Item struct {
	ID      string
	Label   string // display name
	Detail  string // extra detail (image tag, volume driver, etc.)
	Size    int64
	AgeStr  string
	Project string
	Kind    ItemKind
	InUse   bool // for cache items
}

Item is a unified reclaimable resource.

type ItemKind

type ItemKind int
const (
	KindImage ItemKind = iota
	KindContainer
	KindVolume
	KindCache
)

type Model

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

func NewModel

func NewModel(dc *docker.Client, dryRun bool, minAgeDays int) Model

NewModel creates the initial TUI 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

Jump to

Keyboard shortcuts

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