From cc70f09431deb7937e01cc6583884fb5067a2994 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Mon, 18 Apr 2016 15:18:05 +0200 Subject: More additions for central image store --- src/main/thrift/bwlp.thrift | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/main/thrift') 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 software, 9: list 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 */ -- cgit v1.2.3-55-g7522