diff options
| author | Michael Petretti | 2014-06-30 17:03:58 +0200 |
|---|---|---|
| committer | Michael Petretti | 2014-06-30 17:03:58 +0200 |
| commit | c545240f4efbde812b369859244b62e9d1727fea (patch) | |
| tree | c6a9b78ebbe7b83f00b36a76a3e331c0b8b78af4 /src/main/thrift | |
| parent | Added missing block to pom.xml (diff) | |
| parent | Add new auto compiled files (diff) | |
| download | master-sync-shared-c545240f4efbde812b369859244b62e9d1727fea.tar.gz master-sync-shared-c545240f4efbde812b369859244b62e9d1727fea.tar.xz master-sync-shared-c545240f4efbde812b369859244b62e9d1727fea.zip | |
Merge branch 'master' of git.openslx.org:bwlp/master-sync-shared
Diffstat (limited to 'src/main/thrift')
| -rw-r--r-- | src/main/thrift/imagemaster.thrift | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/src/main/thrift/imagemaster.thrift b/src/main/thrift/imagemaster.thrift index 7986d4c..0b8b95b 100644 --- a/src/main/thrift/imagemaster.thrift +++ b/src/main/thrift/imagemaster.thrift @@ -34,6 +34,10 @@ enum ImageDataError { UNKNOWN_IMAGE } +enum UploadError { + INVALID_CRC +} + exception AuthorizationException { 1: AuthorizationError number, 2: string message @@ -57,6 +61,11 @@ exception ImageDataException { 2: string message } +exception UploadException { + 1: UploadError numberm + 2: string message +} + struct UserInfo { 1: string userId, 2: string firstName, @@ -76,6 +85,15 @@ struct FtpCredentials { 3: string filename } +struct UploadInfos { + 1: string token, + 2: list<i32> missingBlocks +} + +struct DownloadInfos { + 1: string token +} + struct ServerSessionData { 1: ID sessionId } @@ -107,13 +125,9 @@ service ImageServer { ServerSessionData serverAuthenticate(1:string organization, 2:binary challengeResponse) throws (1:ServerAuthenticationException failure), - FtpCredentials submitImage(1:string serverSessionId, 2:ImageData imageDescription) throws (1:AuthorizationException failure, 2: ImageDataException failure2), - - bool finishedUpload(1:string ftpUser, 2:ImageData imageDescription) throws (1: ImageDataException failure), - - FtpCredentials getImage(1:UUID uuid, 2:string serverSessionId) throws (1:AuthorizationException failure, 2: ImageDataException failure2), + UploadInfos submitImage(1:string serverSessionId, 2:ImageData imageDescription) throws (1:AuthorizationException failure, 2: ImageDataException failure2, 3: UploadException failure3), - bool finishedDownload(1:string ftpUser) + DownloadInfos getImage(1:UUID uuid, 2:string serverSessionId) throws (1:AuthorizationException failure, 2: ImageDataException failure2), } |
