mirror of
https://github.com/NixOS/nix
synced 2025-07-07 01:51:47 +02:00
Allow parameters in store URIs
This is to allow store-specific configuration, e.g. s3://my-cache?compression=bzip2&secret-key=/path/to/key.
This commit is contained in:
parent
aa3bc3d5dc
commit
95d20dfde9
9 changed files with 56 additions and 8 deletions
|
@ -192,7 +192,7 @@ public:
|
|||
|
||||
virtual ~Store() { }
|
||||
|
||||
virtual std::string getUri();
|
||||
virtual std::string getUri() = 0;
|
||||
|
||||
/* Check whether a path is valid. */
|
||||
bool isValidPath(const Path & path);
|
||||
|
@ -540,7 +540,10 @@ std::list<ref<Store>> getDefaultSubstituters();
|
|||
|
||||
|
||||
/* Store implementation registration. */
|
||||
typedef std::function<std::shared_ptr<Store>(const std::string & uri)> OpenStore;
|
||||
typedef std::map<std::string, std::string> StoreParams;
|
||||
|
||||
typedef std::function<std::shared_ptr<Store>(
|
||||
const std::string & uri, const StoreParams & params)> OpenStore;
|
||||
|
||||
struct RegisterStoreImplementation
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue