Documentation
¶
Index ¶
- func Run(reader *checkpointtool.CheckpointReader) error
- type AccountListProvider
- type CheckpointListProvider
- type State
- func (s *State) Accounts() []*checkpointtool.AccountInfo
- func (s *State) ClearAccountFilter()
- func (s *State) DataEntries() []*checkpointtool.ObjectEntryInfo
- func (s *State) Entries() []*checkpoint.CheckpointEntry
- func (s *State) FilteredTables() []*checkpointtool.TableInfo
- func (s *State) GetAccountFilter() int64
- func (s *State) GetSelectedTable() *checkpointtool.TableInfo
- func (s *State) HasAccountFilter() bool
- func (s *State) Mode() ViewMode
- func (s *State) SelectTable(tableID uint64) error
- func (s *State) SetAccountFilter(accountID int64)
- func (s *State) SwitchToTables() error
- func (s *State) TombEntries() []*checkpointtool.ObjectEntryInfo
- type TableDetailProvider
- type TablesListProvider
- type UnifiedModel
- type ViewMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(reader *checkpointtool.CheckpointReader) error
Run starts the interactive checkpoint viewer
Types ¶
type AccountListProvider ¶
type AccountListProvider struct {
// contains filtered or unexported fields
}
func (*AccountListProvider) GetOverview ¶
func (p *AccountListProvider) GetOverview() string
func (*AccountListProvider) GetRowNums ¶
func (p *AccountListProvider) GetRowNums() []string
func (*AccountListProvider) GetRows ¶
func (p *AccountListProvider) GetRows() [][]string
type CheckpointListProvider ¶
type CheckpointListProvider struct {
// contains filtered or unexported fields
}
func (*CheckpointListProvider) GetOverview ¶
func (p *CheckpointListProvider) GetOverview() string
func (*CheckpointListProvider) GetRowNums ¶
func (p *CheckpointListProvider) GetRowNums() []string
func (*CheckpointListProvider) GetRows ¶
func (p *CheckpointListProvider) GetRows() [][]string
type State ¶
type State struct {
// contains filtered or unexported fields
}
State manages checkpoint viewer state
func NewState ¶
func NewState(reader *checkpointtool.CheckpointReader) *State
NewState creates a new state
func (*State) Accounts ¶
func (s *State) Accounts() []*checkpointtool.AccountInfo
Accounts returns unique accounts from tables
func (*State) ClearAccountFilter ¶
func (s *State) ClearAccountFilter()
ClearAccountFilter clears account filter
func (*State) DataEntries ¶
func (s *State) DataEntries() []*checkpointtool.ObjectEntryInfo
func (*State) Entries ¶
func (s *State) Entries() []*checkpoint.CheckpointEntry
func (*State) FilteredTables ¶
func (s *State) FilteredTables() []*checkpointtool.TableInfo
FilteredTables returns tables filtered by account id
func (*State) GetAccountFilter ¶
func (*State) GetSelectedTable ¶
func (s *State) GetSelectedTable() *checkpointtool.TableInfo
GetSelectedTable returns the currently selected table
func (*State) HasAccountFilter ¶
func (*State) SelectTable ¶
SelectTable loads object entries for selected table
func (*State) SetAccountFilter ¶
SetAccountFilter sets account filter
func (*State) SwitchToTables ¶
SwitchToTables loads tables for selected entry
func (*State) TombEntries ¶
func (s *State) TombEntries() []*checkpointtool.ObjectEntryInfo
type TableDetailProvider ¶
type TableDetailProvider struct {
// contains filtered or unexported fields
}
func (*TableDetailProvider) GetOverview ¶
func (p *TableDetailProvider) GetOverview() string
func (*TableDetailProvider) GetRowNums ¶
func (p *TableDetailProvider) GetRowNums() []string
func (*TableDetailProvider) GetRows ¶
func (p *TableDetailProvider) GetRows() [][]string
type TablesListProvider ¶
type TablesListProvider struct {
// contains filtered or unexported fields
}
func (*TablesListProvider) GetOverview ¶
func (p *TablesListProvider) GetOverview() string
func (*TablesListProvider) GetRowNums ¶
func (p *TablesListProvider) GetRowNums() []string
func (*TablesListProvider) GetRows ¶
func (p *TablesListProvider) GetRows() [][]string
type UnifiedModel ¶
type UnifiedModel struct {
// contains filtered or unexported fields
}
UnifiedModel uses GenericPage for all views
func NewUnifiedModel ¶
func NewUnifiedModel(reader *checkpointtool.CheckpointReader) *UnifiedModel
NewUnifiedModel creates a new unified model
func (*UnifiedModel) ClearObjectToOpen ¶
func (m *UnifiedModel) ClearObjectToOpen()
ClearObjectToOpen clears the object to open flag
func (*UnifiedModel) GetObjectToOpen ¶
func (m *UnifiedModel) GetObjectToOpen() string
GetObjectToOpen returns the object path to open (if any)
func (*UnifiedModel) GetRangeToOpen ¶
func (m *UnifiedModel) GetRangeToOpen() *ckputil.TableRange
GetRangeToOpen returns the range to open (if any)
func (*UnifiedModel) Init ¶
func (m *UnifiedModel) Init() tea.Cmd
func (*UnifiedModel) View ¶
func (m *UnifiedModel) View() string