ORE Studio 0.0.4
Loading...
Searching...
No Matches
Static Public Member Functions | Static Public Attributes | List of all members
ore_storage Struct Reference

Storage bucket constants and key helpers for ORE import. More...

#include <ore_storage.hpp>

Collaboration diagram for ore_storage:
Collaboration graph

Static Public Member Functions

static std::string import_key (std::string_view request_id)
 Object key for an ORE import tarball.
 
static std::string import_path (std::string_view request_id)
 API path for an ORE import tarball.
 

Static Public Attributes

static constexpr std::string_view bucket = "ore-imports"
 

Detailed Description

Storage bucket constants and key helpers for ORE import.

Mirrors compute_storage in ores.compute.api — all ORE import tarballs are stored in the "ore-imports" bucket with a key of "{request_id}.tar.gz".

Member Function Documentation

◆ import_key()

static std::string import_key ( std::string_view  request_id)
static

Object key for an ORE import tarball.

Parameters
request_idUUID of the import request.
Returns
e.g. "f47ac10b-58cc-4372-a567-0e02b2c3d479.tar.gz"
Here is the caller graph for this function:

◆ import_path()

static std::string import_path ( std::string_view  request_id)
static

API path for an ORE import tarball.

Parameters
request_idUUID of the import request.
Returns
e.g. "/api/v1/storage/ore-imports/{id}.tar.gz"