Documentation ¶
Index ¶
Constants ¶
View Source
const ( TabsBarHeight = 3 HelpBarHeight = 3 FullScreen = -1 )
View Source
const (
TimeFormat = "2006-01-02 15:04:05"
)
Variables ¶
This section is empty.
Functions ¶
func GetTextWithLen ¶
Types ¶
type App ¶
type App struct { CurrentNamespace string CurrentTab TabItem Styles *themes.Styles KeyMap *KeyMap GUI GUI // contains filtered or unexported fields }
func (*App) AddUpdateNamespaceCallback ¶
func (app *App) AddUpdateNamespaceCallback(fn func())
func (*App) OnUpdateNamespace ¶
func (app *App) OnUpdateNamespace()
func (*App) ResizeAreas ¶
func (app *App) ResizeAreas()
type KeyMap ¶
type KeyMap struct { Tab key.Binding ShiftTab key.Binding Up key.Binding Down key.Binding PrevPage key.Binding NextPage key.Binding FocusRight key.Binding FocusLeft key.Binding Select key.Binding Help key.Binding HelpShort key.Binding Quit key.Binding }
func (KeyMap) FullWithFocus ¶ added in v0.0.2
func (KeyMap) ShortWithFocus ¶ added in v0.0.2
type TabItem ¶
type TabItem int
TabItem is kind of identifier for tabs. It differs from `elements/tab` which is responsible for look and style, and which is data agnostic. TabItem, on the contrary, represents a concrete tab with a concrete title and related with a specific content.
const ( NamespacesTab TabItem = iota DeploymentsTab PodsTab AnyTab // used for elements that don't belong to any tab. As example, tabs themselves. )
TabItem tabs.
func GetTabItems ¶
func GetTabItems() []TabItem
GetTabItems returns the list of all available (visually) tabs.
Click to show internal directories.
Click to hide internal directories.