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 ¶
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 ¶
TableComponent is the public interface for the snapshot table component.
func NewSnapshotsTable ¶
func NewSnapshotsTable() TableComponent
NewSnapshotsTable creates and returns a new snapshot table component.