diff options
Diffstat (limited to 'src/libstore/binary-cache-store.hh')
-rw-r--r-- | src/libstore/binary-cache-store.hh | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/libstore/binary-cache-store.hh b/src/libstore/binary-cache-store.hh index 574696cf3a1f..333cf08562a0 100644 --- a/src/libstore/binary-cache-store.hh +++ b/src/libstore/binary-cache-store.hh @@ -19,12 +19,16 @@ private: std::string compression; + bool writeNARListing; + protected: BinaryCacheStore(const Params & params); [[noreturn]] void notImpl(); +public: + virtual bool fileExists(const std::string & path) = 0; virtual void upsertFile(const std::string & path, const std::string & data) = 0; @@ -37,6 +41,8 @@ protected: std::shared_ptr<std::string> getFile(const std::string & path); +protected: + bool wantMassQuery_ = false; int priority = 50; @@ -86,7 +92,7 @@ public: bool wantMassQuery() override { return wantMassQuery_; } - void addToStore(const ValidPathInfo & info, const std::string & nar, + void addToStore(const ValidPathInfo & info, const ref<std::string> & nar, bool repair = false, bool dontCheckSigs = false) override; Path addToStore(const string & name, const Path & srcPath, |