mirror of
https://gitlab.com/d3tn/ud3tn.git
synced 2026-08-14 12:43:26 +02:00
The SQLiteAgent enables SQLiteCLA to read packages from the database and return them to μD3TN. For this purpose, the SQLiteAgent writes commands to the queue that SQLiteCLA is waiting for. The SQLiteAgent itself can be controlled by protobuf messages that describe which action is to be applied to which set of bundles. Currently the operations "Push" and "Delete" are implemented and a filter based on a destination EID pattern. Signed-off-by: Maximilian Nitsch <maximilian.nitsch@d3tn.com>
34 lines
984 B
Protocol Buffer
34 lines
984 B
Protocol Buffer
// SPDX-License-Identifier: BSD-3-Clause OR Apache-2.0
|
|
|
|
syntax = "proto3";
|
|
|
|
enum StorageOperation {
|
|
// Invalid.
|
|
STORAGE_OPERATION_UNSPECIFIED = 0;
|
|
|
|
// List all bundles matching the given filter.
|
|
STORAGE_OPERATION_LIST_BUNDLES = 1;
|
|
|
|
// Delete all bundles matching the given filter.
|
|
STORAGE_OPERATION_DELETE_BUNDLES = 2;
|
|
|
|
// Push all bundles matching the given filter to the BPA ("receive" them).
|
|
STORAGE_OPERATION_PUSH_BUNDLES = 3;
|
|
|
|
// NOTE: FUTURE EXTENSION: PUSH_AND_DELETE
|
|
// NOTE: FUTURE EXTENSION: UPDATE (e.g., for fragmentation)
|
|
}
|
|
|
|
message BundleFilter {
|
|
// An EID pattern to match a set of bundles. May contain '*' as a
|
|
// placeholder (similar to POSIX-style glob patterns).
|
|
string eid_glob = 1;
|
|
|
|
// NOTE: FUTURE EXTENSION: Arbitrary filters on all bundle metadata, potentially
|
|
// using regular expressions or glob patterns.
|
|
}
|
|
|
|
message StorageCall {
|
|
StorageOperation operation = 1;
|
|
BundleFilter filter = 2;
|
|
}
|