diff options
| author | Chris Lu <chris.lu@uber.com> | 2019-03-16 13:43:16 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@uber.com> | 2019-03-16 13:43:16 -0700 |
| commit | 657dd2e6c93c02f46b10dfd43fb6e9b38c025ece (patch) | |
| tree | c23a093382d5ffd0d39dd69b68fb24050daa7f3e /weed/pb/master.proto | |
| parent | b92122b885c8fba189f3c503c17478008806fda7 (diff) | |
| download | seaweedfs-657dd2e6c93c02f46b10dfd43fb6e9b38c025ece.tar.xz seaweedfs-657dd2e6c93c02f46b10dfd43fb6e9b38c025ece.zip | |
add shell command to list all collections
Diffstat (limited to 'weed/pb/master.proto')
| -rw-r--r-- | weed/pb/master.proto | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/weed/pb/master.proto b/weed/pb/master.proto index f03d1e3de..d4b02cdc5 100644 --- a/weed/pb/master.proto +++ b/weed/pb/master.proto @@ -15,6 +15,10 @@ service Seaweed { } rpc Statistics (StatisticsRequest) returns (StatisticsResponse) { } + rpc CollectionList (CollectionListRequest) returns (CollectionListResponse) { + } + rpc CollectionDelete (CollectionDeleteRequest) returns (CollectionDeleteResponse) { + } } ////////////////////////////////////////////////// @@ -124,3 +128,26 @@ message StatisticsResponse { uint64 used_size = 5; uint64 file_count = 6; } + +// +// collection related +// + +message StorageType { + string replication = 1; + string ttl = 2; +} +message Collection { + string name = 1; +} +message CollectionListRequest { +} +message CollectionListResponse { + repeated Collection collections = 1; +} + +message CollectionDeleteRequest { + string name = 1; +} +message CollectionDeleteResponse { +} |
