Documentation
¶
Overview ¶
Package hub handles updating systems and serving the web UI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Hub ¶
type Hub struct {
core.App
*alerts.AlertManager
// contains filtered or unexported fields
}
Hub is the application. It embeds the PocketBase app and keeps references to subcomponents.
func (*Hub) MakeLink ¶
MakeLink formats a link with the app URL and path segments. Only path segments should be provided.
func (*Hub) SetFingerprint ¶
func (h *Hub) SetFingerprint(fpRecord *ws.FingerprintRecord, fingerprint string) (err error)
SetFingerprint creates or updates a fingerprint record in the database.
type PublicAppInfo ¶ added in v0.18.8
type PublicAppInfo struct {
BASE_PATH string
HUB_VERSION string
HUB_URL string
OAUTH_DISABLE_POPUP bool `json:"OAUTH_DISABLE_POPUP,omitzero"`
}
PublicAppInfo defines the structure of the public app information that will be injected into the HTML
type UpdateInfo ¶ added in v0.18.5
type UpdateInfo struct {
Version string `json:"v"`
Url string `json:"url"`
// contains filtered or unexported fields
}
UpdateInfo holds information about the latest update check
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package config provides functions for syncing systems with the config.yml file
|
Package config provides functions for syncing systems with the config.yml file |
|
Package expirymap provides a thread-safe map with expiring entries.
|
Package expirymap provides a thread-safe map with expiring entries. |
|
Package heartbeat sends periodic outbound pings to an external monitoring endpoint (e.g.
|
Package heartbeat sends periodic outbound pings to an external monitoring endpoint (e.g. |
|
Package transport provides a unified abstraction for hub-agent communication over different transports (WebSocket, SSH).
|
Package transport provides a unified abstraction for hub-agent communication over different transports (WebSocket, SSH). |
|
Package utils provides utility functions for the hub.
|
Package utils provides utility functions for the hub. |
Click to show internal directories.
Click to hide internal directories.