directory to remote storage mapping

This commit is contained in:
Chris Lu
2021-07-27 01:16:28 -07:00
parent 99b599aa8a
commit 4b94b03d90
7 changed files with 446 additions and 184 deletions

View File

@@ -344,7 +344,9 @@ message LocateBrokerResponse {
repeated Resource resources = 2;
}
/////////////////////////
// Key-Value operations
/////////////////////////
message KvGetRequest {
bytes key = 1;
}
@@ -360,7 +362,9 @@ message KvPutResponse {
string error = 1;
}
/////////////////////////
// path-based configurations
/////////////////////////
message FilerConf {
int32 version = 1;
message PathConf {
@@ -376,6 +380,9 @@ message FilerConf {
repeated PathConf locations = 2;
}
/////////////////////////
// Remote Storage related
/////////////////////////
message RemoteConf {
string type = 1;
string name = 2;
@@ -384,3 +391,11 @@ message RemoteConf {
string s3_region = 6;
string s3_endpoint = 7;
}
message RemoteStorageMappingList {
repeated RemoteStorageMapping mappings = 1;
}
message RemoteStorageMapping {
string dir = 1;
string remote_storage_name = 2;
}