aboutsummaryrefslogtreecommitdiff
path: root/zenserver/projectstore.h
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-11-18 11:35:13 +0100
committerGitHub <[email protected]>2022-11-18 02:35:13 -0800
commit55225621f018904abf7e212320bb784dc64f8ac3 (patch)
tree3fb962e9e0553448f9d42612bb078ff072308e1c /zenserver/projectstore.h
parentmove BasicFile to zenutil to remove zenstore dependency from zen command (#190) (diff)
downloadzen-55225621f018904abf7e212320bb784dc64f8ac3.tar.xz
zen-55225621f018904abf7e212320bb784dc64f8ac3.zip
Add `import-project` and `export-project` (#183)
* Add `import-project` and `export-project` command line parsing
Diffstat (limited to 'zenserver/projectstore.h')
-rw-r--r--zenserver/projectstore.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/zenserver/projectstore.h b/zenserver/projectstore.h
index 00fb613d9..c62e7840d 100644
--- a/zenserver/projectstore.h
+++ b/zenserver/projectstore.h
@@ -90,6 +90,8 @@ public:
*/
uint32_t AppendNewOplogEntry(CbPackage Op);
+ uint32_t AppendNewOplogEntry(CbObject Core);
+
enum UpdateType
{
kUpdateNewEntry,
@@ -222,6 +224,24 @@ public:
virtual void CollectGarbage(GcContext& GcCtx) override;
virtual GcStorageSize StorageSize() const override;
+ CbArray GetProjectsList();
+ HttpResponseCode GetProjectFiles(const std::string_view ProjectId,
+ const std::string_view OplogId,
+ bool FilterClient,
+ CbObject& OutPayload);
+ HttpResponseCode GetChunkInfo(const std::string_view ProjectId,
+ const std::string_view OplogId,
+ const std::string_view ChunkId,
+ CbObject& OutPayload);
+ HttpResponseCode GetChunk(const std::string_view ProjectId,
+ const std::string_view OplogId,
+ const std::string_view ChunkId,
+ uint64_t Offset,
+ uint64_t Size,
+ ZenContentType AcceptType,
+ IoBuffer& OutChunk);
+ HttpResponseCode GetChunk(const std::string_view Cid, ZenContentType AcceptType, IoBuffer& OutChunk);
+
private:
spdlog::logger& m_Log;
CidStore& m_CidStore;