summaryrefslogtreecommitdiffstats
path: root/src/main/thrift/bwlp.thrift
diff options
context:
space:
mode:
authorSimon Rettberg2016-04-18 15:18:05 +0200
committerSimon Rettberg2016-04-18 15:18:05 +0200
commitcc70f09431deb7937e01cc6583884fb5067a2994 (patch)
treefcf7c8720a4479b09e07c82eb13f7015bb4d0533 /src/main/thrift/bwlp.thrift
parentPreparations/changes for global image sync (diff)
downloadmaster-sync-shared-cc70f09431deb7937e01cc6583884fb5067a2994.tar.gz
master-sync-shared-cc70f09431deb7937e01cc6583884fb5067a2994.tar.xz
master-sync-shared-cc70f09431deb7937e01cc6583884fb5067a2994.zip
More additions for central image store
Diffstat (limited to 'src/main/thrift/bwlp.thrift')
-rw-r--r--src/main/thrift/bwlp.thrift9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main/thrift/bwlp.thrift b/src/main/thrift/bwlp.thrift
index 4020be5..57afb0e 100644
--- a/src/main/thrift/bwlp.thrift
+++ b/src/main/thrift/bwlp.thrift
@@ -220,13 +220,14 @@ struct ImagePublishData {
3: string imageName,
4: string description,
5: UnixTimestamp createTime,
- 6: UserInfo user,
+ 6: UserInfo uploader,
7: i64 fileSize,
8: list<string> software,
9: list<string> tags,
10: i32 osId,
11: string virtId,
12: bool isTemplate,
+ 13: UserInfo owner,
}
struct NetRule {
@@ -402,7 +403,7 @@ exception TInvocationException {
service SatelliteServer {
// Get server (thrift interface) version
- int getVersion(),
+ int getVersion(1: int clientVersion),
// Get configuration parameters of this satellite server
SatelliteConfig getConfiguration(),
@@ -528,6 +529,10 @@ service SatelliteServer {
UUID requestImageReplication(1:Token userToken, 2: UUID imageVersionId)
throws (1:TAuthorizationException authError, 2:TNotFoundException notFound, 3:TInvocationException serverError),
+ // Client asks the satellite to publish given image to master server
+ UUID publishImageVersion(1:Token userToken, 2: UUID imageVersionId)
+ throws (1:TAuthorizationException authError, 2:TNotFoundException notFound, 3:TInvocationException serverError, 4:TTransferRejectedException tre),
+
/*
* Lecture related
*/