Eliminate local-binary-cache-store.hh

This commit is contained in:
Eelco Dolstra 2016-02-29 16:14:39 +01:00
parent 68a5414982
commit 0402b6398d
2 changed files with 25 additions and 32 deletions

View file

@ -1,7 +1,31 @@
#include "local-binary-cache-store.hh" #include "binary-cache-store.hh"
namespace nix { namespace nix {
class LocalBinaryCacheStore : public BinaryCacheStore
{
private:
Path binaryCacheDir;
public:
LocalBinaryCacheStore(std::shared_ptr<Store> localStore,
const Path & secretKeyFile, const Path & publicKeyFile,
const Path & binaryCacheDir);
void init() override;
protected:
bool fileExists(const std::string & path) override;
void upsertFile(const std::string & path, const std::string & data) override;
std::string getFile(const std::string & path) override;
};
LocalBinaryCacheStore::LocalBinaryCacheStore(std::shared_ptr<Store> localStore, LocalBinaryCacheStore::LocalBinaryCacheStore(std::shared_ptr<Store> localStore,
const Path & secretKeyFile, const Path & publicKeyFile, const Path & secretKeyFile, const Path & publicKeyFile,
const Path & binaryCacheDir) const Path & binaryCacheDir)

View file

@ -1,31 +0,0 @@
#pragma once
#include "binary-cache-store.hh"
namespace nix {
class LocalBinaryCacheStore : public BinaryCacheStore
{
private:
Path binaryCacheDir;
public:
LocalBinaryCacheStore(std::shared_ptr<Store> localStore,
const Path & secretKeyFile, const Path & publicKeyFile,
const Path & binaryCacheDir);
void init() override;
protected:
bool fileExists(const std::string & path) override;
void upsertFile(const std::string & path, const std::string & data) override;
std::string getFile(const std::string & path) override;
};
}