Documentation
¶
Index ¶
- func RegisterDiagnosticsRoutes(group *echo.Group, authMiddleware *middleware.AuthMiddleware, ...)
- func RegisterWebhookTrigger(g *echo.Group, webhookService *services.WebhookService)
- func SetupAPI(e *echo.Echo, apiGroup *echo.Group, cfg *config.Config, svc *Services) huma.API
- func SetupAPIForSpec() huma.API
- type DiagnosticsHandler
- type Services
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterDiagnosticsRoutes ¶
func RegisterDiagnosticsRoutes(group *echo.Group, authMiddleware *middleware.AuthMiddleware, wsMetrics *ws.WebSocketMetrics)
func RegisterWebhookTrigger ¶
func RegisterWebhookTrigger(g *echo.Group, webhookService *services.WebhookService)
RegisterWebhookTrigger registers the public (unauthenticated) trigger endpoint. The token in the URL is the sole authentication mechanism. Rate-limited via PerIPRateLimitForPaths in router_bootstrap.go.
func SetupAPIForSpec ¶
SetupAPIForSpec creates a Huma API instance for OpenAPI spec generation only. No services are required - this is purely for schema generation.
Types ¶
type DiagnosticsHandler ¶
type DiagnosticsHandler struct {
// contains filtered or unexported fields
}
func (*DiagnosticsHandler) WebSocketDiagnostics ¶
func (h *DiagnosticsHandler) WebSocketDiagnostics(c echo.Context) error
type Services ¶
type Services struct {
User *services.UserService
Auth *services.AuthService
Oidc *services.OidcService
ApiKey *services.ApiKeyService
AppImages *services.ApplicationImagesService
Font *services.FontService
Project *services.ProjectService
Event *services.EventService
Version *services.VersionService
Environment *services.EnvironmentService
Settings *services.SettingsService
JobSchedule *services.JobService
SettingsSearch *services.SettingsSearchService
ContainerRegistry *services.ContainerRegistryService
Template *services.TemplateService
Docker *services.DockerClientService
Image *services.ImageService
ImageUpdate *services.ImageUpdateService
Build *services.BuildService
BuildWorkspace *services.BuildWorkspaceService
Volume *services.VolumeService
Container *services.ContainerService
Network *services.NetworkService
Port *services.PortService
Swarm *services.SwarmService
Notification *services.NotificationService
Apprise *services.AppriseService //nolint:staticcheck // Apprise still functional, deprecated in favor of Shoutrrr
Updater *services.UpdaterService
CustomizeSearch *services.CustomizeSearchService
System *services.SystemService
SystemUpgrade *services.SystemUpgradeService
GitRepository *services.GitRepositoryService
GitOpsSync *services.GitOpsSyncService
Webhook *services.WebhookService
Vulnerability *services.VulnerabilityService
Dashboard *services.DashboardService
Config *config.Config
}
Services holds all service dependencies needed by Huma handlers.
Click to show internal directories.
Click to hide internal directories.