Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
content-address.hh File Reference
#include <variant>
#include "nix/util/hash.hh"
#include "nix/store/path.hh"
#include "nix/util/file-content-address.hh"
#include "nix/util/variant-wrapper.hh"
#include "nix/util/json-impls.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.