Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterWebhookTrigger ¶
func RegisterWebhookTrigger(g *echo.Group, webhookService *webhook.WebhookService, appCtx handlerutil.ActivityAppContext)
RegisterWebhookTrigger registers the public (unauthenticated) trigger endpoint. The token in the URL is the sole authentication mechanism. Rate-limited via PerTokenRateLimitForPaths in router_bootstrap.go: authentic tokens get per-token buckets, everything else shares a per-source-IP budget.
func SetupAPI ¶
func SetupAPI(e *echo.Echo, apiGroup *echo.Group, appCtx handlerutil.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 *appimages.ApplicationImagesService
User *user.Module
Project *project.Module
Environment *environment.Module
Settings *settings.Module
JobSchedule *job.Module
Search *search.Module
Container *container.Module
Image *image.Module
Build *build.BuildService
BuildWorkspace *build.BuildWorkspaceService
Volume *volume.Module
S3Destination *s3domain.Module
SystemBackup *systembackup.Module
Network *network.NetworkService
Port *port.PortService
Swarm *swarm.Module
ImageUpdate *imageupdate.Module
ImagePatch *imagepatch.Module
Auth *auth.Module
Passkey *passkey.PasskeyService
Oidc *oidc.OidcService
Docker *docker.DockerClientService
Template *template.Module
ContainerRegistry *registry.Module
System *system.Module
SystemUpgrade *system.SystemUpgradeService
Diagnostics *diagnostics.DiagnosticsService
Updater *updater.Module
Event *event.Module
Activity *activity.Module
Version *version.VersionService
Notification *notification.Module
ApiKey *apikey.Module
Apns *apns.Module
Federated *federated.FederatedCredentialService
GitRepository *gitrepo.Module
GitOpsSync *gitops.Module
Webhook *webhook.Module
Vulnerability *vulnerability.Module
Dashboard *dashboard.Module
Role *role.Module
Variable *variable.Module
Upload *upload.Module
}
HandlerDeps contains the services required to register HTTP API handlers.
It intentionally contains only dependencies consumed by SetupAPI, registerHandlersInternal, and the authentication middleware.