Documentation
¶
Index ¶
- type BatchExportDialog
- type ConfigManager
- type ExportDialog
- type ExportType
- type FilterControls
- type JobOutputExportDialog
- type PerformanceDashboard
- func (pd *PerformanceDashboard) GetContainer() tview.Primitive
- func (pd *PerformanceDashboard) IsRunning() bool
- func (pd *PerformanceDashboard) SetThresholds(thresholds PerformanceThresholds)
- func (pd *PerformanceDashboard) SetUpdateInterval(interval time.Duration)
- func (pd *PerformanceDashboard) Start() error
- func (pd *PerformanceDashboard) Stop()
- type PerformanceExportDialog
- type PerformanceThresholds
- type SearchBar
- func (sb *SearchBar) GetContainer() tview.Primitive
- func (sb *SearchBar) GetCurrentMatch() (current, total int)
- func (sb *SearchBar) HandleInput(event *tcell.EventKey) *tcell.EventKey
- func (sb *SearchBar) IsActive() bool
- func (sb *SearchBar) SetOnHighlight(callback func(line int))
- func (sb *SearchBar) SetOnSearchResult(callback func(result *streaming.SearchResult))
- func (sb *SearchBar) SetStream(jobID, outputType string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchExportDialog ¶
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 ¶
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 ¶
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 ¶
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 ¶
GetContainer returns the main container
func (*SearchBar) GetCurrentMatch ¶
GetCurrentMatch returns the current match index and total
func (*SearchBar) HandleInput ¶
HandleInput processes keyboard shortcuts
func (*SearchBar) SetOnHighlight ¶
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