Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DefaultDashboardKeys = DashboardKeyMap{ Help: key.NewBinding( key.WithKeys("ctrl+h"), key.WithHelp("ctrl+h", "toggle help"), ), Quit: key.NewBinding( key.WithKeys("q", "ctrl+c"), key.WithHelp("q, ctrl+c", "quit"), ), }
var DefaultTabberKeys = TabberKeyMap{ TabRight: key.NewBinding( key.WithKeys("tab"), key.WithHelp("tab", "change tabs to the right"), ), TabLeft: key.NewBinding( key.WithKeys("shift+tab"), key.WithHelp("shift+tab", "change tabs to the left"), ), }
Functions ¶
This section is empty.
Types ¶
type CompositeHelpKeyMap ¶ added in v0.3.0
type CompositeHelpKeyMap struct {
// contains filtered or unexported fields
}
func NewCompositeHelpKeyMap ¶ added in v0.3.0
func NewCompositeHelpKeyMap(helps ...help.KeyMap) *CompositeHelpKeyMap
func (CompositeHelpKeyMap) FullHelp ¶ added in v0.3.0
func (ch CompositeHelpKeyMap) FullHelp() [][]key.Binding
FullHelp returns keybindings for the expanded help view. It's part of the key.Map interface.
func (CompositeHelpKeyMap) ShortHelp ¶ added in v0.3.0
func (ch CompositeHelpKeyMap) ShortHelp() []key.Binding
ShortHelp returns keybindings to be shown in the mini help view. It's part of the key.Map interface.
type Dashboard ¶
type Dashboard struct {
// contains filtered or unexported fields
}
Dashboard is a tea.Model implementation for viewing Kubernetes information based on a declarative dashboard description
func NewDashboard ¶
type DashboardKeyMap ¶
func (DashboardKeyMap) FullHelp ¶
func (k DashboardKeyMap) FullHelp() [][]key.Binding
FullHelp returns keybindings for the expanded help view. It's part of the key.Map interface.
func (DashboardKeyMap) ShortHelp ¶
func (k DashboardKeyMap) ShortHelp() []key.Binding
ShortHelp returns keybindings to be shown in the mini help view. It's part of the key.Map interface.
type Tabber ¶ added in v0.2.0
type Tabber struct {
// contains filtered or unexported fields
}
type TabberKeyMap ¶ added in v0.2.0
func (TabberKeyMap) FullHelp ¶ added in v0.3.0
func (k TabberKeyMap) FullHelp() [][]key.Binding
FullHelp returns keybindings for the expanded help view. It's part of the key.Map interface.
func (TabberKeyMap) ShortHelp ¶ added in v0.3.0
func (k TabberKeyMap) ShortHelp() []key.Binding
ShortHelp returns keybindings to be shown in the mini help view. It's part of the key.Map interface.