admin

command
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2026 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command admin is the deployable Lambda entrypoint for the admin interface of the Authorization Service (create, revoke, extend, list), called by the CLI.

It is wiring only: it reads configuration from the environment, constructs a DynamoDB client from the Lambda execution role, and delegates to the existing auth.AdminHandler in internal/auth. No business logic lives here. AdminHandler.HandleRequest already routes by method+path and already maps state-conflict domain errors onto HTTP status codes (404 not found, 409 already-revoked/expired), so this entrypoint only translates the API Gateway proxy event into that call and maps the returned (status, body) back.

Environment variables (read once at cold start):

SHARE_RECORDS_TABLE_NAME  (required) DynamoDB table holding share records.

Jump to

Keyboard shortcuts

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