widgets

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchExportDialog

type BatchExportDialog struct {
	*tview.Flex
	// contains filtered or unexported fields
}

BatchExportDialog handles exporting multiple items

func NewBatchExportDialog

func NewBatchExportDialog(exportType ExportType, items []string) *BatchExportDialog

NewBatchExportDialog creates a new batch export dialog

func (*BatchExportDialog) SetBatchExportHandler

func (bd *BatchExportDialog) SetBatchExportHandler(handler func(indices []int, format export.ExportFormat, path string))

SetBatchExportHandler sets the batch export callback

func (*BatchExportDialog) SetCancelHandler

func (bd *BatchExportDialog) SetCancelHandler(handler func())

SetCancelHandler sets the cancel callback

type ConfigManager

type ConfigManager struct {
	*tview.Flex
	// contains filtered or unexported fields
}

ConfigManager provides a comprehensive configuration management interface

func NewConfigManager

func NewConfigManager(app *tview.Application, configPath string) *ConfigManager

NewConfigManager creates a new configuration manager

func (*ConfigManager) GetCurrentConfig

func (cm *ConfigManager) GetCurrentConfig() *config.Config

GetCurrentConfig returns the current configuration

func (*ConfigManager) HasChanges

func (cm *ConfigManager) HasChanges() bool

HasChanges returns whether there are unsaved changes

func (*ConfigManager) SetCallbacks

func (cm *ConfigManager) SetCallbacks(onSave, onApply func(*config.Config) error, onCancel func())

SetCallbacks sets the callback functions

func (*ConfigManager) SetPages

func (cm *ConfigManager) SetPages(pages *tview.Pages)

SetPages sets the pages manager for modal display

type ExportDialog

type ExportDialog struct {
	*tview.Flex
	// contains filtered or unexported fields
}

ExportDialog handles export functionality for various data types

func NewExportDialog

func NewExportDialog(exportType ExportType) *ExportDialog

NewExportDialog creates a new export dialog

func (*ExportDialog) Focus

func (ed *ExportDialog) Focus(delegate func(p tview.Primitive))

Focus implements tview.Primitive

func (*ExportDialog) SetCancelHandler

func (ed *ExportDialog) SetCancelHandler(handler func())

SetCancelHandler sets the cancel callback

func (*ExportDialog) SetExportHandler

func (ed *ExportDialog) SetExportHandler(handler func(format export.ExportFormat, path string))

SetExportHandler sets the export callback

type ExportType

type ExportType string

ExportType represents the type of data to export

const (
	ExportTypeJobOutput   ExportType = "job_output"
	ExportTypePerformance ExportType = "performance"
)

type FilterControls

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

FilterControls provides a UI widget for managing stream filters

func NewFilterControls

func NewFilterControls(filterManager *streaming.FilteredStreamManager) *FilterControls

NewFilterControls creates a new filter controls widget

func (*FilterControls) Focus

func (fc *FilterControls) Focus()

Focus sets focus to the filter input

func (*FilterControls) GetContainer

func (fc *FilterControls) GetContainer() tview.Primitive

GetContainer returns the main container

func (*FilterControls) HandleInput

func (fc *FilterControls) HandleInput(event *tcell.EventKey) *tcell.EventKey

HandleInput processes keyboard input

func (*FilterControls) Refresh

func (fc *FilterControls) Refresh()

Refresh updates the filter controls display

func (*FilterControls) SetOnFilterChange

func (fc *FilterControls) SetOnFilterChange(callback func())

SetOnFilterChange sets the callback for filter changes

type JobOutputExportDialog

type JobOutputExportDialog struct {
	*ExportDialog
	// contains filtered or unexported fields
}

JobOutputExportDialog specializes ExportDialog for job output

func NewJobOutputExportDialog

func NewJobOutputExportDialog(jobID, jobName, outputType, content string) *JobOutputExportDialog

NewJobOutputExportDialog creates a new job output export dialog

type PerformanceDashboard

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

PerformanceDashboard provides a real-time performance monitoring widget

func NewPerformanceDashboard

func NewPerformanceDashboard(profiler *performance.Profiler, optimizer *performance.Optimizer) *PerformanceDashboard

NewPerformanceDashboard creates a new performance dashboard

func (*PerformanceDashboard) GetContainer

func (pd *PerformanceDashboard) GetContainer() tview.Primitive

GetContainer returns the main dashboard container

func (*PerformanceDashboard) IsRunning

func (pd *PerformanceDashboard) IsRunning() bool

IsRunning returns whether the dashboard is currently running

func (*PerformanceDashboard) SetThresholds

func (pd *PerformanceDashboard) SetThresholds(thresholds PerformanceThresholds)

SetThresholds updates the alerting thresholds

func (*PerformanceDashboard) SetUpdateInterval

func (pd *PerformanceDashboard) SetUpdateInterval(interval time.Duration)

SetUpdateInterval sets the dashboard update frequency

func (*PerformanceDashboard) Start

func (pd *PerformanceDashboard) Start() error

Start begins real-time monitoring

func (*PerformanceDashboard) Stop

func (pd *PerformanceDashboard) Stop()

Stop stops real-time monitoring

type PerformanceExportDialog

type PerformanceExportDialog struct {
	*ExportDialog
	// contains filtered or unexported fields
}

PerformanceExportDialog specializes ExportDialog for performance reports

func NewPerformanceExportDialog

func NewPerformanceExportDialog(profiler *performance.Profiler, optimizer *performance.Optimizer) *PerformanceExportDialog

NewPerformanceExportDialog creates a new performance export dialog

type PerformanceThresholds

type PerformanceThresholds struct {
	CPUWarning      float64
	CPUCritical     float64
	MemoryWarning   float64
	MemoryCritical  float64
	NetworkWarning  float64
	NetworkCritical float64
	OpsWarning      float64
	OpsCritical     float64
}

PerformanceThresholds defines alerting thresholds

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

SearchBar provides a search interface for stream content

func NewSearchBar

func NewSearchBar(streamManager *streaming.FilteredStreamManager) *SearchBar

NewSearchBar creates a new search bar widget

func (*SearchBar) GetContainer

func (sb *SearchBar) GetContainer() tview.Primitive

GetContainer returns the main container

func (*SearchBar) GetCurrentMatch

func (sb *SearchBar) GetCurrentMatch() (current, total int)

GetCurrentMatch returns the current match index and total

func (*SearchBar) HandleInput

func (sb *SearchBar) HandleInput(event *tcell.EventKey) *tcell.EventKey

HandleInput processes keyboard shortcuts

func (*SearchBar) IsActive

func (sb *SearchBar) IsActive() bool

IsActive returns whether search is active

func (*SearchBar) SetOnHighlight

func (sb *SearchBar) SetOnHighlight(callback func(line int))

SetOnHighlight sets the callback for line highlighting

func (*SearchBar) SetOnSearchResult

func (sb *SearchBar) SetOnSearchResult(callback func(result *streaming.SearchResult))

SetOnSearchResult sets the callback for search results

func (*SearchBar) SetStream

func (sb *SearchBar) SetStream(jobID, outputType string)

SetStream sets the current stream to search

Jump to

Keyboard shortcuts

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