|
Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
|
#include <content-address.hh>
Public Types | |
| typedef std::variant< TextInfo, FixedOutputInfo > | Raw |
Public Member Functions | |
| GENERATE_CMP (ContentAddressWithReferences, me->raw) | |
| MAKE_WRAPPER_CONSTRUCTOR (ContentAddressWithReferences) | |
| ContentAddressMethod | getMethod () const |
| Hash | getHash () const |
Static Public Member Functions | |
| static ContentAddressWithReferences | withoutRefs (const ContentAddress &) |
| static std::optional< ContentAddressWithReferences > | fromPartsOpt (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. |
Do note that not all combinations are supported; nullopt is returns for invalid combinations.
|
static |
Create a ContentAddressWithReferences from a mere ContentAddress, by claiming no references.