Nix 2.34.6
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::DummyStoreImpl Struct Reference
Inheritance diagram for nix::DummyStoreImpl:

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>()

Member Function Documentation

◆ isTrustedClient()

std::optional< TrustedFlag > nix::DummyStoreImpl::isTrustedClient ( )
inlineoverride

The dummy store is incapable of not trusting! :)

◆ isValidPathUncached()

bool nix::DummyStoreImpl::isValidPathUncached ( const StorePath & path)
inlineoverride

Do this to avoid queryPathInfoUncached computing PathInfo that we don't need just to return a bool.

◆ readInvalidDerivation()

Derivation nix::DummyStoreImpl::readInvalidDerivation ( const StorePath & drvPath)
inlineoverride

No such thing as an "invalid derivation" with the dummy store

Member Data Documentation

◆ wholeStoreView

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.


The documentation for this struct was generated from the following file:
  • /builddir/build/BUILD/nix-2.34.6-build/nix-2.34.6/src/libstore/dummy-store.cc