functions

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package functions provides the studio admin API for edge functions.

Routes (all require service-role Bearer token):

GET  /list              — list deployed functions (scanned from functionsDir)
GET  /{name}/logs       — recent log lines for a function (?since=1h)
GET  /env               — list shared env var key names from .env.local
POST /env               — set a shared env var in .env.local
DELETE /env/{key}       — remove a shared env var from .env.local
GET  /{name}/env        — list function-specific env var key names
POST /{name}/env        — set a function-specific env var
DELETE /{name}/env/{key}— remove a function-specific env var

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(functionsDir string, manager *deno.Manager) http.Handler

Handler returns a chi.Router that serves the functions admin API. manager may be nil when edge functions are disabled; all routes return 404.

func RequireServiceRoleMiddleware

func RequireServiceRoleMiddleware(next http.Handler) http.Handler

RequireServiceRoleMiddleware rejects requests that don't carry the service-role key.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL