summaryrefslogtreecommitdiffstats
path: root/src/main/thrift
diff options
context:
space:
mode:
authorSimon Rettberg2014-09-23 18:08:57 +0200
committerSimon Rettberg2014-09-23 18:08:57 +0200
commit4035e5427caceb9ab8b9aa8904c0754019ce2783 (patch)
tree845bc53f067da00d010e2007eb35fad922ef018b /src/main/thrift
parentRemoved missingBlocks and allBlocksValid from uploadInfos. (diff)
downloadmaster-sync-shared-4035e5427caceb9ab8b9aa8904c0754019ce2783.tar.gz
master-sync-shared-4035e5427caceb9ab8b9aa8904c0754019ce2783.tar.xz
master-sync-shared-4035e5427caceb9ab8b9aa8904c0754019ce2783.zip
Change Date to UnixTimestamp, add Exception codes to UploadError
Diffstat (limited to 'src/main/thrift')
-rw-r--r--src/main/thrift/imagemaster.thrift20
1 files changed, 8 insertions, 12 deletions
diff --git a/src/main/thrift/imagemaster.thrift b/src/main/thrift/imagemaster.thrift
index 7b8e8c1..6282952 100644
--- a/src/main/thrift/imagemaster.thrift
+++ b/src/main/thrift/imagemaster.thrift
@@ -8,7 +8,7 @@ namespace php testing
typedef string ID
typedef string Token
typedef string UUID
-typedef i64 Date
+typedef i64 UnixTimestamp
enum AuthorizationError {
GENERIC_ERROR,
@@ -37,7 +37,9 @@ enum ImageDataError {
enum UploadError {
INVALID_CRC,
- BROKEN_BLOCK
+ BROKEN_BLOCK,
+ GENERIC_ERROR,
+ INVALID_METADATA
}
exception AuthorizationException {
@@ -81,15 +83,9 @@ struct SessionData {
3: string serverAddress
}
-struct FtpCredentials {
- 1: string username,
- 2: string password,
- 3: string filename
-}
-
struct UploadInfos {
1: string token,
- 2: i32 port,
+ 2: i32 port
}
struct DownloadInfos {
@@ -105,8 +101,8 @@ struct ImageData {
1: UUID uuid,
2: i32 imageVersion,
3: string imageName,
- 4: Date imageCreateTime,
- 5: Date imageUpdateTime,
+ 4: UnixTimestamp imageCreateTime,
+ 5: UnixTimestamp imageUpdateTime,
6: string imageOwner,
7: string contentOperatingSystem,
8: bool statusIsValid,
@@ -134,4 +130,4 @@ service ImageServer {
DownloadInfos getImage(1:UUID uuid, 2:string serverSessionId) throws (1:AuthorizationException failure, 2: ImageDataException failure2),
-} \ No newline at end of file
+}