|
Nix 2.34.7
Nix, the purely functional package manager; unstable internal interfaces
|
Public Types | |
| using | Config = DummyStoreConfig |
Public Member Functions | |
| DummyStoreImpl (ref< const Config > config) | |
| void | queryPathInfoUncached (const StorePath &path, Callback< std::shared_ptr< const ValidPathInfo > > callback) noexcept override |
| bool | isValidPathUncached (const StorePath &path) override |
| std::optional< TrustedFlag > | isTrustedClient () override |
| std::optional< StorePath > | queryPathFromHashPart (const std::string &hashPart) override |
| void | addToStore (const ValidPathInfo &info, Source &source, RepairFlag repair, CheckSigsFlag checkSigs) override |
| StorePath | addToStoreFromDump (Source &source, std::string_view name, FileSerialisationMethod dumpMethod=FileSerialisationMethod::NixArchive, ContentAddressMethod hashMethod=FileIngestionMethod::NixArchive, HashAlgorithm hashAlgo=HashAlgorithm::SHA256, const StorePathSet &references=StorePathSet(), RepairFlag repair=NoRepair) override |
| StorePath | writeDerivation (const Derivation &drv, RepairFlag repair=NoRepair) override |
| Derivation | readDerivation (const StorePath &drvPath) override |
| Derivation | readInvalidDerivation (const StorePath &drvPath) override |
| void | registerDrvOutput (const Realisation &output) override |
| void | queryRealisationUncached (const DrvOutput &drvOutput, Callback< std::shared_ptr< const UnkeyedRealisation > > callback) noexcept override |
| std::shared_ptr< MemorySourceAccessor > | getMemoryFSAccessor (const StorePath &path, bool requireValidPath=true) |
| std::shared_ptr< SourceAccessor > | getFSAccessor (const StorePath &path, bool requireValidPath=true) override |
| ref< SourceAccessor > | getFSAccessor (bool requireValidPath) override |
Public Attributes | |
| ref< WholeStoreViewAccessor > | wholeStoreView = make_ref<WholeStoreViewAccessor>() |
|
inlineoverride |
The dummy store is incapable of not trusting! :)
|
inlineoverride |
Do this to avoid queryPathInfoUncached computing PathInfo that we don't need just to return a bool.
|
inlineoverride |
No such thing as an "invalid derivation" with the dummy store
| ref<WholeStoreViewAccessor> nix::DummyStoreImpl::wholeStoreView = make_ref<WholeStoreViewAccessor>() |
This view conceptually just borrows the file systems objects of each store object from contents, and combines them together into one store-wide source accessor.
This is needed just in order to implement Store::getFSAccessor.