diff options
Diffstat (limited to 'src/main/thrift/bwlp.thrift')
-rw-r--r-- | src/main/thrift/bwlp.thrift | 9 |
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 */ |