summaryrefslogtreecommitdiffstats
path: root/src/main/thrift/bwlp.thrift
diff options
context:
space:
mode:
authorSimon Rettberg2018-05-11 17:35:51 +0200
committerSimon Rettberg2018-05-11 17:35:51 +0200
commit8cf60948213a141b86e9a7128359545040f97276 (patch)
tree20662a196e92717b2b1147c586b946472e9471d1 /src/main/thrift/bwlp.thrift
parentDo what the javadoc says... (diff)
downloadmaster-sync-shared-8cf60948213a141b86e9a7128359545040f97276.tar.gz
master-sync-shared-8cf60948213a141b86e9a7128359545040f97276.tar.xz
master-sync-shared-8cf60948213a141b86e9a7128359545040f97276.zip
Support copying existing chunks server side
Can speed up uploads if the storage backend is fast enough.
Diffstat (limited to 'src/main/thrift/bwlp.thrift')
-rw-r--r--src/main/thrift/bwlp.thrift10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/main/thrift/bwlp.thrift b/src/main/thrift/bwlp.thrift
index 103f8df..4f4f4b1 100644
--- a/src/main/thrift/bwlp.thrift
+++ b/src/main/thrift/bwlp.thrift
@@ -352,6 +352,10 @@ struct TransferStatus {
2: TransferState state,
}
+struct UploadOptions {
+ 1: bool serverSideCopying,
+}
+
struct SatelliteConfig {
// Get number of items returned per page (for calls that have a page parameter)
1: i32 pageSize,
@@ -440,9 +444,13 @@ service SatelliteServer {
throws (1:TTransferRejectedException rejection, 2:TAuthorizationException authError, 3:TInvocationException ffff, 4:TNotFoundException sdf),
// Client updates block hashes of an upload
- void updateBlockHashes(1: Token uploadToken, 2: list<binary> blockHashes)
+ void updateBlockHashes(1: Token uploadToken, 2: list<binary> blockHashes, 3: Token userToken)
throws (1:TInvalidTokenException ex1),
+ // Change settings for a specific upload
+ UploadOptions setUploadOptions(1: Token userToken, 2: Token uploadToken, 3: UploadOptions options)
+ throws (1:TAuthorizationException frootloops, 2:TInvalidTokenException imcyborgbutthatsok),
+
// Client cancels an upload
void cancelUpload(1: Token uploadToken)
throws (1:TInvalidTokenException ex1),