backuppage

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() tea.Model

New builds the Backups page panel. The list starts empty; the page switch issues GetBackups, whose result fills it via BackupListMsg.

Types

type Model

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

Model is the Backups page: a merged, newest-first list of stored versions of the compose file and the .env (each tagged with its source), beside a live preview of the selected copy. It is the sole component on its page, so it fills the whole body row and is always focused.

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) SelectedBackupName

func (m Model) SelectedBackupName() string

SelectedBackupName returns the .bak name of the selected row, or "".

func (Model) SelectedSourceFile

func (m Model) SelectedSourceFile() string

SelectedPath returns the live file path the selected row would restore to, derived from the source tag. It is empty when the list is empty or nothing is selected.

func (Model) Update

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

func (Model) View

func (m Model) View() tea.View

Jump to

Keyboard shortcuts

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