Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ShowDockerRecoveryFailed ¶
ShowDockerRecoveryFailed shows a notification when Docker recovery fails (stub)
func ShowDockerRecoveryStarted ¶
func ShowDockerRecoveryStarted() error
ShowDockerRecoveryStarted shows a notification when Docker recovery starts (stub)
func ShowDockerRecoverySuccess ¶
ShowDockerRecoverySuccess shows a notification when Docker recovery succeeds (stub)
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App represents the system tray application (stub version)
func New ¶
func New(_ ServerInterface, logger *zap.SugaredLogger, _ string, _ func()) *App
New creates a new tray application (stub version)
func NewWithAPIClient ¶
func NewWithAPIClient(_ ServerInterface, _ interface{ OpenWebUI() error }, logger *zap.SugaredLogger, _ string, _ func()) *App
NewWithAPIClient creates a new tray application with an API client (stub version)
func (*App) Quit ¶
func (a *App) Quit()
Quit stops the system tray application (stub version - does nothing)
func (*App) SetConnectionState ¶
func (a *App) SetConnectionState(_ ConnectionState)
SetConnectionState updates the tray's connection state (stub version - does nothing)
type ConnectionState ¶
type ConnectionState string
ConnectionState represents the current connectivity status between the tray and the core runtime.
const ( ConnectionStateInitializing ConnectionState = "initializing" ConnectionStateStartingCore ConnectionState = "starting_core" ConnectionStateConnecting ConnectionState = "connecting" ConnectionStateConnected ConnectionState = "connected" ConnectionStateReconnecting ConnectionState = "reconnecting" ConnectionStateDisconnected ConnectionState = "disconnected" ConnectionStateAuthError ConnectionState = "auth_error" ConnectionStateErrorPortConflict ConnectionState = "error_port_conflict" // ADD: Specific error states ConnectionStateErrorDBLocked ConnectionState = "error_db_locked" ConnectionStateErrorDocker ConnectionState = "error_docker" ConnectionStateRecoveringDocker ConnectionState = "recovering_docker" // Docker recovery in progress ConnectionStateErrorConfig ConnectionState = "error_config" ConnectionStateErrorGeneral ConnectionState = "error_general" ConnectionStateFailed ConnectionState = "failed" )
type NotificationHandler ¶
type NotificationHandler struct {
// contains filtered or unexported fields
}
NotificationHandler implements upstream.NotificationHandler for headless builds (stub)
func NewNotificationHandler ¶
func NewNotificationHandler(logger *zap.SugaredLogger) *NotificationHandler
NewNotificationHandler creates a new tray notification handler (stub)
func (*NotificationHandler) SendNotification ¶
func (h *NotificationHandler) SendNotification(notification *upstream.Notification)
SendNotification implements upstream.NotificationHandler (stub - just logs)
type ServerInterface ¶
type ServerInterface interface {
IsRunning() bool
GetListenAddress() string
GetUpstreamStats() map[string]interface{}
StartServer(ctx context.Context) error
StopServer() error
GetStatus() interface{}
StatusChannel() <-chan interface{}
EventsChannel() <-chan internalRuntime.Event
// Quarantine management methods
GetQuarantinedServers() ([]map[string]interface{}, error)
UnquarantineServer(serverName string) error
// Server management methods for tray menu
EnableServer(serverName string, enabled bool) error
QuarantineServer(serverName string, quarantined bool) error
GetAllServers() ([]map[string]interface{}, error)
SetListenAddress(addr string, persist bool) error
SuggestAlternateListen(baseAddr string) (string, error)
// Config management for file watching
ReloadConfiguration() error
GetConfigPath() string
GetLogDir() string
}
ServerInterface defines the interface for server control (stub version)