Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
nix::NarInfo Struct Reference
Inheritance diagram for nix::NarInfo:
nix::ValidPathInfo nix::UnkeyedValidPathInfo

Public Member Functions

 NarInfo (const Store &store, std::string name, ContentAddressWithReferences ca, Hash narHash)
 
 NarInfo (StorePath path, Hash narHash)
 
 NarInfo (const ValidPathInfo &info)
 
 NarInfo (const Store &store, const std::string &s, const std::string &whence)
 
bool operator== (const NarInfo &) const =default
 
std::string to_string (const Store &store) const
 
nlohmann::json toJSON (const Store &store, bool includeImpureInfo, HashFormat hashFormat) const override
 
- Public Member Functions inherited from nix::ValidPathInfo
bool operator== (const ValidPathInfo &) const =default
 
auto operator<=> (const ValidPathInfo &) const =default
 
std::string fingerprint (const Store &store) const
 
void sign (const Store &store, const Signer &signer)
 
std::optional< ContentAddressWithReferencescontentAddressWithReferences () const
 
bool isContentAddressed (const Store &store) const
 
size_t checkSignatures (const Store &store, const PublicKeys &publicKeys) const
 
bool checkSignature (const Store &store, const PublicKeys &publicKeys, const std::string &sig) const
 
Strings shortRefs () const
 
 ValidPathInfo (StorePath &&path, UnkeyedValidPathInfo info)
 
 ValidPathInfo (const StorePath &path, UnkeyedValidPathInfo info)
 
 ValidPathInfo (const Store &store, std::string_view name, ContentAddressWithReferences &&ca, Hash narHash)
 
- Public Member Functions inherited from nix::UnkeyedValidPathInfo
 UnkeyedValidPathInfo (const UnkeyedValidPathInfo &other)=default
 
 UnkeyedValidPathInfo (Hash narHash)
 
bool operator== (const UnkeyedValidPathInfo &) const noexcept
 
std::weak_ordering operator<=> (const UnkeyedValidPathInfo &) const noexcept
 

Static Public Member Functions

static NarInfo fromJSON (const Store &store, const StorePath &path, const nlohmann::json &json)
 
- Static Public Member Functions inherited from nix::UnkeyedValidPathInfo
static UnkeyedValidPathInfo fromJSON (const Store &store, const nlohmann::json &json)
 

Public Attributes

std::string url
 
std::string compression
 
std::optional< HashfileHash
 
uint64_t fileSize = 0
 
- Public Attributes inherited from nix::ValidPathInfo
StorePath path
 
- Public Attributes inherited from nix::UnkeyedValidPathInfo
std::optional< StorePathderiver
 
Hash narHash
 
StorePathSet references
 
time_t registrationTime = 0
 
uint64_t narSize = 0
 
uint64_t id = 0
 
bool ultimate = false
 
StringSet sigs
 
std::optional< ContentAddressca
 

Additional Inherited Members

- Static Public Attributes inherited from nix::ValidPathInfo
static const size_t maxSigs = std::numeric_limits<size_t>::max()
 

Member Function Documentation

◆ toJSON()

nlohmann::json nix::NarInfo::toJSON ( const Store & store,
bool includeImpureInfo,
HashFormat hashFormat ) const
overridevirtual
Parameters
includeImpureInfoIf true, variable elements such as the registration time are included.

Reimplemented from nix::UnkeyedValidPathInfo.


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