Kestrel Data Source ReturnStruct
- class kestrel.datasource.retstruct.AbstractReturnStruct[source]
Bases:
ABC
The abstract class for creating return objects.
it should have a constructor for the interface to create it. The interface should specify the
query_id
in the constructor.it should have a
load_to_store
method for Kestrel runtime to load data from it.
- class kestrel.datasource.retstruct.ReturnFromFile(query_id, file_paths)[source]
Bases:
AbstractReturnStruct
The return structure when the data source interface uses files as intermediate storage before loading to store.
- Parameters
query_id (str) – typically just a UUID.
file_paths ([str]) – the list of stix bundle file paths.
- class kestrel.datasource.retstruct.ReturnFromStore(query_id)[source]
Bases:
AbstractReturnStruct
The return structure when the data source interface directly operates on the store.
- Parameters
query_id (str) – typically just a UUID.