Eliminate local-binary-cache-store.hh
This commit is contained in:
		
							parent
							
								
									68a5414982
								
							
						
					
					
						commit
						0402b6398d
					
				
					 2 changed files with 25 additions and 32 deletions
				
			
		| 
						 | 
				
			
			@ -1,7 +1,31 @@
 | 
			
		|||
#include "local-binary-cache-store.hh"
 | 
			
		||||
#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;
 | 
			
		||||
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
LocalBinaryCacheStore::LocalBinaryCacheStore(std::shared_ptr<Store> localStore,
 | 
			
		||||
    const Path & secretKeyFile, const Path & publicKeyFile,
 | 
			
		||||
    const Path & binaryCacheDir)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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;
 | 
			
		||||
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue