internal

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2025 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StringsFlag

func StringsFlag(name string, value []string, usage string) *[]string

Types

type CollectorMonitorModel

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

CollectorMonitorModel is a model that renders the information of a collector.

func NewCollectorMonitorModel

func NewCollectorMonitorModel(collector metrics.Collector, numSamples int) CollectorMonitorModel

NewCollectorMonitorModel creates a new CollectorMonitorModel.

func (CollectorMonitorModel) Init

func (m CollectorMonitorModel) Init() tea.Cmd

func (CollectorMonitorModel) Update

func (CollectorMonitorModel) View

func (m CollectorMonitorModel) View(width int) string

View renders the spark line.

func (CollectorMonitorModel) Width

func (m CollectorMonitorModel) Width() int

Width returns the width of the longest metric (name, value and unit).

type CollectorMonitorModelMsg

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

type ContainerMonitorModel

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

func NewContainerMonitorModel

func NewContainerMonitorModel(ctx context.Context, client client.APIClient, containerNames []string) ContainerMonitorModel

func (ContainerMonitorModel) Init

func (m ContainerMonitorModel) Init() tea.Cmd

func (ContainerMonitorModel) Update

func (ContainerMonitorModel) View

func (m ContainerMonitorModel) View() string

type ContainerMonitorModelMsg

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

type LogModel

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

LogModel displays a log stream. It reads lines from an io.Reader and displays them in a scrolling view.

func NewLogModel

func NewLogModel(in io.Reader, displaySize int) LogModel

NewLogModel is the constructor for LogModel.

func (LogModel) HasContent

func (m LogModel) HasContent() bool

func (LogModel) Init

func (m LogModel) Init() tea.Cmd

func (LogModel) Update

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

func (LogModel) View

func (m LogModel) View() string

type LogModelMsg

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

type ProgressTimerModel

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

ProgressTimerModel is a model that combines a timer and a progress bar. It's useful for showing a progress bar that fills up over time.

func NewProgressTimerModel

func NewProgressTimerModel(timeout time.Duration, interval time.Duration, progressOpts ...progress.Option) ProgressTimerModel

func (ProgressTimerModel) Init

func (m ProgressTimerModel) Init() tea.Cmd

func (ProgressTimerModel) Update

func (ProgressTimerModel) View

func (m ProgressTimerModel) View() string

Jump to

Keyboard shortcuts

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