Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
content-address.hh File Reference
#include <variant>
#include "hash.hh"
#include "path.hh"
#include "file-content-address.hh"
#include "variant-wrapper.hh"

Go to the source code of this file.

Classes

struct  nix::ContentAddressMethod
 
struct  nix::ContentAddress
 
struct  nix::StoreReferences
 
struct  nix::TextInfo
 
struct  nix::FixedOutputInfo
 
struct  nix::ContentAddressWithReferences
 

Functions

std::string_view nix::makeFileIngestionPrefix (FileIngestionMethod m)
 
std::string nix::renderContentAddress (std::optional< ContentAddress > ca)
 

Function Documentation

◆ makeFileIngestionPrefix()

std::string_view nix::makeFileIngestionPrefix ( FileIngestionMethod m)

Compute the prefix to the hash algorithm which indicates how the files were ingested.

◆ renderContentAddress()

std::string nix::renderContentAddress ( std::optional< ContentAddress > ca)

Render the ContentAddress if it exists to a string, return empty string otherwise.