Nix  2.93.0-dev
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::ContentAddressWithReferences Struct Reference

#include <content-address.hh>

Public Types

typedef std::variant< TextInfo, FixedOutputInfoRaw
 

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< ContentAddressWithReferencesfromPartsOpt (ContentAddressMethod method, Hash hash, StoreReferences refs)
 

Public Attributes

Raw raw
 

Detailed Description

Ways of content addressing but not a complete ContentAddress.

A ContentAddress without a Hash.

Member Function Documentation

◆ fromPartsOpt()

std::optional< ContentAddressWithReferences > nix::ContentAddressWithReferences::fromPartsOpt ( ContentAddressMethod method,
Hash hash,
StoreReferences refs )
static

Create a ContentAddressWithReferences from 3 parts:

Parameters
methodWay ingesting the file system data.
hashHash of ingested file system data.
refsReferences to other store objects or oneself.

Do note that not all combinations are supported; nullopt is returns for invalid combinations.

◆ withoutRefs()

ContentAddressWithReferences nix::ContentAddressWithReferences::withoutRefs ( const ContentAddress & ca)
static

Create a ContentAddressWithReferences from a mere ContentAddress, by claiming no references.


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