Documentation
¶
Overview ¶
Package server implements the condatainer dashboard HTTP server. It runs on the login node, provides a web dashboard, reverse-proxies to helper services on compute nodes via SSH tunnels, and streams SSE logs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadState ¶
func ReadState(pidFile string) (*config.ServerState, error)
ReadState reads and parses the server State from the PID file.
Types ¶
type SSEBroker ¶
type SSEBroker struct {
// contains filtered or unexported fields
}
SSEBroker fan-outs SSE messages to subscribed HTTP clients. One broker per helper ID; the watcher pushes messages into it. finished/finalMsg cache the terminal "done" event (see publishFinal) so a client that connects after the task finished still gets the result.
Source Files
¶
- api.go
- api_avail.go
- api_create.go
- api_files.go
- api_files_bookmarks.go
- api_files_copy.go
- api_files_delete.go
- api_files_download.go
- api_files_move.go
- api_files_upload.go
- api_helpers.go
- api_helpers_bookmarks.go
- api_jobs.go
- api_overlays.go
- api_tasks.go
- file_bookmarks.go
- fscopy.go
- helper_bookmarks.go
- reverse_proxy.go
- routes.go
- server.go
- sse.go
- state_store.go
- watcher.go