Nix 2.32.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
virtual 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
void registerDrvOutput (const Realisation &output) override
void narFromPath (const StorePath &path, Sink &sink) override
void queryRealisationUncached (const DrvOutput &, Callback< std::shared_ptr< const Realisation > > callback) noexcept override
std::shared_ptr< SourceAccessor > getFSAccessor (const StorePath &path, bool requireValidPath) override
ref< SourceAccessor > getFSAccessor (bool requireValidPath) override

Public Attributes

ref< WholeStoreViewAccessor > wholeStoreView = make_ref<WholeStoreViewAccessor>()

Member Function Documentation

◆ isTrustedClient()

virtual std::optional< TrustedFlag > nix::DummyStoreImpl::isTrustedClient ( )
inlineoverridevirtual

The dummy store is incapable of not trusting! :)

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.32.6-build/nix-2.32.6/src/libstore/dummy-store.cc