diff options
Diffstat (limited to 'zenserver/upstream/jupiter.h')
| -rw-r--r-- | zenserver/upstream/jupiter.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/zenserver/upstream/jupiter.h b/zenserver/upstream/jupiter.h index 868a7b099..f05e059bd 100644 --- a/zenserver/upstream/jupiter.h +++ b/zenserver/upstream/jupiter.h @@ -51,6 +51,7 @@ struct CloudCacheResult int32_t ErrorCode = {}; std::string Reason; bool Success = false; + bool Exists = false; }; /** @@ -70,12 +71,23 @@ public: CloudCacheResult GetDerivedData(std::string_view BucketId, std::string_view Key); CloudCacheResult GetDerivedData(std::string_view BucketId, const IoHash& Key); CloudCacheResult GetRef(std::string_view BucketId, const IoHash& Key, ZenContentType RefType); + CloudCacheResult GetBlob(const IoHash& Key); CloudCacheResult GetCompressedBlob(const IoHash& Key); + CloudCacheResult GetObject(const IoHash& Key); CloudCacheResult PutDerivedData(std::string_view BucketId, std::string_view Key, IoBuffer DerivedData); CloudCacheResult PutDerivedData(std::string_view BucketId, const IoHash& Key, IoBuffer DerivedData); CloudCacheResult PutRef(std::string_view BucketId, const IoHash& Key, IoBuffer Ref, ZenContentType RefType); + CloudCacheResult PutBlob(const IoHash& Key, IoBuffer Blob); CloudCacheResult PutCompressedBlob(const IoHash& Key, IoBuffer Blob); + CloudCacheResult PutObject(const IoHash& Key, IoBuffer Object); + + CloudCacheResult DerivedDataExists(std::string_view BucketId, std::string_view Key); + CloudCacheResult DerivedDataExists(std::string_view BucketId, const IoHash& Key); + CloudCacheResult RefExists(std::string_view BucketId, const IoHash& Key); + CloudCacheResult BlobExists(const IoHash& Key); + CloudCacheResult CompressedBlobExists(const IoHash& Key); + CloudCacheResult ObjectExists(const IoHash& Key); std::vector<IoHash> Filter(std::string_view BucketId, const std::vector<IoHash>& ChunkHashes); |