ui

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Adaptive = lipgloss.NewStyle().Foreground(lipgloss.AdaptiveColor{Light: "0", Dark: "15"})
	Border   = lipgloss.NewStyle().BorderStyle(lipgloss.NormalBorder())
	ErrStyle = lipgloss.NewStyle().BorderStyle(lipgloss.DoubleBorder()).BorderForeground(lipgloss.Color("9"))
)

Functions

This section is empty.

Types

type App

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

func New

func New(resource metrics.Resource, interval int, options interface{}, showManagedFields bool, flags *genericclioptions.ConfigFlags) *App

func (App) Init

func (a App) Init() tea.Cmd

func (*App) Update

func (a *App) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (App) View

func (a App) View() string

type Graphs

type Graphs struct {
	Height int
	Width  int
	// contains filtered or unexported fields
}

func NewGraphs

func NewGraphs(conf config.Colors) *Graphs

func (Graphs) Init

func (g Graphs) Init() tea.Cmd

func (*Graphs) SetSize

func (g *Graphs) SetSize(width, height int)

func (*Graphs) Update

func (g *Graphs) Update(msg tea.Msg) (Graphs, tea.Cmd)

func (*Graphs) View

func (g *Graphs) View() string

type Info

type Info struct {
	Height int
	Width  int
	// contains filtered or unexported fields
}

func NewInfo

func NewInfo(conf config.Colors) *Info

func (Info) Init

func (i Info) Init() tea.Cmd

func (*Info) SetContent

func (i *Info) SetContent(s string)

func (*Info) SetSize

func (i *Info) SetSize(width, height int)

func (*Info) Update

func (i *Info) Update(msg tea.Msg) (Info, tea.Cmd)

func (Info) View

func (i Info) View() string

type List

type List struct {
	Height int
	Width  int
	// contains filtered or unexported fields
}

func NewList

func NewList(resource metrics.Resource, conf config.Colors) *List

func (List) GetNamespace added in v0.1.5

func (l List) GetNamespace() string

func (List) GetSelected

func (l List) GetSelected() string

func (List) Init

func (l List) Init() tea.Cmd

func (*List) SetSize

func (l *List) SetSize(width, height int)

func (*List) Update

func (l *List) Update(msg tea.Msg) (List, tea.Cmd)

func (List) View

func (l List) View() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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