Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
store-api.hh
Go to the documentation of this file.
1#pragma once
3
5#include "nix/store/path.hh"
7#include "nix/util/hash.hh"
10#include "nix/util/lru-cache.hh"
11#include "nix/util/sync.hh"
15#include "nix/store/store-dir-config.hh"
19
20#include <nlohmann/json_fwd.hpp>
21#include <atomic>
22#include <map>
23#include <memory>
24#include <string>
25#include <chrono>
26
27namespace nix {
28
29MakeError(InvalidPath, Error);
30MakeError(Unsupported, Error);
31
32MakeError(InvalidStoreReference, Error);
33
35struct Realisation;
36struct RealisedPath;
37struct DrvOutput;
38
39namespace derivation {
40template<typename Inputs, typename Out>
41struct Derivation;
42struct Output;
43} // namespace derivation
44
47
48struct SourceAccessor;
49struct NarInfoDiskCache;
51class Store;
52
53typedef std::map<std::string, StorePath> OutputPathMap;
54
55enum CheckSigsFlag : bool { NoCheckSigs = false, CheckSigs = true };
56
57enum BuildMode : uint8_t { bmNormal, bmRepair, bmCheck };
58
59enum TrustedFlag : bool { NotTrusted = false, Trusted = true };
60
61struct BuildResult;
62struct KeyedBuildResult;
63
64struct Builder;
65
66typedef std::map<StorePath, std::optional<ContentAddress>> StorePathCAMap;
67
73{
74 StorePathSet willBuild;
75 StorePathSet willSubstitute;
76 StorePathSet unknown;
77 uint64_t downloadSize{0};
78 uint64_t narSize{0};
79};
80
85struct StoreConfigBase : Config
86{
87private:
88 void anchor() override;
89
90protected:
91
108 enum struct FilePathType {
131 Unix,
132
163 Native,
164 };
165
166public:
167
176 class StoreDirSetting : public BaseSetting<std::string>
177 {
178 friend StoreConfigBase;
179
180 FilePathType pathType;
181
189 StoreDirSetting(Config * options, FilePathType pathType);
190
191 std::string parse(const std::string & str) const override;
192
193 void operator=(const std::string & v)
194 {
195 this->assign(v);
196 }
197 };
198
199 StoreDirSetting storeDir_;
200
204 StoreConfigBase(const StoreReference::Params & params, FilePathType pathType);
205};
206
239struct StoreConfig : public StoreConfigBase, public StoreDirConfig
240{
241private:
242 void anchor() override;
243
244public:
245 using Params = StoreReference::Params;
246
247 StoreConfig(const Params & params, FilePathType pathType);
248
249 StoreConfig() = delete;
250
251 virtual ~StoreConfig() {}
252
253 static StringSet getDefaultSystemFeatures();
254
258 static std::string doc()
259 {
260 return "";
261 }
262
267 {
268 auto queryParams = std::map<std::string, AbstractConfig::SettingInfo>{};
269 getSettings(queryParams, /*overriddenOnly=*/true);
270 StringMap res;
271 for (const auto & [name, info] : queryParams)
272 res.insert({name, info.value});
273 return res;
274 }
275
280 static std::optional<ExperimentalFeature> experimentalFeature()
281 {
282 return std::nullopt;
283 }
284
285 Setting<int> pathInfoCacheSize{
286 this, 65536, "path-info-cache-size", "Size of the in-memory store path metadata cache."};
287
288 Setting<bool> isTrusted{
289 this,
290 false,
291 "trusted",
292 R"(
293 Whether paths from this store can be used as substitutes
294 even if they are not signed by a key listed in the
295 [`trusted-public-keys`](@docroot@/command-ref/conf-file.md#conf-trusted-public-keys)
296 setting.
297 )"};
298
299 Setting<int> priority{
300 this,
301 0,
302 "priority",
303 R"(
304 Priority of this store when used as a [substituter](@docroot@/command-ref/conf-file.md#conf-substituters).
305 A lower value means a higher priority.
306 )"};
307
308 Setting<bool> wantMassQuery{
309 this,
310 false,
311 "want-mass-query",
312 R"(
313 Whether this store can be queried efficiently for path validity when used as a [substituter](@docroot@/command-ref/conf-file.md#conf-substituters).
314 )"};
315
316 Setting<StringSet> systemFeatures{
317 this,
318 getDefaultSystemFeatures(),
319 "system-features",
320 R"(
321 Optional [system features](@docroot@/command-ref/conf-file.md#conf-system-features) available on the system this store uses to build derivations.
322
323 Example: `"kvm"`
324 )",
325 {},
326 // Don't document the machine-specific default value
327 false};
328
333 virtual bool getReadOnly() const;
334
342 virtual const std::filesystem::path & getStateDir() const;
343
351 virtual const std::filesystem::path & getLogDir() const;
352
357 virtual ref<Store> openStore() const = 0;
358
364 virtual StoreReference getReference() const;
365
377 virtual std::string getHumanReadableURI() const
378 {
379 return getReference().render(/*withParams=*/false);
380 }
381};
382
383struct Activity;
384
396class Store : public std::enable_shared_from_this<Store>, public StoreDirConfig
397{
398 /* VTable anchor to avoid weak linkage of the vtable - it breaks
399 dynamic_cast across shared libraries on Darwin. */
400 virtual void anchor() = 0;
401
402public:
403
404 using Config = StoreConfig;
405
406 const Config & config;
407
411 operator const Config &() const
412 {
413 return config;
414 }
415
416protected:
417
419 {
420
424 std::chrono::time_point<std::chrono::steady_clock> time_point = std::chrono::steady_clock::now();
425
429 std::shared_ptr<const ValidPathInfo> value;
430
435 bool isKnownNow(const NarInfoDiskCacheSettings & settings);
436
441 inline bool didExist()
442 {
443 return value != nullptr;
444 }
445 };
446
447 void invalidatePathInfoCacheFor(const StorePath & path);
448
449 // Note: this is a `shared_ptr` to avoid false sharing with immutable
450 // bits of `Store`.
451 std::shared_ptr<SharedSync<LRUCache<StorePath, PathInfoCacheValue>>> pathInfoCache;
452
453 std::shared_ptr<NarInfoDiskCache> diskCache;
454
455 Store(const Store::Config & config);
456
457public:
462 virtual void init() {};
463
464 virtual ~Store() {}
465
473 virtual ref<Builder> getBuilder(std::shared_ptr<Store> evalStore = nullptr);
474
478 std::filesystem::path followLinksToStore(std::string_view path) const;
479
484 StorePath followLinksToStorePath(std::string_view path) const;
485
489 bool isValidPath(const StorePath & path);
490
491protected:
492
493 virtual bool isValidPathUncached(const StorePath & path);
494
495public:
496
504 void substitutePaths(const StorePathSet & paths);
505
510 virtual StorePathSet queryValidPaths(const StorePathSet & paths, SubstituteFlag maybeSubstitute = NoSubstitute);
511
520 virtual StorePathSet queryAllValidPaths()
521 {
522 unsupported("queryAllValidPaths");
523 }
524
525 constexpr static const char * MissingName = "x";
526
532
536 void queryPathInfo(const StorePath & path, Callback<ref<const ValidPathInfo>> callback) noexcept;
537
546 std::optional<std::shared_ptr<const ValidPathInfo>> queryPathInfoFromClientCache(const StorePath & path);
547
551 std::shared_ptr<const UnkeyedRealisation> queryRealisation(const DrvOutput &);
552
556 void queryRealisation(const DrvOutput &, Callback<std::shared_ptr<const UnkeyedRealisation>> callback) noexcept;
557
569 virtual bool pathInfoIsUntrusted(const ValidPathInfo &)
570 {
571 return true;
572 }
573
574 virtual bool realisationIsUntrusted(const Realisation &)
575 {
576 return true;
577 }
578
579protected:
580
581 virtual void
582 queryPathInfoUncached(const StorePath & path, Callback<std::shared_ptr<const ValidPathInfo>> callback) noexcept = 0;
583 virtual void queryRealisationUncached(
584 const DrvOutput &, Callback<std::shared_ptr<const UnkeyedRealisation>> callback) noexcept = 0;
585
586public:
587
592 virtual void queryReferrers(const StorePath & path, StorePathSet & referrers)
593 {
594 unsupported("queryReferrers");
595 }
596
605 virtual StorePathSet queryValidDerivers(const StorePath & path)
606 {
607 return {};
608 };
609
613 virtual StorePathSet queryDerivationOutputs(const StorePath & path);
614
620 virtual std::map<std::string, std::optional<StorePath>>
621 queryPartialDerivationOutputMap(const StorePath & path, Store * evalStore = nullptr);
622
631 virtual std::map<std::string, std::optional<StorePath>>
633
637 virtual std::optional<StorePath>
638 queryStaticPartialDerivationOutput(const StorePath & path, const std::string & outputName);
639
644 OutputPathMap queryDerivationOutputMap(const StorePath & path, Store * evalStore = nullptr);
645
650 virtual std::optional<StorePath> queryPathFromHashPart(const std::string & hashPart) = 0;
651
655 virtual StorePathSet querySubstitutablePaths(const StorePathSet & paths);
656
664 virtual void querySubstitutablePathInfos(const StorePathCAMap & paths, SubstitutablePathInfos & infos);
665
670 virtual void addToStore(
671 const ValidPathInfo & info,
672 Source & narSource,
673 RepairFlag repair = NoRepair,
674 CheckSigsFlag checkSigs = CheckSigs) = 0;
675
680 using PathsSource = std::vector<std::pair<ValidPathInfo, std::unique_ptr<Source>>>;
681
685 virtual void addMultipleToStore(
686 PathsSource && pathsToCopy, Activity & act, RepairFlag repair = NoRepair, CheckSigsFlag checkSigs = CheckSigs);
687
696 virtual StorePath addToStore(
697 std::string_view name,
698 const SourcePath & path,
700 HashAlgorithm hashAlgo = HashAlgorithm::SHA256,
701 const StorePathSet & references = StorePathSet(),
702 PathFilter & filter = defaultPathFilter,
703 RepairFlag repair = NoRepair);
704
711 std::string_view name,
712 const SourcePath & path,
714 HashAlgorithm hashAlgo = HashAlgorithm::SHA256,
715 const StorePathSet & references = StorePathSet(),
716 std::optional<Hash> expectedCAHash = {});
717
736 Source & dump,
737 std::string_view name,
740 HashAlgorithm hashAlgo = HashAlgorithm::SHA256,
741 const StorePathSet & references = StorePathSet(),
742 RepairFlag repair = NoRepair) = 0;
743
756protected:
757 virtual void registerDrvOutputUnchecked(const Realisation & output) = 0;
758
759public:
760 virtual void registerDrvOutput(const Realisation & output, CheckSigsFlag checkSigs)
761 {
762 return registerDrvOutputUnchecked(output);
763 }
764
768 virtual void narFromPath(const StorePath & path, Sink & sink);
769
815 virtual void addTempRoot(const StorePath & path)
816 {
817 addTempRoots({path});
818 }
819
827 virtual void addTempRoots(const StorePathSet & paths);
828
834 std::string makeValidityRegistration(const StorePathSet & paths, bool showDerivers, bool showHash);
835
840 virtual void optimiseStore() {};
841
847 virtual bool verifyStore(bool checkContents, RepairFlag repair = NoRepair)
848 {
849 return false;
850 };
851
856 virtual ref<SourceAccessor> getFSAccessor(bool requireValidPath = true) = 0;
857
865 virtual std::shared_ptr<SourceAccessor> getFSAccessor(const StorePath & path, bool requireValidPath = true) = 0;
866
874 [[nodiscard]] ref<SourceAccessor> requireStoreObjectAccessor(const StorePath & path, bool requireValidPath = true)
875 {
876 auto accessor = getFSAccessor(path, requireValidPath);
877 if (!accessor) {
878 throw InvalidPath(
879 requireValidPath ? "path '%1%' is not a valid store path" : "store path '%1%' does not exist",
880 printStorePath(path));
881 }
882 return ref<SourceAccessor>{accessor};
883 }
884
889 virtual void addSignatures(const StorePath & storePath, const std::set<Signature> & sigs)
890 {
891 unsupported("addSignatures");
892 }
893
898 void signPathInfo(ValidPathInfo & info);
899
900 void signRealisation(Realisation &);
901
902 /* Utility functions. */
903
910 Derivation derivationFromPath(const StorePath & drvPath);
911
915 virtual StorePath writeDerivation(const Derivation & drv, RepairFlag repair = NoRepair);
916
920 virtual Derivation readDerivation(const StorePath & drvPath);
921
925 virtual Derivation readInvalidDerivation(const StorePath & drvPath);
926
937 virtual void computeFSClosure(
938 const StorePathSet & paths,
939 StorePathSet & out,
940 bool flipDirection = false,
941 bool includeOutputs = false,
942 bool includeDerivers = false);
943
944 void computeFSClosure(
945 const StorePath & path,
946 StorePathSet & out,
947 bool flipDirection = false,
948 bool includeOutputs = false,
949 bool includeDerivers = false);
950
956 virtual MissingPaths queryMissing(const std::vector<DerivedPath> & targets);
957
963 virtual StorePaths topoSortPaths(const StorePathSet & paths);
964
969 StorePathSet exportReferences(const StorePathSet & storePaths, const StorePathSet & inputPaths);
970
976 std::optional<StorePath> getBuildDerivationPath(const StorePath &);
977
983 {
984 if (pathInfoCache)
985 pathInfoCache->lock()->clear();
986 }
987
992 virtual void connect() {};
993
997 virtual unsigned int getProtocol()
998 {
999 return 0;
1000 };
1001
1010 virtual std::optional<TrustedFlag> isTrustedClient() = 0;
1011
1016 virtual void setOptions() {}
1017
1018 virtual std::optional<std::string> getVersion()
1019 {
1020 return {};
1021 }
1022
1023protected:
1024
1032 [[noreturn]] void unsupported(const std::string & op)
1033 {
1034 throw Unsupported("operation '%s' is not supported by store '%s'", op, config.getHumanReadableURI());
1035 }
1036};
1037
1041void copyStorePath(
1042 Store & srcStore,
1043 Store & dstStore,
1044 const StorePath & storePath,
1045 RepairFlag repair = NoRepair,
1046 CheckSigsFlag checkSigs = CheckSigs);
1047
1056std::map<StorePath, StorePath> copyPaths(
1057 Store & srcStore,
1058 Store & dstStore,
1059 const std::set<RealisedPath> &,
1060 RepairFlag repair = NoRepair,
1061 CheckSigsFlag checkSigs = CheckSigs,
1062 SubstituteFlag substitute = NoSubstitute);
1063
1064std::map<StorePath, StorePath> copyPaths(
1065 Store & srcStore,
1066 Store & dstStore,
1067 const StorePathSet & paths,
1068 RepairFlag repair = NoRepair,
1069 CheckSigsFlag checkSigs = CheckSigs,
1070 SubstituteFlag substitute = NoSubstitute);
1071
1076 Store & srcStore,
1077 Store & dstStore,
1078 const std::set<RealisedPath> & paths,
1079 RepairFlag repair = NoRepair,
1080 CheckSigsFlag checkSigs = CheckSigs,
1081 SubstituteFlag substitute = NoSubstitute,
1082 bool includeOutputs = false);
1083
1084void copyClosure(
1085 Store & srcStore,
1086 Store & dstStore,
1087 const StorePathSet & paths,
1088 RepairFlag repair = NoRepair,
1089 CheckSigsFlag checkSigs = CheckSigs,
1090 SubstituteFlag substitute = NoSubstitute,
1091 bool includeOutputs = false);
1092
1099
1104StorePath resolveDerivedPath(Store &, const SingleDerivedPath &, Store * evalStore = nullptr);
1105OutputPathMap resolveDerivedPath(Store &, const DerivedPath::Built &, Store * evalStore = nullptr);
1106
1107std::optional<ValidPathInfo>
1108decodeValidPathInfo(const Store & store, std::istream & str, std::optional<HashResult> hashGiven = std::nullopt);
1109
1110const ContentAddress * getDerivationCA(const Derivation & drv);
1111
1112template<>
1113struct json_avoids_null<TrustedFlag> : std::true_type
1114{};
1115
1116} // namespace nix
1117
1118JSON_IMPL(nix::TrustedFlag)
Definition callback.hh:19
void getSettings(std::map< std::string, SettingInfo > &res, bool overriddenOnly=false) const override
Definition configuration.cc:95
Definition error.hh:310
Definition configuration.hh:476
Definition store-api.hh:177
Definition path.hh:33
Definition store-api.hh:397
std::optional< StorePath > getBuildDerivationPath(const StorePath &)
Definition store-api.cc:1231
virtual void addSignatures(const StorePath &storePath, const std::set< Signature > &sigs)
Definition store-api.hh:889
virtual std::map< std::string, std::optional< StorePath > > queryStaticPartialDerivationOutputMap(const StorePath &path)
Definition store-api.cc:450
ref< const ValidPathInfo > queryPathInfo(const StorePath &path)
Definition store-api.cc:585
void signPathInfo(ValidPathInfo &info)
Definition store-api.cc:1270
virtual StorePathSet queryValidDerivers(const StorePath &path)
Definition store-api.hh:605
virtual unsigned int getProtocol()
Definition store-api.hh:997
virtual Derivation readInvalidDerivation(const StorePath &drvPath)
Definition store-api.cc:1265
virtual void queryReferrers(const StorePath &path, StorePathSet &referrers)
Definition store-api.hh:592
std::optional< std::shared_ptr< const ValidPathInfo > > queryPathInfoFromClientCache(const StorePath &path)
Definition store-api.cc:606
virtual void computeFSClosure(const StorePathSet &paths, StorePathSet &out, bool flipDirection=false, bool includeOutputs=false, bool includeDerivers=false)
Definition misc.cc:21
virtual void addMultipleToStore(PathsSource &&pathsToCopy, Activity &act, RepairFlag repair=NoRepair, CheckSigsFlag checkSigs=CheckSigs)
Definition store-api.cc:225
virtual void querySubstitutablePathInfos(const StorePathCAMap &paths, SubstitutablePathInfos &infos)
Definition misc.cc:159
std::vector< std::pair< ValidPathInfo, std::unique_ptr< Source > > > PathsSource
Definition store-api.hh:680
virtual void connect()
Definition store-api.hh:992
StorePath followLinksToStorePath(std::string_view path) const
Definition store-api.cc:181
virtual StorePaths topoSortPaths(const StorePathSet &paths)
Definition misc.cc:334
virtual void addTempRoot(const StorePath &path)
Definition store-api.hh:815
virtual StorePath writeDerivation(const Derivation &drv, RepairFlag repair=NoRepair)
Definition derivations.cc:119
std::shared_ptr< const UnkeyedRealisation > queryRealisation(const DrvOutput &)
Definition store-api.cc:733
OutputPathMap queryDerivationOutputMap(const StorePath &path, Store *evalStore=nullptr)
Definition store-api.cc:487
virtual std::map< std::string, std::optional< StorePath > > queryPartialDerivationOutputMap(const StorePath &path, Store *evalStore=nullptr)
Definition store-api.cc:472
bool isValidPath(const StorePath &path)
Definition store-api.cc:543
virtual StorePathSet queryValidPaths(const StorePathSet &paths, SubstituteFlag maybeSubstitute=NoSubstitute)
Definition store-api.cc:768
virtual void optimiseStore()
Definition store-api.hh:840
Derivation derivationFromPath(const StorePath &drvPath)
Definition store-api.cc:1209
ref< SourceAccessor > requireStoreObjectAccessor(const StorePath &path, bool requireValidPath=true)
Definition store-api.hh:874
virtual bool verifyStore(bool checkContents, RepairFlag repair=NoRepair)
Definition store-api.hh:847
virtual void addTempRoots(const StorePathSet &paths)
Definition store-api.cc:220
virtual void setOptions()
Definition store-api.hh:1016
virtual std::optional< StorePath > queryPathFromHashPart(const std::string &hashPart)=0
virtual StorePathSet queryAllValidPaths()
Definition store-api.hh:520
virtual std::optional< TrustedFlag > isTrustedClient()=0
virtual void addToStore(const ValidPathInfo &info, Source &narSource, RepairFlag repair=NoRepair, CheckSigsFlag checkSigs=CheckSigs)=0
virtual StorePathSet querySubstitutablePaths(const StorePathSet &paths)
Definition store-api.cc:509
virtual StorePathSet queryDerivationOutputs(const StorePath &path)
Definition store-api.cc:499
virtual void narFromPath(const StorePath &path, Sink &sink)
Definition store-api.cc:390
virtual void registerDrvOutputUnchecked(const Realisation &output)=0
virtual ref< Builder > getBuilder(std::shared_ptr< Store > evalStore=nullptr)
Definition store-api.cc:149
virtual ref< SourceAccessor > getFSAccessor(bool requireValidPath=true)=0
std::filesystem::path followLinksToStore(std::string_view path) const
Definition store-api.cc:156
virtual Derivation readDerivation(const StorePath &drvPath)
Definition store-api.cc:1260
void substitutePaths(const StorePathSet &paths)
Definition store-api.cc:749
StorePathSet exportReferences(const StorePathSet &storePaths, const StorePathSet &inputPaths)
Definition store-api.cc:855
void clearPathInfoCache()
Definition store-api.hh:982
virtual StorePath addToStoreFromDump(Source &dump, std::string_view name, FileSerialisationMethod dumpMethod=FileSerialisationMethod::NixArchive, ContentAddressMethod hashMethod=ContentAddressMethod::Raw::NixArchive, HashAlgorithm hashAlgo=HashAlgorithm::SHA256, const StorePathSet &references=StorePathSet(), RepairFlag repair=NoRepair)=0
virtual std::shared_ptr< SourceAccessor > getFSAccessor(const StorePath &path, bool requireValidPath=true)=0
ValidPathInfo addToStoreSlow(std::string_view name, const SourcePath &path, ContentAddressMethod method=ContentAddressMethod::Raw::NixArchive, HashAlgorithm hashAlgo=HashAlgorithm::SHA256, const StorePathSet &references=StorePathSet(), std::optional< Hash > expectedCAHash={})
Definition store-api.cc:319
void unsupported(const std::string &op)
Definition store-api.hh:1032
virtual bool pathInfoIsUntrusted(const ValidPathInfo &)
Definition store-api.hh:569
std::string makeValidityRegistration(const StorePathSet &paths, bool showDerivers, bool showHash)
Definition store-api.cc:829
virtual MissingPaths queryMissing(const std::vector< DerivedPath > &targets)
Definition misc.cc:169
virtual void init()
Definition store-api.hh:462
virtual std::optional< StorePath > queryStaticPartialDerivationOutput(const StorePath &path, const std::string &outputName)
Definition store-api.cc:461
Definition ref.hh:58
FileSerialisationMethod
Definition file-content-address.hh:20
@ NixArchive
Definition file-content-address.hh:36
fun< bool(const std::string &path)> PathFilter
Definition file-system.hh:494
Definition derivation-options.cc:339
SourcePath.
std::map< StorePath, StorePath > copyPaths(Store &srcStore, Store &dstStore, const std::set< RealisedPath > &, RepairFlag repair=NoRepair, CheckSigsFlag checkSigs=CheckSigs, SubstituteFlag substitute=NoSubstitute)
StorePath resolveDerivedPath(Store &, const SingleDerivedPath &, Store *evalStore=nullptr)
Definition misc.cc:396
void copyClosure(Store &srcStore, Store &dstStore, const std::set< RealisedPath > &paths, RepairFlag repair=NoRepair, CheckSigsFlag checkSigs=CheckSigs, SubstituteFlag substitute=NoSubstitute, bool includeOutputs=false)
void removeTempRoots()
Definition logging.hh:221
Definition build-result.hh:123
Definition build.hh:17
Definition content-address.hh:32
@ NixArchive
Definition content-address.hh:51
Definition content-address.hh:162
Definition realisation.hh:26
Definition build-result.hh:204
Definition store-api.hh:73
Definition globals.hh:51
Definition nar-info-disk-cache.hh:14
Definition realisation.hh:103
Definition realisation.hh:135
Definition derived-path.hh:105
Definition serialise.hh:18
Definition source-accessor.hh:50
Definition source-path.hh:22
Definition serialise.hh:95
StoreConfigBase(const StoreReference::Params &params, FilePathType pathType)
Definition store-api.cc:121
FilePathType
Definition store-api.hh:108
Definition store-api.hh:240
virtual const std::filesystem::path & getLogDir() const
Definition store-api.cc:1301
static std::optional< ExperimentalFeature > experimentalFeature()
Definition store-api.hh:280
virtual ref< Store > openStore() const =0
virtual const std::filesystem::path & getStateDir() const
Definition store-api.cc:1296
virtual bool getReadOnly() const
Definition store-api.cc:431
virtual std::string getHumanReadableURI() const
Definition store-api.hh:377
StringMap getQueryParams() const
Definition store-api.hh:266
virtual StoreReference getReference() const
Definition store-api.cc:426
static std::string doc()
Definition store-api.hh:258
Definition store-dir-config.hh:29
Definition store-api.hh:419
std::shared_ptr< const ValidPathInfo > value
Definition store-api.hh:429
bool didExist()
Definition store-api.hh:441
bool isKnownNow(const NarInfoDiskCacheSettings &settings)
Definition store-api.cc:436
std::chrono::time_point< std::chrono::steady_clock > time_point
Definition store-api.hh:424
Definition realisation.hh:62
Definition path-info.hh:159
Definition derivations.hh:208
Definition output.hh:22
std::map< std::string, std::string, std::less<> > StringMap
Definition types.hh:26
std::set< std::string, std::less<> > StringSet
Definition types.hh:45