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

Public Member Functions

 RestrictedStore (ref< LocalStore::Config > config, ref< LocalStore > next, RestrictionContext &goal)
 
Path getRealStoreDir () override
 
std::string getUri () override
 
StorePathSet queryAllValidPaths () override
 
void queryPathInfoUncached (const StorePath &path, Callback< std::shared_ptr< const ValidPathInfo > > callback) noexcept override
 
void queryReferrers (const StorePath &path, StorePathSet &referrers) override
 
std::map< std::string, std::optional< StorePath > > queryPartialDerivationOutputMap (const StorePath &path, Store *evalStore=nullptr) override
 
std::optional< StorePath > queryPathFromHashPart (const std::string &hashPart) override
 
StorePath addToStore (std::string_view name, const SourcePath &srcPath, ContentAddressMethod method, HashAlgorithm hashAlgo, const StorePathSet &references, PathFilter &filter, RepairFlag repair) override
 
void addToStore (const ValidPathInfo &info, Source &narSource, RepairFlag repair=NoRepair, CheckSigsFlag checkSigs=CheckSigs) override
 
StorePath addToStoreFromDump (Source &dump, std::string_view name, FileSerialisationMethod dumpMethod, ContentAddressMethod hashMethod, HashAlgorithm hashAlgo, const StorePathSet &references, RepairFlag repair) override
 
void narFromPath (const StorePath &path, Sink &sink) override
 
void ensurePath (const StorePath &path) override
 
void registerDrvOutput (const Realisation &info) override
 
void queryRealisationUncached (const DrvOutput &id, Callback< std::shared_ptr< const Realisation > > callback) noexcept override
 
void buildPaths (const std::vector< DerivedPath > &paths, BuildMode buildMode, std::shared_ptr< Store > evalStore) override
 
std::vector< KeyedBuildResult > buildPathsWithResults (const std::vector< DerivedPath > &paths, BuildMode buildMode=bmNormal, std::shared_ptr< Store > evalStore=nullptr) override
 
BuildResult buildDerivation (const StorePath &drvPath, const BasicDerivation &drv, BuildMode buildMode=bmNormal) override
 
void addTempRoot (const StorePath &path) override
 
void addIndirectRoot (const Path &path) override
 
Roots findRoots (bool censor) override
 
void collectGarbage (const GCOptions &options, GCResults &results) override
 
void addSignatures (const StorePath &storePath, const StringSet &sigs) override
 
void queryMissing (const std::vector< DerivedPath > &targets, StorePathSet &willBuild, StorePathSet &willSubstitute, StorePathSet &unknown, uint64_t &downloadSize, uint64_t &narSize) override
 
virtual std::optional< std::string > getBuildLogExact (const StorePath &path) override
 
virtual void addBuildLog (const StorePath &path, std::string_view log) override
 
std::optional< TrustedFlag > isTrustedClient () override
 

Public Attributes

ref< const LocalStore::Config > config
 
ref< LocalStore > next
 
RestrictionContext & goal
 

Detailed Description

A wrapper around LocalStore that only allows building/querying of paths that are in the input closures of the build or were added via recursive Nix calls.


The documentation for this struct was generated from the following file: