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

Variables

 backend
 IS_S3 = isinstance(backend, S3Backend)

Detailed Description

Version storage for engine designs: microversions + immutable releases.

A thin binding of :mod:`stardesign.storage` to this app's S3 environment. The
module-level ``backend`` and ``IS_S3`` names are what the rest of this backend
imports, so they stay.

Design version history in S3 when ``ENGINE_S3_BUCKET`` is set; files on the
``USERDATA_DIR`` volume otherwise (dev, and prod with no bucket).

Variable Documentation

◆ backend

backend.storage.backend
Initial value:
1= make_backend(
2 userdata.store,
3 bucket_env="ENGINE_S3_BUCKET",
4 prefix_env="ENGINE_S3_PREFIX",
5 default_prefix="engine",
6)

Definition at line 15 of file storage.py.

◆ IS_S3

backend.storage.IS_S3 = isinstance(backend, S3Backend)

Definition at line 21 of file storage.py.