Baltic-RCC / EMF

Repository for Open Source EMF implementation
Mozilla Public License 2.0
9 stars 3 forks source link

Content retriever from Object Storage #43

Closed Haigutus closed 6 months ago

Haigutus commented 7 months ago

Create function to query metadata and retrieve corresponding binary blobs.

  1. Query metadata from ELK
  2. Get payload from Minio

Two functions, but query function should have a flag to return data right away

query_data(metadata_query, return_payload=True/False) -> Returns the metadata valid for current (if return_payload=True -> calls get_content

get_content(metadata) -> Returns the metadata with payload in the original metadata structure under attribute "DATA"