Documentation
¶
Index ¶
- Variables
- type Item
- type Logs
- type LogsKeyMap
- type RowInfo
- type Table
- func (m *Table) AddOrUpdate(u *unstructured.Unstructured)
- func (m *Table) Columns() []buoytypes.Column
- func (m *Table) DeleteRow(uid types.UID)
- func (m *Table) FetchContentForIndex(index int) (string, error)
- func (m *Table) Help() help.KeyMap
- func (m *Table) Init() tea.Cmd
- func (m *Table) Name() string
- func (m *Table) SetError(err error)
- func (m *Table) SetLister(lister cache.GenericLister)
- func (m *Table) SetScope(scope meta.RESTScopeName)
- func (m *Table) TableDefinition() *buoytypes.Table
- func (m *Table) Update(msg tea.Msg) (tea.Model, tea.Cmd)
- func (m *Table) View() string
- type TableKeyMap
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultLogsKeys = LogsKeyMap{ Search: key.NewBinding( key.WithKeys("/"), key.WithHelp("/", "open a prompt to search logs"), ), SubmitSearch: key.NewBinding( key.WithKeys("enter"), key.WithHelp("enter", "submit search prompt"), ), QuitSearch: key.NewBinding( key.WithKeys("esc"), key.WithHelp("esc", "exit search mode"), ), ToggleStrict: key.NewBinding( key.WithKeys("ctrl+s"), key.WithHelp("ctrl+s", "toggle strict search mode"), ), }
View Source
var DefaultTableKeys = TableKeyMap{ ViewModeToggle: key.NewBinding( key.WithKeys("v"), key.WithHelp("v", "toggle viewing contents of selected resource"), ), }
Functions ¶
This section is empty.
Types ¶
type Item ¶
type Item struct {
// contains filtered or unexported fields
}
Item is a tea.Model implementation that represents an item panel
func (*Item) ItemDefinition ¶ added in v0.5.0
func (*Item) SetContent ¶
type Logs ¶
type Logs struct {
// contains filtered or unexported fields
}
Logs is a tea.Model implementation that represents an item panel
func (*Logs) AddContent ¶
func (*Logs) LogDefinition ¶ added in v0.5.0
type LogsKeyMap ¶ added in v0.3.0
type LogsKeyMap struct { Search key.Binding SubmitSearch key.Binding QuitSearch key.Binding ToggleStrict key.Binding }
func (LogsKeyMap) FullHelp ¶ added in v0.3.0
func (k LogsKeyMap) FullHelp() [][]key.Binding
FullHelp returns keybindings for the expanded help view. It's part of the key.Map interface.
func (LogsKeyMap) ShortHelp ¶ added in v0.3.0
func (k LogsKeyMap) ShortHelp() []key.Binding
ShortHelp returns keybindings to be shown in the mini help view. It's part of the key.Map interface.
type RowInfo ¶ added in v0.3.0
type RowInfo struct { Row tbl.Row Identifier *types.NamespacedName // Is this necessary? Can the index change on different iterations? Index int }
type Table ¶
type Table struct {
// contains filtered or unexported fields
}
Table is a tea.Model implementation that represents a table panel
func (*Table) AddOrUpdate ¶ added in v0.3.0
func (m *Table) AddOrUpdate(u *unstructured.Unstructured)
func (*Table) FetchContentForIndex ¶ added in v0.3.0
func (*Table) SetLister ¶ added in v0.5.0
func (m *Table) SetLister(lister cache.GenericLister)
func (*Table) SetScope ¶ added in v0.5.0
func (m *Table) SetScope(scope meta.RESTScopeName)
func (*Table) TableDefinition ¶ added in v0.5.0
type TableKeyMap ¶ added in v0.3.0
func (TableKeyMap) FullHelp ¶ added in v0.3.0
func (k TableKeyMap) FullHelp() [][]key.Binding
FullHelp returns keybindings for the expanded help view. It's part of the key.Map interface.
func (TableKeyMap) ShortHelp ¶ added in v0.3.0
func (k TableKeyMap) ShortHelp() []key.Binding
ShortHelp returns keybindings to be shown in the mini help view. It's part of the key.Map interface.
Click to show internal directories.
Click to hide internal directories.