aboutsummaryrefslogtreecommitdiff
path: root/weed/pb/master.proto
diff options
context:
space:
mode:
Diffstat (limited to 'weed/pb/master.proto')
-rw-r--r--weed/pb/master.proto20
1 files changed, 20 insertions, 0 deletions
diff --git a/weed/pb/master.proto b/weed/pb/master.proto
index bc376f75b..3f348a4bd 100644
--- a/weed/pb/master.proto
+++ b/weed/pb/master.proto
@@ -9,6 +9,8 @@ service Seaweed {
}
rpc KeepConnected (stream ClientListenRequest) returns (stream VolumeLocation) {
}
+ rpc LookupVolume (LookupVolumeRequest) returns (LookupVolumeResponse) {
+ }
}
//////////////////////////////////////////////////
@@ -69,3 +71,21 @@ message VolumeLocation {
repeated uint32 new_vids = 3;
repeated uint32 deleted_vids = 4;
}
+
+message LookupVolumeRequest {
+ repeated string volume_ids = 1;
+ string collection = 2; // optional, a bit faster if provided.
+}
+message LookupVolumeResponse {
+ message VolumeIdLocation {
+ string volume_id = 1;
+ repeated Location locations = 2;
+ string error = 3;
+ }
+ repeated VolumeIdLocation volume_id_locations = 1;
+}
+
+message Location {
+ string url = 1;
+ string public_url = 2;
+}