![]() |
Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
|
#include <content-address.hh>
Public Types | |
| typedef std::variant< TextInfo, FixedOutputInfo > | Raw |
Public Member Functions | |
| bool | operator== (const ContentAddressWithReferences &) const =default |
| MAKE_WRAPPER_CONSTRUCTOR (ContentAddressWithReferences) | |
| ContentAddressMethod | getMethod () const |
| Hash | getHash () const |
Static Public Member Functions | |
| static ContentAddressWithReferences | withoutRefs (const ContentAddress &) noexcept |
| static ContentAddressWithReferences | fromParts (ContentAddressMethod method, Hash hash, StoreReferences refs) |
Public Attributes | |
| Raw | raw |
Ways of content addressing but not a complete ContentAddress.
A ContentAddress without a Hash.
|
static |
Create a ContentAddressWithReferences from 3 parts:
| method | Way ingesting the file system data. |
| hash | Hash of ingested file system data. |
| refs | References to other store objects or oneself. |
|
staticnoexcept |
Create a ContentAddressWithReferences from a mere ContentAddress, by claiming no references.