Documentation
¶
Index ¶
- func ColoredState(state, stateType string) string
- func FormatCPUUsage(used, total int) string
- func FormatDuration(d string) string
- func FormatDurationDetailed(d time.Duration) string
- func FormatMemory(mb int64) string
- func FormatTimeDuration(d time.Duration) string
- func GetJobStateColor(state string) string
- func GetNodeStateColor(state string) string
- func GetPartitionStateColor(state string) string
- func OLD_showJobTemplateSelector(v *JobsView)
- func ShowHelpModal(pages *tview.Pages)
- func TruncateString(s string, maxLen int) string
- type AccountsView
- func (v *AccountsView) Hints() []string
- func (v *AccountsView) Init(ctx context.Context) error
- func (v *AccountsView) OnFocus() error
- func (v *AccountsView) OnKey(event *tcell.EventKey) *tcell.EventKey
- func (v *AccountsView) OnLoseFocus() error
- func (v *AccountsView) Refresh() error
- func (v *AccountsView) Render() tview.Primitive
- func (v *AccountsView) SetApp(app *tview.Application)
- func (v *AccountsView) SetPages(pages *tview.Pages)
- func (v *AccountsView) Stop() error
- type Alert
- type BaseView
- func (v *BaseView) GetApp() *tview.Application
- func (v *BaseView) GetLastError() error
- func (v *BaseView) Hints() []string
- func (v *BaseView) Init(ctx context.Context) error
- func (v *BaseView) IsRefreshing() bool
- func (v *BaseView) Name() string
- func (v *BaseView) OnFocus() error
- func (v *BaseView) OnKey(event *tcell.EventKey) *tcell.EventKey
- func (v *BaseView) OnLoseFocus() error
- func (v *BaseView) Refresh() error
- func (v *BaseView) Render() tview.Primitive
- func (v *BaseView) SetApp(app *tview.Application)
- func (v *BaseView) SetLastError(err error)
- func (v *BaseView) SetRefreshing(refreshing bool)
- func (v *BaseView) Stop() error
- func (v *BaseView) Title() string
- type BatchOperation
- type BatchOperationsView
- type ConfigView
- func (cv *ConfigView) Focus(delegate func(p tview.Primitive))
- func (cv *ConfigView) GetConfigPath() string
- func (cv *ConfigView) GetCurrentConfig() *config.Config
- func (cv *ConfigView) HasUnsavedChanges() bool
- func (cv *ConfigView) Refresh()
- func (cv *ConfigView) SetConfigChangedCallback(callback func(*config.Config))
- type DashboardView
- func (v *DashboardView) Hints() []string
- func (v *DashboardView) Init(ctx context.Context) error
- func (v *DashboardView) OnFocus() error
- func (v *DashboardView) OnKey(event *tcell.EventKey) *tcell.EventKey
- func (v *DashboardView) OnLoseFocus() error
- func (v *DashboardView) Refresh() error
- func (v *DashboardView) Render() tview.Primitive
- func (v *DashboardView) SetPages(pages *tview.Pages)
- func (v *DashboardView) Stop() error
- type EnhancedTerminalView
- func (etv *EnhancedTerminalView) BroadcastCommand(command string) error
- func (etv *EnhancedTerminalView) GetActiveNodes() []string
- func (etv *EnhancedTerminalView) GetTerminalCount() int
- func (etv *EnhancedTerminalView) Hints() []string
- func (etv *EnhancedTerminalView) Init(ctx context.Context) error
- func (etv *EnhancedTerminalView) OnKey(event *tcell.EventKey) *tcell.EventKey
- func (etv *EnhancedTerminalView) Refresh() error
- func (etv *EnhancedTerminalView) Render() tview.Primitive
- func (etv *EnhancedTerminalView) Stop()
- func (etv *EnhancedTerminalView) Update() error
- type FilteredJobOutputView
- type GlobalSearch
- type HealthView
- func (v *HealthView) Hints() []string
- func (v *HealthView) Init(ctx context.Context) error
- func (v *HealthView) OnFocus() error
- func (v *HealthView) OnKey(event *tcell.EventKey) *tcell.EventKey
- func (v *HealthView) OnLoseFocus() error
- func (v *HealthView) Refresh() error
- func (v *HealthView) Render() tview.Primitive
- func (v *HealthView) SetApp(app *tview.Application)
- func (v *HealthView) SetPages(pages *tview.Pages)
- func (v *HealthView) Stop() error
- type HelpView
- type HighlightPatternsView
- type JobDependency
- type JobOutputView
- type JobSubmissionWizard
- type JobTemplate
- type JobTemplateManager
- type JobsView
- func (v *JobsView) Hints() []string
- func (v *JobsView) Init(ctx context.Context) error
- func (v *JobsView) OnFocus() error
- func (v *JobsView) OnKey(event *tcell.EventKey) *tcell.EventKey
- func (v *JobsView) OnLoseFocus() error
- func (v *JobsView) Refresh() error
- func (v *JobsView) Render() tview.Primitive
- func (v *JobsView) SetApp(app *tview.Application)
- func (v *JobsView) SetPages(pages *tview.Pages)
- func (v *JobsView) SetStatusBar(statusBar *components.StatusBar)
- func (v *JobsView) Stop() error
- type ModalHandler
- type NodesView
- func (v *NodesView) Hints() []string
- func (v *NodesView) Init(ctx context.Context) error
- func (v *NodesView) OnFocus() error
- func (v *NodesView) OnKey(event *tcell.EventKey) *tcell.EventKey
- func (v *NodesView) OnLoseFocus() error
- func (v *NodesView) Refresh() error
- func (v *NodesView) Render() tview.Primitive
- func (v *NodesView) SetApp(app *tview.Application)
- func (v *NodesView) SetPages(pages *tview.Pages)
- func (v *NodesView) Stop() error
- type PartitionsView
- func (v *PartitionsView) Hints() []string
- func (v *PartitionsView) Init(ctx context.Context) error
- func (v *PartitionsView) OnFocus() error
- func (v *PartitionsView) OnKey(event *tcell.EventKey) *tcell.EventKey
- func (v *PartitionsView) OnLoseFocus() error
- func (v *PartitionsView) Refresh() error
- func (v *PartitionsView) Render() tview.Primitive
- func (v *PartitionsView) SetApp(app *tview.Application)
- func (v *PartitionsView) SetPages(pages *tview.Pages)
- func (v *PartitionsView) Stop() error
- type PerformanceView
- func (pv *PerformanceView) Hints() []string
- func (pv *PerformanceView) Init(ctx context.Context) error
- func (pv *PerformanceView) OnFocus() error
- func (pv *PerformanceView) OnKey(event *tcell.EventKey) *tcell.EventKey
- func (pv *PerformanceView) OnLoseFocus() error
- func (pv *PerformanceView) Refresh() error
- func (pv *PerformanceView) Render() tview.Primitive
- func (pv *PerformanceView) SetApp(app *tview.Application)
- func (pv *PerformanceView) SetPages(pages *tview.Pages)
- func (pv *PerformanceView) Stop() error
- func (pv *PerformanceView) Update() error
- type QoSView
- func (v *QoSView) Hints() []string
- func (v *QoSView) Init(ctx context.Context) error
- func (v *QoSView) OnFocus() error
- func (v *QoSView) OnKey(event *tcell.EventKey) *tcell.EventKey
- func (v *QoSView) OnLoseFocus() error
- func (v *QoSView) Refresh() error
- func (v *QoSView) Render() tview.Primitive
- func (v *QoSView) SetApp(app *tview.Application)
- func (v *QoSView) SetPages(pages *tview.Pages)
- func (v *QoSView) Stop() error
- type ReservationsView
- func (v *ReservationsView) Hints() []string
- func (v *ReservationsView) Init(ctx context.Context) error
- func (v *ReservationsView) OnFocus() error
- func (v *ReservationsView) OnKey(event *tcell.EventKey) *tcell.EventKey
- func (v *ReservationsView) OnLoseFocus() error
- func (v *ReservationsView) Refresh() error
- func (v *ReservationsView) Render() tview.Primitive
- func (v *ReservationsView) SetApp(app *tview.Application)
- func (v *ReservationsView) SetPages(pages *tview.Pages)
- func (v *ReservationsView) Stop() error
- type SSHTerminalView
- type SearchResult
- type StreamMonitorView
- type StreamPanel
- type StreamingPreferencesView
- type UsersView
- func (v *UsersView) Hints() []string
- func (v *UsersView) Init(ctx context.Context) error
- func (v *UsersView) OnFocus() error
- func (v *UsersView) OnKey(event *tcell.EventKey) *tcell.EventKey
- func (v *UsersView) OnLoseFocus() error
- func (v *UsersView) Refresh() error
- func (v *UsersView) Render() tview.Primitive
- func (v *UsersView) SetApp(app *tview.Application)
- func (v *UsersView) SetPages(pages *tview.Pages)
- func (v *UsersView) Stop() error
- type View
- type ViewManager
- func (vm *ViewManager) AddView(view View) error
- func (vm *ViewManager) GetCurrentView() (View, error)
- func (vm *ViewManager) GetView(name string) (View, error)
- func (vm *ViewManager) GetViewNames() []string
- func (vm *ViewManager) NextView() error
- func (vm *ViewManager) PreviousView() error
- func (vm *ViewManager) RefreshCurrentView() error
- func (vm *ViewManager) SetCurrentView(name string) error
- func (vm *ViewManager) SetPages(pages *tview.Pages)
- func (vm *ViewManager) StopAll() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ColoredState ¶
ColoredState returns a colored string based on state type
func FormatCPUUsage ¶
FormatCPUUsage formats CPU usage percentage
func FormatDuration ¶
FormatDuration formats a duration into a human-readable string
func FormatDurationDetailed ¶
FormatDurationDetailed formats a duration to a readable string
func FormatMemory ¶
FormatMemory formats memory size in MB to human-readable format
func FormatTimeDuration ¶
FormatTimeDuration formats a time.Duration for display
func GetJobStateColor ¶
GetJobStateColor returns the color for a job state
func GetNodeStateColor ¶
GetNodeStateColor returns the color for a node state
func GetPartitionStateColor ¶
GetPartitionStateColor returns the color for a partition state
func OLD_showJobTemplateSelector ¶
func OLD_showJobTemplateSelector(v *JobsView)
OLD_showJobTemplateSelector shows template selection dialog - DEPRECATED
func ShowHelpModal ¶
ShowHelpModal shows the help as a modal dialog
func TruncateString ¶
TruncateString truncates a string to the specified length with ellipsis
Types ¶
type AccountsView ¶
type AccountsView struct {
*BaseView
// contains filtered or unexported fields
}
AccountsView displays the accounts list
func NewAccountsView ¶
func NewAccountsView(client dao.SlurmClient) *AccountsView
NewAccountsView creates a new accounts view
func (*AccountsView) Init ¶
func (v *AccountsView) Init(ctx context.Context) error
Init initializes the accounts view
func (*AccountsView) OnKey ¶
func (v *AccountsView) OnKey(event *tcell.EventKey) *tcell.EventKey
OnKey handles keyboard events
func (*AccountsView) OnLoseFocus ¶
func (v *AccountsView) OnLoseFocus() error
OnLoseFocus handles loss of focus
func (*AccountsView) Refresh ¶
func (v *AccountsView) Refresh() error
Refresh updates the accounts data
func (*AccountsView) Render ¶
func (v *AccountsView) Render() tview.Primitive
Render returns the view's main component
func (*AccountsView) SetApp ¶
func (v *AccountsView) SetApp(app *tview.Application)
SetApp sets the application reference
func (*AccountsView) SetPages ¶
func (v *AccountsView) SetPages(pages *tview.Pages)
SetPages sets the pages reference for modal handling
type BaseView ¶
type BaseView struct {
// contains filtered or unexported fields
}
BaseView provides common functionality for all views
func NewBaseView ¶
NewBaseView creates a new base view instance
func (*BaseView) GetApp ¶
func (v *BaseView) GetApp() *tview.Application
GetApp returns the tview application reference
func (*BaseView) GetLastError ¶
GetLastError returns the last error that occurred
func (*BaseView) Hints ¶
Hints returns keyboard shortcut hints for the status bar (default implementation)
func (*BaseView) IsRefreshing ¶
IsRefreshing returns true if the view is currently refreshing
func (*BaseView) OnLoseFocus ¶
OnLoseFocus provides default focus loss handling
func (*BaseView) SetApp ¶
func (v *BaseView) SetApp(app *tview.Application)
SetApp sets the tview application reference
func (*BaseView) SetLastError ¶
SetLastError sets the last error
func (*BaseView) SetRefreshing ¶
SetRefreshing sets the refreshing state
type BatchOperation ¶
type BatchOperation string
BatchOperation represents a batch operation type
const ( BatchCancel BatchOperation = "cancel" BatchHold BatchOperation = "hold" BatchRelease BatchOperation = "release" BatchRequeue BatchOperation = "requeue" BatchDelete BatchOperation = "delete" BatchPriority BatchOperation = "priority" BatchExport BatchOperation = "export" )
type BatchOperationsView ¶
type BatchOperationsView struct {
// contains filtered or unexported fields
}
BatchOperationsView handles batch operations on multiple jobs
func NewBatchOperationsView ¶
func NewBatchOperationsView(client dao.SlurmClient, app *tview.Application) *BatchOperationsView
NewBatchOperationsView creates a new batch operations view
func (*BatchOperationsView) SetPages ¶
func (v *BatchOperationsView) SetPages(pages *tview.Pages)
SetPages sets the pages manager for modal display
func (*BatchOperationsView) ShowBatchOperations ¶
func (v *BatchOperationsView) ShowBatchOperations(selectedJobs []string, selectedJobsData []map[string]interface{}, onComplete func())
ShowBatchOperations displays the batch operations modal
type ConfigView ¶
ConfigView provides a configuration management interface
func NewConfigView ¶
func NewConfigView(app *tview.Application, pages *tview.Pages, configPath string) *ConfigView
NewConfigView creates a new configuration view
func (*ConfigView) Focus ¶
func (cv *ConfigView) Focus(delegate func(p tview.Primitive))
Focus implements tview.Primitive
func (*ConfigView) GetConfigPath ¶
func (cv *ConfigView) GetConfigPath() string
GetConfigPath returns the configuration file path
func (*ConfigView) GetCurrentConfig ¶
func (cv *ConfigView) GetCurrentConfig() *config.Config
GetCurrentConfig returns the current configuration
func (*ConfigView) HasUnsavedChanges ¶
func (cv *ConfigView) HasUnsavedChanges() bool
HasUnsavedChanges returns whether there are unsaved changes
func (*ConfigView) SetConfigChangedCallback ¶
func (cv *ConfigView) SetConfigChangedCallback(callback func(*config.Config))
SetConfigChangedCallback sets the callback for configuration changes
type DashboardView ¶
type DashboardView struct {
*BaseView
// contains filtered or unexported fields
}
DashboardView displays a comprehensive cluster overview
func NewDashboardView ¶
func NewDashboardView(client dao.SlurmClient) *DashboardView
NewDashboardView creates a new dashboard view
func (*DashboardView) Init ¶
func (v *DashboardView) Init(ctx context.Context) error
Init initializes the dashboard view
func (*DashboardView) OnFocus ¶
func (v *DashboardView) OnFocus() error
OnFocus handles focus events
func (*DashboardView) OnKey ¶
func (v *DashboardView) OnKey(event *tcell.EventKey) *tcell.EventKey
OnKey handles keyboard events
func (*DashboardView) OnLoseFocus ¶
func (v *DashboardView) OnLoseFocus() error
OnLoseFocus handles loss of focus
func (*DashboardView) Refresh ¶
func (v *DashboardView) Refresh() error
Refresh updates all dashboard data
func (*DashboardView) Render ¶
func (v *DashboardView) Render() tview.Primitive
Render returns the view's main component
func (*DashboardView) SetPages ¶
func (v *DashboardView) SetPages(pages *tview.Pages)
SetPages sets the pages reference for modal handling
type EnhancedTerminalView ¶
type EnhancedTerminalView struct {
BaseView
// contains filtered or unexported fields
}
EnhancedTerminalView provides an advanced multi-pane terminal interface
func NewEnhancedTerminalView ¶
func NewEnhancedTerminalView(client dao.SlurmClient) *EnhancedTerminalView
NewEnhancedTerminalView creates a new enhanced terminal view
func (*EnhancedTerminalView) BroadcastCommand ¶
func (etv *EnhancedTerminalView) BroadcastCommand(command string) error
BroadcastCommand sends a command to all active terminals
func (*EnhancedTerminalView) GetActiveNodes ¶
func (etv *EnhancedTerminalView) GetActiveNodes() []string
GetActiveNodes returns the list of active node connections
func (*EnhancedTerminalView) GetTerminalCount ¶
func (etv *EnhancedTerminalView) GetTerminalCount() int
GetTerminalCount returns the number of active terminals
func (*EnhancedTerminalView) Hints ¶
func (etv *EnhancedTerminalView) Hints() []string
func (*EnhancedTerminalView) Init ¶
func (etv *EnhancedTerminalView) Init(ctx context.Context) error
Init initializes the enhanced terminal view
func (*EnhancedTerminalView) OnKey ¶
func (etv *EnhancedTerminalView) OnKey(event *tcell.EventKey) *tcell.EventKey
func (*EnhancedTerminalView) Refresh ¶
func (etv *EnhancedTerminalView) Refresh() error
func (*EnhancedTerminalView) Render ¶
func (etv *EnhancedTerminalView) Render() tview.Primitive
BaseView interface implementation
func (*EnhancedTerminalView) Stop ¶
func (etv *EnhancedTerminalView) Stop()
func (*EnhancedTerminalView) Update ¶
func (etv *EnhancedTerminalView) Update() error
type FilteredJobOutputView ¶
type FilteredJobOutputView struct {
// contains filtered or unexported fields
}
FilteredJobOutputView displays job output with filtering and search capabilities
func NewFilteredJobOutputView ¶
func NewFilteredJobOutputView(client dao.SlurmClient, app *tview.Application, configPath string) (*FilteredJobOutputView, error)
NewFilteredJobOutputView creates a new filtered job output view
func (*FilteredJobOutputView) Close ¶
func (v *FilteredJobOutputView) Close() error
Close cleans up resources
func (*FilteredJobOutputView) SetPages ¶
func (v *FilteredJobOutputView) SetPages(pages *tview.Pages)
SetPages sets the pages manager for modal display
func (*FilteredJobOutputView) ShowJobOutput ¶
func (v *FilteredJobOutputView) ShowJobOutput(jobID, jobName, outputType string)
ShowJobOutput displays job output with filtering support
type GlobalSearch ¶
type GlobalSearch struct {
// contains filtered or unexported fields
}
GlobalSearch provides global search functionality across all data types
func NewGlobalSearch ¶
func NewGlobalSearch(client dao.SlurmClient, app *tview.Application) *GlobalSearch
NewGlobalSearch creates a new global search component
func (*GlobalSearch) Show ¶
func (gs *GlobalSearch) Show(pages *tview.Pages, onSelect func(result SearchResult))
Show displays the global search interface
type HealthView ¶
type HealthView struct {
*BaseView
// contains filtered or unexported fields
}
HealthView displays cluster health monitoring information
func NewHealthView ¶
func NewHealthView(client dao.SlurmClient) *HealthView
NewHealthView creates a new health monitoring view
func (*HealthView) Init ¶
func (v *HealthView) Init(ctx context.Context) error
Init initializes the health view
func (*HealthView) OnKey ¶
func (v *HealthView) OnKey(event *tcell.EventKey) *tcell.EventKey
OnKey handles keyboard events
func (*HealthView) OnLoseFocus ¶
func (v *HealthView) OnLoseFocus() error
OnLoseFocus handles loss of focus
func (*HealthView) Refresh ¶
func (v *HealthView) Refresh() error
Refresh updates the health monitoring data
func (*HealthView) Render ¶
func (v *HealthView) Render() tview.Primitive
Render returns the view's main component
func (*HealthView) SetApp ¶
func (v *HealthView) SetApp(app *tview.Application)
SetApp sets the application reference
func (*HealthView) SetPages ¶
func (v *HealthView) SetPages(pages *tview.Pages)
SetPages sets the pages reference for modal handling
type HelpView ¶
type HelpView struct {
*BaseView
// contains filtered or unexported fields
}
HelpView displays interactive help and keyboard shortcuts
func (*HelpView) OnLoseFocus ¶
OnLoseFocus handles loss of focus
func (*HelpView) SetApp ¶
func (v *HelpView) SetApp(app *tview.Application)
SetApp sets the application reference
type HighlightPatternsView ¶
type HighlightPatternsView struct {
// contains filtered or unexported fields
}
HighlightPatternsView manages highlight patterns separately
func NewHighlightPatternsView ¶
func NewHighlightPatternsView(app *tview.Application, prefsManager *preferences.StreamingPreferencesManager) *HighlightPatternsView
NewHighlightPatternsView creates a new highlight patterns view
func (*HighlightPatternsView) SetPages ¶
func (v *HighlightPatternsView) SetPages(pages *tview.Pages)
SetPages sets the pages manager for modal display
func (*HighlightPatternsView) Show ¶
func (v *HighlightPatternsView) Show()
Show displays the highlight patterns dialog
type JobDependency ¶
type JobDependency struct {
JobID string
DependsOn []string
Type string // "afterok", "afternotok", "afterany", "after"
Status string // "waiting", "satisfied", "failed"
}
JobDependency represents a job dependency relationship
type JobOutputView ¶
type JobOutputView struct {
// contains filtered or unexported fields
}
JobOutputView displays job output (stdout/stderr) with real-time streaming support
func NewJobOutputView ¶
func NewJobOutputView(client dao.SlurmClient, app *tview.Application) *JobOutputView
NewJobOutputView creates a new job output view
func (*JobOutputView) SetPages ¶
func (v *JobOutputView) SetPages(pages *tview.Pages)
SetPages sets the pages manager for modal display
func (*JobOutputView) SetStreamManager ¶
func (v *JobOutputView) SetStreamManager(streamManager *streaming.StreamManager)
SetStreamManager sets the stream manager for real-time streaming
func (*JobOutputView) ShowJobOutput ¶
func (v *JobOutputView) ShowJobOutput(jobID, jobName, outputType string)
ShowJobOutput displays job output in a modal
type JobSubmissionWizard ¶
type JobSubmissionWizard struct {
// contains filtered or unexported fields
}
JobSubmissionWizard provides an interactive interface for submitting jobs
func NewJobSubmissionWizard ¶
func NewJobSubmissionWizard(client dao.SlurmClient, app *tview.Application) *JobSubmissionWizard
NewJobSubmissionWizard creates a new job submission wizard
type JobTemplate ¶
type JobTemplate struct {
Name string `json:"name"`
Description string `json:"description"`
JobSubmission *dao.JobSubmission `json:"job_submission"`
}
JobTemplate represents a saved job configuration
type JobTemplateManager ¶
type JobTemplateManager struct {
// contains filtered or unexported fields
}
JobTemplateManager manages job templates
func NewJobTemplateManager ¶
func NewJobTemplateManager() *JobTemplateManager
NewJobTemplateManager creates a new job template manager
type JobsView ¶
type JobsView struct {
*BaseView
// contains filtered or unexported fields
}
JobsView displays the jobs list
func NewJobsView ¶
func NewJobsView(client dao.SlurmClient) *JobsView
NewJobsView creates a new jobs view
func (*JobsView) OnLoseFocus ¶
OnLoseFocus handles loss of focus
func (*JobsView) SetApp ¶
func (v *JobsView) SetApp(app *tview.Application)
SetApp sets the application reference
func (*JobsView) SetStatusBar ¶
func (v *JobsView) SetStatusBar(statusBar *components.StatusBar)
SetStatusBar sets the main status bar reference
type ModalHandler ¶
type ModalHandler interface {
ShowModal(name string, modal tview.Primitive)
HideModal(name string)
}
ModalHandler provides methods for showing and hiding modals
type NodesView ¶
type NodesView struct {
*BaseView
// contains filtered or unexported fields
}
NodesView displays the nodes list with resource utilization
func NewNodesView ¶
func NewNodesView(client dao.SlurmClient) *NodesView
NewNodesView creates a new nodes view
func (*NodesView) OnLoseFocus ¶
OnLoseFocus handles loss of focus
func (*NodesView) SetApp ¶
func (v *NodesView) SetApp(app *tview.Application)
SetApp sets the application reference
type PartitionsView ¶
type PartitionsView struct {
*BaseView
// contains filtered or unexported fields
}
PartitionsView displays the partitions list with queue depth visualization
func NewPartitionsView ¶
func NewPartitionsView(client dao.SlurmClient) *PartitionsView
NewPartitionsView creates a new partitions view
func (*PartitionsView) Hints ¶
func (v *PartitionsView) Hints() []string
Hints returns keyboard hints
func (*PartitionsView) Init ¶
func (v *PartitionsView) Init(ctx context.Context) error
Init initializes the partitions view
func (*PartitionsView) OnFocus ¶
func (v *PartitionsView) OnFocus() error
OnFocus handles focus events
func (*PartitionsView) OnKey ¶
func (v *PartitionsView) OnKey(event *tcell.EventKey) *tcell.EventKey
OnKey handles keyboard events
func (*PartitionsView) OnLoseFocus ¶
func (v *PartitionsView) OnLoseFocus() error
OnLoseFocus handles loss of focus
func (*PartitionsView) Refresh ¶
func (v *PartitionsView) Refresh() error
Refresh updates the partitions data
func (*PartitionsView) Render ¶
func (v *PartitionsView) Render() tview.Primitive
Render returns the view's main component
func (*PartitionsView) SetApp ¶
func (v *PartitionsView) SetApp(app *tview.Application)
SetApp sets the application reference
func (*PartitionsView) SetPages ¶
func (v *PartitionsView) SetPages(pages *tview.Pages)
SetPages sets the pages reference for modal handling
type PerformanceView ¶
type PerformanceView struct {
BaseView
// contains filtered or unexported fields
}
PerformanceView provides a comprehensive performance monitoring interface
func NewPerformanceView ¶
func NewPerformanceView(client dao.SlurmClient) *PerformanceView
NewPerformanceView creates a new performance monitoring view
func (*PerformanceView) Hints ¶
func (pv *PerformanceView) Hints() []string
Hints returns keyboard shortcuts
func (*PerformanceView) Init ¶
func (pv *PerformanceView) Init(ctx context.Context) error
Init initializes the performance view
func (*PerformanceView) OnFocus ¶
func (pv *PerformanceView) OnFocus() error
OnFocus is called when the view gains focus
func (*PerformanceView) OnKey ¶
func (pv *PerformanceView) OnKey(event *tcell.EventKey) *tcell.EventKey
OnKey handles key events
func (*PerformanceView) OnLoseFocus ¶
func (pv *PerformanceView) OnLoseFocus() error
OnLoseFocus is called when the view loses focus
func (*PerformanceView) Refresh ¶
func (pv *PerformanceView) Refresh() error
Refresh manually refreshes the view
func (*PerformanceView) Render ¶
func (pv *PerformanceView) Render() tview.Primitive
Render returns the main container
func (*PerformanceView) SetApp ¶
func (pv *PerformanceView) SetApp(app *tview.Application)
SetApp sets the tview application reference
func (*PerformanceView) SetPages ¶
func (pv *PerformanceView) SetPages(pages *tview.Pages)
SetPages sets the pages reference for modal handling
func (*PerformanceView) Stop ¶
func (pv *PerformanceView) Stop() error
Stop stops the performance monitoring
func (*PerformanceView) Update ¶
func (pv *PerformanceView) Update() error
Update refreshes the view data
type QoSView ¶
type QoSView struct {
*BaseView
// contains filtered or unexported fields
}
QoSView displays the QoS (Quality of Service) list
func NewQoSView ¶
func NewQoSView(client dao.SlurmClient) *QoSView
NewQoSView creates a new QoS view
func (*QoSView) OnLoseFocus ¶
OnLoseFocus handles loss of focus
func (*QoSView) SetApp ¶
func (v *QoSView) SetApp(app *tview.Application)
SetApp sets the application reference
type ReservationsView ¶
type ReservationsView struct {
*BaseView
// contains filtered or unexported fields
}
ReservationsView displays the reservations list
func NewReservationsView ¶
func NewReservationsView(client dao.SlurmClient) *ReservationsView
NewReservationsView creates a new reservations view
func (*ReservationsView) Hints ¶
func (v *ReservationsView) Hints() []string
Hints returns keyboard hints
func (*ReservationsView) Init ¶
func (v *ReservationsView) Init(ctx context.Context) error
Init initializes the reservations view
func (*ReservationsView) OnFocus ¶
func (v *ReservationsView) OnFocus() error
OnFocus handles focus events
func (*ReservationsView) OnKey ¶
func (v *ReservationsView) OnKey(event *tcell.EventKey) *tcell.EventKey
OnKey handles keyboard events
func (*ReservationsView) OnLoseFocus ¶
func (v *ReservationsView) OnLoseFocus() error
OnLoseFocus handles loss of focus
func (*ReservationsView) Refresh ¶
func (v *ReservationsView) Refresh() error
Refresh updates the reservations data
func (*ReservationsView) Render ¶
func (v *ReservationsView) Render() tview.Primitive
Render returns the view's main component
func (*ReservationsView) SetApp ¶
func (v *ReservationsView) SetApp(app *tview.Application)
SetApp sets the application reference
func (*ReservationsView) SetPages ¶
func (v *ReservationsView) SetPages(pages *tview.Pages)
SetPages sets the pages reference for modal handling
type SSHTerminalView ¶
type SSHTerminalView struct {
// contains filtered or unexported fields
}
SSHTerminalView provides an SSH terminal interface
func NewSSHTerminalView ¶
func NewSSHTerminalView(app *tview.Application) *SSHTerminalView
NewSSHTerminalView creates a new SSH terminal view
func (*SSHTerminalView) SetNodes ¶
func (v *SSHTerminalView) SetNodes(nodes []string)
SetNodes sets the available nodes for SSH connections
func (*SSHTerminalView) SetPages ¶
func (v *SSHTerminalView) SetPages(pages *tview.Pages)
SetPages sets the pages manager for modal display
func (*SSHTerminalView) ShowSSHInterface ¶
func (v *SSHTerminalView) ShowSSHInterface(defaultNode string)
ShowSSHInterface displays the SSH terminal interface
func (*SSHTerminalView) Shutdown ¶
func (v *SSHTerminalView) Shutdown()
Shutdown gracefully shuts down the SSH terminal view
type SearchResult ¶
type SearchResult struct {
Type string // "job", "node", "partition", etc.
ID string
Name string
Description string
Score int // Relevance score
Data interface{}
}
SearchResult represents a single search result
type StreamMonitorView ¶
type StreamMonitorView struct {
// contains filtered or unexported fields
}
StreamMonitorView displays multiple job streams simultaneously
func NewStreamMonitorView ¶
func NewStreamMonitorView(client dao.SlurmClient, app *tview.Application, streamManager *streaming.StreamManager) *StreamMonitorView
NewStreamMonitorView creates a new multi-stream monitor
func (*StreamMonitorView) AddStream ¶
func (v *StreamMonitorView) AddStream(jobID, jobName, outputType string) error
AddStream adds a stream to the monitor
func (*StreamMonitorView) GetActiveStreamCount ¶
func (v *StreamMonitorView) GetActiveStreamCount() int
GetActiveStreamCount returns the number of active streams
func (*StreamMonitorView) IsVisible ¶
func (v *StreamMonitorView) IsVisible() bool
IsVisible returns true if the monitor is currently visible
func (*StreamMonitorView) SetPages ¶
func (v *StreamMonitorView) SetPages(pages *tview.Pages)
SetPages sets the pages manager for modal display
func (*StreamMonitorView) Show ¶
func (v *StreamMonitorView) Show()
Show displays the stream monitor
type StreamPanel ¶
type StreamPanel struct {
// contains filtered or unexported fields
}
StreamPanel represents a single streaming job panel
type StreamingPreferencesView ¶
type StreamingPreferencesView struct {
// contains filtered or unexported fields
}
StreamingPreferencesView displays and manages streaming preferences
func NewStreamingPreferencesView ¶
func NewStreamingPreferencesView(app *tview.Application, prefsManager *preferences.StreamingPreferencesManager) *StreamingPreferencesView
NewStreamingPreferencesView creates a new streaming preferences view
func (*StreamingPreferencesView) SetOnSave ¶
func (v *StreamingPreferencesView) SetOnSave(callback func())
SetOnSave sets the callback for when preferences are saved
func (*StreamingPreferencesView) SetPages ¶
func (v *StreamingPreferencesView) SetPages(pages *tview.Pages)
SetPages sets the pages manager for modal display
func (*StreamingPreferencesView) Show ¶
func (v *StreamingPreferencesView) Show()
Show displays the preferences dialog
type UsersView ¶
type UsersView struct {
*BaseView
// contains filtered or unexported fields
}
UsersView displays the users list
func NewUsersView ¶
func NewUsersView(client dao.SlurmClient) *UsersView
NewUsersView creates a new users view
func (*UsersView) OnLoseFocus ¶
OnLoseFocus handles loss of focus
func (*UsersView) SetApp ¶
func (v *UsersView) SetApp(app *tview.Application)
SetApp sets the application reference
type View ¶
type View interface {
// Name returns the unique name of the view (e.g., "jobs", "nodes")
Name() string
// Title returns the display title for the view
Title() string
// Hints returns keyboard shortcut hints for the status bar
Hints() []string
// Init initializes the view with the given context
Init(ctx context.Context) error
// Render returns the tview primitive to be displayed
Render() tview.Primitive
// Refresh updates the view data from the backend
Refresh() error
// OnKey handles keyboard events, returns nil if handled
OnKey(event *tcell.EventKey) *tcell.EventKey
// OnFocus is called when the view gains focus
OnFocus() error
// OnLoseFocus is called when the view loses focus
OnLoseFocus() error
// Stop cleanly shuts down the view
Stop() error
}
View represents a base interface for all views in S9s
type ViewManager ¶
type ViewManager struct {
// contains filtered or unexported fields
}
ViewManager manages multiple views and handles switching between them
func NewViewManager ¶
func NewViewManager(app *tview.Application) *ViewManager
NewViewManager creates a new view manager
func (*ViewManager) AddView ¶
func (vm *ViewManager) AddView(view View) error
AddView adds a view to the manager
func (*ViewManager) GetCurrentView ¶
func (vm *ViewManager) GetCurrentView() (View, error)
GetCurrentView returns the current active view
func (*ViewManager) GetView ¶
func (vm *ViewManager) GetView(name string) (View, error)
GetView returns a view by name
func (*ViewManager) GetViewNames ¶
func (vm *ViewManager) GetViewNames() []string
GetViewNames returns all registered view names in order
func (*ViewManager) NextView ¶
func (vm *ViewManager) NextView() error
NextView switches to the next view in the order
func (*ViewManager) PreviousView ¶
func (vm *ViewManager) PreviousView() error
PreviousView switches to the previous view in the order
func (*ViewManager) RefreshCurrentView ¶
func (vm *ViewManager) RefreshCurrentView() error
RefreshCurrentView refreshes the current active view
func (*ViewManager) SetCurrentView ¶
func (vm *ViewManager) SetCurrentView(name string) error
SetCurrentView sets the current active view
func (*ViewManager) SetPages ¶
func (vm *ViewManager) SetPages(pages *tview.Pages)
SetPages sets the pages reference for modal handling
Source Files
¶
- accounts.go
- base.go
- batch_operations.go
- config.go
- dashboard.go
- enhanced_terminal_view.go
- filtered_job_output.go
- global_search.go
- health.go
- help.go
- job_dependencies.go
- job_output.go
- job_submission_wizard.go
- job_templates.go
- jobs.go
- nodes.go
- partitions.go
- performance_view.go
- qos.go
- reservations.go
- ssh_terminal.go
- stream_monitor.go
- streaming_preferences_view.go
- users.go