snapshots

package
v0.411.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteSnapshotMsg

type DeleteSnapshotMsg struct {
	SnapshotID string
}

DeleteSnapshotMsg requests that the given snapshot be deleted.

type DetailComponent

type DetailComponent interface {
	tea.Model
	layout.Sizeable
	layout.Bindings
}

DetailComponent is the public interface for the snapshot detail component.

func NewSnapshotsDetails

func NewSnapshotsDetails() DetailComponent

NewSnapshotsDetails creates and returns a new snapshot detail component.

type RevertSnapshotMsg

type RevertSnapshotMsg struct {
	SnapshotID string
}

RevertSnapshotMsg requests that the given snapshot be reverted to disk.

type SelectedSnapshotMsg

type SelectedSnapshotMsg struct {
	ID          string
	SessionID   string
	Type        string
	Description string
	WorkingDir  string
	FileCount   int
	TotalSize   int64
	CreatedAt   int64
}

SelectedSnapshotMsg is published when the user selects a row in the snapshot table.

type SnapshotListMsg

type SnapshotListMsg struct {
	Snapshots []SnapshotRow
}

SnapshotListMsg is sent to populate the table with a fresh snapshot list.

type SnapshotRow

type SnapshotRow struct {
	ID           string
	SessionID    string
	SessionTitle string
	Type         string
	Description  string
	WorkingDir   string
	FileCount    int
	TotalSize    int64
	CreatedAt    int64
}

SnapshotRow is a lightweight representation of a snapshot used for table rendering.

type TableComponent

type TableComponent interface {
	tea.Model
	layout.Sizeable
	layout.Bindings
}

TableComponent is the public interface for the snapshot table component.

func NewSnapshotsTable

func NewSnapshotsTable() TableComponent

NewSnapshotsTable creates and returns a new snapshot table component.

Jump to

Keyboard shortcuts

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