Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 (m CollectorMonitorModel) Update(msg tea.Msg) (CollectorMonitorModel, tea.Cmd)
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 (ContainerMonitorModel) Init ¶
func (m ContainerMonitorModel) Init() tea.Cmd
func (ContainerMonitorModel) Update ¶
func (m ContainerMonitorModel) Update(msg tea.Msg) (ContainerMonitorModel, tea.Cmd)
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 ¶
NewLogModel is the constructor for LogModel.
func (LogModel) HasContent ¶
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 (ProgressTimerModel) Init ¶
func (m ProgressTimerModel) Init() tea.Cmd
func (ProgressTimerModel) Update ¶
func (m ProgressTimerModel) Update(msg tea.Msg) (ProgressTimerModel, tea.Cmd)
func (ProgressTimerModel) View ¶
func (m ProgressTimerModel) View() string
Click to show internal directories.
Click to hide internal directories.