Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterWebhookTrigger ¶
func RegisterWebhookTrigger(g *echo.Group, webhookService *services.WebhookService, appCtx handlers.ActivityAppContext)
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 SetupAPI ¶
func SetupAPI(e *echo.Echo, apiGroup *echo.Group, appCtx handlers.ActivityAppContext, cfg *config.Config, deps HandlerDeps) huma.API
SetupAPI creates and configures the Huma API attached to the Echo router.
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 HandlerDeps ¶ added in v2.6.0
type HandlerDeps struct {
fx.In
AppImages *services.ApplicationImagesService
User *services.UserService
Project *services.ProjectService
Environment *services.EnvironmentService
Settings *services.SettingsService
JobSchedule *services.JobService
SettingsSearch *services.SettingsSearchService
CustomizeSearch *services.CustomizeSearchService
Container *services.ContainerService
Image *services.ImageService
Build *services.BuildService
BuildWorkspace *services.BuildWorkspaceService
Volume *services.VolumeService
Network *services.NetworkService
Port *services.PortService
Swarm *services.SwarmService
ImageUpdate *services.ImageUpdateService
Auth *services.AuthService
Passkey *services.PasskeyService
Oidc *services.OidcService
Docker *services.DockerClientService
Template *services.TemplateService
ContainerRegistry *services.ContainerRegistryService
System *services.SystemService
SystemUpgrade *services.SystemUpgradeService
Diagnostics *services.DiagnosticsService
Updater *services.UpdaterService
Event *services.EventService
Activity *services.ActivityService
Version *services.VersionService
Notification *services.NotificationService
ApiKey *services.ApiKeyService
Federated *services.FederatedCredentialService
GitRepository *services.GitRepositoryService
GitOpsSync *services.GitOpsSyncService
Webhook *services.WebhookService
Vulnerability *services.VulnerabilityService
Dashboard *services.DashboardService
Role *services.RoleService
Variable *services.VariableService
}
HandlerDeps contains the services required to register HTTP API handlers.
It intentionally contains only dependencies consumed by SetupAPI, registerHandlersInternal, and the authentication bridge.
Click to show internal directories.
Click to hide internal directories.