# Packages
Package token provides the ability for inserting Vela token resources into or extracting Vela token resources from the middleware chain for the API.
Package build provides the ability for inserting Vela build resources into or extracting Vela build resources from the middleware chain for the API.
Package claims provides the ability for inserting token claims resources into or extracting token claims resources from the middleware chain for the API.
Package cli provides the ability for inserting Vela cli resources into or extracting Vela cli resources from the middleware chain for the API.
Package dashboard provides the ability for inserting Vela dashboard resources into or extracting Vela dashboard resources from the middleware chain for the API.
Package executors provides the ability for inserting Vela executors resources into or extracting Vela build resources from the middleware chain for the API.
Package hook provides the ability for inserting Vela hook resources into or extracting Vela hook resources from the middleware chain for the API.
Package org provides the ability for inserting Vela org resources into or extracting Vela org resources from the middleware chain for the API.
Package perm provides the ability for validating the access control to Vela resources in the middleware chain for the API.
Package pipeline provides the ability for inserting Vela pipeline resources into or extracting Vela pipeline resources from the middleware chain for the API.
Package repo provides the ability for inserting Vela repo resources into or extracting Vela repo resources from the middleware chain for the API.
No description provided by the author
Package service provides the ability for inserting Vela service resources into or extracting Vela service resources from the middleware chain for the API.
Package settings provides the ability for inserting Vela settings resources into or extracting Vela settings resources from the middleware chain for the API.
Package step provides the ability for inserting Vela step resources into or extracting Vela step resources from the middleware chain for the API.
Package tracing provides the ability for inserting or extracting the Vela OTEL tracing client from the middleware chain for the API.
Package user provides the ability for inserting Vela user resources into or extracting Vela user resources from the middleware chain for the API.
Package worker provides the ability for inserting Vela worker resources into or extracting Vela worker resources from the middleware chain for the API.
# Functions
AppWebhookSecret is a middleware function that attaches the Vela GH app secret used for validating incoming app install webhooks to the context of every http.Request.
CLI is a middleware function that attaches the cli client to the context of every http.Request.
Compiler is a middleware function that initializes the compiler and attaches to the context of every http.Request.
Cors is a middleware function that appends headers for CORS related requests.
CorsAllowOrigin is a helper function that returns the allowed origin for CORS requests by checking the request origin against the allowed origins in the Vela metadata.
Database is a middleware function that initializes the database and attaches to the context of every http.Request.
DefaultApprovalTimeout is a middleware function that attaches the defaultApprovalTimeout to enable the server to override the default build approval timeout.
DefaultBuildLimit is a middleware function that attaches the defaultLimit to enable the server to override the default build limit.
DefaultRepoApproveBuild is a middleware function that attaches the defaultRepoApproveBuild to enable the server to override the default repo approve build setting.
DefaultRepoEvents is a middleware function that attaches the defaultRepoEvents to enable the server to override the default repo event.
DefaultRepoEventsMask is a middleware function that attaches the defaultRepoEventsMask to enable the server to override the default repo events using a mask.
DefaultTimeout is a middleware function that attaches the defaultTimeout to enable the server to override the default build timeout.
Logger returns a gin.HandlerFunc (middleware) that logs requests using logrus.
MaxBuildLimit is a middleware function that attaches the defaultLimit to enable the server to override the max build limit.
Metadata is a middleware function that attaches the metadata to the context of every http.Request.
NoCache is a middleware function that appends headers to prevent the client from caching the HTTP response.
Options is a middleware function that appends headers for OPTIONS preflight requests and aborts then exits the middleware chain and ends the request.
Payload is a middleware function that captures the user provided json body and attaches it to the context of every http.Request to be logged.
Queue is a middleware function that initializes the queue and attaches to the context of every http.Request.
QueueAddress is a middleware function that attaches the queue address used to open the connection to the queue.
QueueSigningPrivateKey is a middleware function that attaches the private key used to sign items that are pushed to the queue.
QueueSigningPublicKey is a middleware function that attaches the public key used to open signed items that are pushed to the queue.
RequestVersion is a middleware function that injects the Vela API version information into the request so it will be logged.
ResponseVersion is a middleware function that injects the Vela API version information into the response so it will be logged.
ScheduleFrequency is a middleware function that attaches the scheduleminimumfrequency used to limit the frequency which schedules can be run within the system.
Scm is a middleware function that initializes the scm and attaches to the context of every http.Request.
Secret is a middleware function that attaches the secret used for server <-> agent communication to the context of every http.Request.
Secrets is a middleware function that initializes the secret engines and attaches to the context of every http.Request.
Secure is a middleware function that appends security and resource access headers.
SecureCookie determines whether or not incoming webhooks are validated coming from Github This is primarily intended for local development.
Settings is a middleware function that attaches settings to the context of every http.Request.
TokenManager is a middleware function that attaches the token manager to the context of every http.Request.
TracingClient is a middleware function that attaches the tracing config to the context of every http.Request.
TracingInstrumentation is a middleware function that attaches the tracing config to the context of every http.Request.
WebhookValidation determines whether or not incoming webhooks are validated coming from Github This is primarily intended for local development.
Worker is a middleware function that attaches the worker interval to determine which workers are active.
# Structs
ECSFormatter holds ECS parameter information for logging.