Register LocalStore to ensure it's included in the manual
This commit is contained in:
parent
161f4b0dea
commit
b79df9dedc
|
@ -420,6 +420,13 @@ LocalStore::LocalStore(const Params & params)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
LocalStore::LocalStore(std::string scheme, std::string path, const Params & params)
|
||||||
|
: LocalStore(params)
|
||||||
|
{
|
||||||
|
throw UnimplementedError("LocalStore");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
AutoCloseFD LocalStore::openGCLock()
|
AutoCloseFD LocalStore::openGCLock()
|
||||||
{
|
{
|
||||||
Path fnGCLock = stateDir + "/gc.lock";
|
Path fnGCLock = stateDir + "/gc.lock";
|
||||||
|
@ -1957,5 +1964,6 @@ std::optional<std::string> LocalStore::getVersion()
|
||||||
return nixVersion;
|
return nixVersion;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static RegisterStoreImplementation<LocalStore, LocalStoreConfig> regLocalStore;
|
||||||
|
|
||||||
} // namespace nix
|
} // namespace nix
|
||||||
|
|
|
@ -102,9 +102,13 @@ public:
|
||||||
/* Initialise the local store, upgrading the schema if
|
/* Initialise the local store, upgrading the schema if
|
||||||
necessary. */
|
necessary. */
|
||||||
LocalStore(const Params & params);
|
LocalStore(const Params & params);
|
||||||
|
LocalStore(std::string scheme, std::string path, const Params & params);
|
||||||
|
|
||||||
~LocalStore();
|
~LocalStore();
|
||||||
|
|
||||||
|
static std::set<std::string> uriSchemes()
|
||||||
|
{ return {}; }
|
||||||
|
|
||||||
/* Implementations of abstract store API methods. */
|
/* Implementations of abstract store API methods. */
|
||||||
|
|
||||||
std::string getUri() override;
|
std::string getUri() override;
|
||||||
|
|
|
@ -26,9 +26,9 @@ UDSRemoteStore::UDSRemoteStore(const Params & params)
|
||||||
|
|
||||||
|
|
||||||
UDSRemoteStore::UDSRemoteStore(
|
UDSRemoteStore::UDSRemoteStore(
|
||||||
const std::string scheme,
|
const std::string scheme,
|
||||||
std::string socket_path,
|
std::string socket_path,
|
||||||
const Params & params)
|
const Params & params)
|
||||||
: UDSRemoteStore(params)
|
: UDSRemoteStore(params)
|
||||||
{
|
{
|
||||||
path.emplace(socket_path);
|
path.emplace(socket_path);
|
||||||
|
|
Loading…
Reference in a new issue