ui

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Default = Theme{
	// contains filtered or unexported fields
}

Functions

This section is empty.

Types

type CertField

type CertField struct {
	Label string
	Value string
}

type HelpViewModel

type HelpViewModel struct {
	// contains filtered or unexported fields
}

func NewHelpViewModel

func NewHelpViewModel(p Pane, tp ThemeProvider) HelpViewModel

func (*HelpViewModel) SetPane

func (h *HelpViewModel) SetPane(p Pane)

func (*HelpViewModel) SetWidth

func (h *HelpViewModel) SetWidth(width int)

func (HelpViewModel) View

func (h HelpViewModel) View() string

type Model

type Model struct {
	// contains filtered or unexported fields
}

func NewModel

func NewModel(manager service.Manager, namespace, name string) (Model, error)

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (Model) View

func (m Model) View() string

type Pane

type Pane int
const (
	LeftPane Pane = iota
	RightPane
)

type Theme

type Theme struct {
	// contains filtered or unexported fields
}

func (Theme) DocStyle

func (t Theme) DocStyle() lipgloss.Style

func (Theme) ErrorModalWithWidth

func (t Theme) ErrorModalWithWidth(width int) lipgloss.Style

func (Theme) Help

func (t Theme) Help(width int) lipgloss.Style

func (Theme) Key

func (t Theme) Key(width int) lipgloss.Style

func (Theme) Pane

func (t Theme) Pane(selected bool, width, height int) lipgloss.Style

func (Theme) SectionHeader

func (t Theme) SectionHeader() lipgloss.Style

func (Theme) Value

func (t Theme) Value(width int) lipgloss.Style

type ThemeProvider

type ThemeProvider interface {
	DocStyle() lipgloss.Style
	ErrorModalWithWidth(width int) lipgloss.Style
	SectionHeader() lipgloss.Style
	Pane(selected bool, width, height int) lipgloss.Style
	Key(width int) lipgloss.Style
	Value(width int) lipgloss.Style
	Help(width int) lipgloss.Style
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL