Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BackgroundColor = lipgloss.CompleteColor{ TrueColor: "#3B4252", ANSI256: "59", ANSI: "4", } HeaderColor = lipgloss.CompleteColor{ TrueColor: "#5e81ac", ANSI256: "67", ANSI: "4", } SelectedColor = lipgloss.CompleteColor{ TrueColor: "#4C566A", ANSI256: "60", ANSI: "4", } BorderOutlineColor = lipgloss.CompleteColor{ TrueColor: "#8fbcbb", ANSI256: "115", ANSI: "6", } )
View Source
var BaseStyle = lipgloss.NewStyle(). BorderStyle(lipgloss.HiddenBorder()). Background(BackgroundColor)
View Source
var HeaderStyle = table.DefaultStyles().Header.Copy(). Background(HeaderColor). Bold(true)
View Source
var HistoryKeymap = historyKeymap{ Quit: key.NewBinding(key.WithKeys("q"), key.WithHelp("q", "quit")), LineUp: key.NewBinding(key.WithKeys("up", "k"), key.WithHelp("↑/k", "up")), LineDown: key.NewBinding(key.WithKeys("down", "j"), key.WithHelp("↓/j", "down")), PageUp: key.NewBinding(key.WithKeys("pgup"), key.WithHelp("pgup", "page up")), PageDown: key.NewBinding(key.WithKeys("pgdown"), key.WithHelp("pgdn", "page down")), GotoTop: key.NewBinding(key.WithKeys("g"), key.WithHelp("g", "go to start")), GotoBottom: key.NewBinding(key.WithKeys("G"), key.WithHelp("G", "go to end")), SwitchFocus: key.NewBinding(key.WithKeys("tab"), key.WithHelp("tab", "switch focus")), DiffView: key.NewBinding(key.WithKeys("d"), key.WithHelp("d", "toggle diff view")), }
View Source
var SelectedStyle = table.DefaultStyles().Selected.Copy(). Background(SelectedColor). Foreground(lipgloss.NoColor{})
Functions ¶
Types ¶
type ClusterListModel ¶
type ClusterListModel struct {
// contains filtered or unexported fields
}
func NewClusterListModel ¶
func NewClusterListModel() ClusterListModel
func (ClusterListModel) Init ¶
func (m ClusterListModel) Init() tea.Cmd
func (ClusterListModel) View ¶
func (m ClusterListModel) View() string
type ClusterListWatcher ¶
type ClusterListWatcher struct { Messages chan tea.Msg Client managementv1.ManagementClient }
type HistoryUI ¶
type HistoryUI struct {
// contains filtered or unexported fields
}
func NewHistoryUI ¶
func NewHistoryUI[T driverutil.ConfigType[T]](ts []T) *HistoryUI
type Keymap ¶
func NewTableKeymap ¶
func NewTableKeymap() Keymap
Click to show internal directories.
Click to hide internal directories.