STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
backend.directory Namespace Reference

Functions

list[dict] roster (Request request)
dict[str, str] display_names (Request request)

Variables

 TTL_SECONDS = _shared.TTL_SECONDS

Detailed Description

Who an engine design can be shared with: the team roster.

A thin binding of :mod:`stardesign.directory` to this app's user tree. That
module documents where the roster comes from, why it is a union of the auth
service's login records and the shared volume, and why the outbound call to auth
is not an SSRF hole.

Function Documentation

◆ display_names()

dict[str, str] backend.directory.display_names ( Request request)
``slug -> display name`` for labelling design owners; ``""`` when unknown.

Definition at line 23 of file directory.py.

◆ roster()

list[dict] backend.directory.roster ( Request request)
Everyone a design can be shared with: ``[{email, name}]``, sorted.

Definition at line 18 of file directory.py.

Variable Documentation

◆ TTL_SECONDS

backend.directory.TTL_SECONDS = _shared.TTL_SECONDS

Definition at line 15 of file directory.py.