summaryrefslogtreecommitdiffstats
path: root/src/main/thrift/bwlp.thrift
diff options
context:
space:
mode:
authorSimon Rettberg2016-04-26 15:36:44 +0200
committerSimon Rettberg2016-04-26 15:36:44 +0200
commit7e6ae485d3e797d6c793e3a9aa6c11f6373216aa (patch)
tree9e2f53c5ad71be39f0702037db05a5462ecdd53a /src/main/thrift/bwlp.thrift
parentTruncate files if they are resumed and bigger than expected (diff)
downloadmaster-sync-shared-7e6ae485d3e797d6c793e3a9aa6c11f6373216aa.tar.gz
master-sync-shared-7e6ae485d3e797d6c793e3a9aa6c11f6373216aa.tar.xz
master-sync-shared-7e6ae485d3e797d6c793e3a9aa6c11f6373216aa.zip
Rework master.getPublicImages to use ImageSummaryRead, add master.getImageDetails
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 1389008..4985da0 100644
--- a/src/main/thrift/bwlp.thrift
+++ b/src/main/thrift/bwlp.thrift
@@ -598,9 +598,17 @@ service MasterServer {
throws (1:TAuthorizationException failure, 2:TInvocationException error),
// Get list of publicly available images
- list<ImagePublishData> getPublicImages(1:Token sessionId, 2:i32 page)
+ list<ImageSummaryRead> getPublicImages(1:Token sessionId, 2:i32 page)
throws (1:TAuthorizationException failure, 2:TInvocationException error),
+ // Query detailed information about an image
+ ImageDetailsRead getImageDetails(1: Token sessionId, 2: UUID imageBaseId)
+ throws (1:TAuthorizationException authError, 2:TNotFoundException notFound, 3:TInvocationException serverError),
+
+ // Get user by id
+ UserInfo getUser(1: Token userToken, 2: UUID userId)
+ throws (1:TAuthorizationException authError, 2:TNotFoundException notFound, 3:TInvocationException serverError),
+
// Logout
void invalidateSession(1: Token sessionId)
throws (1:TInvalidTokenException ex),