Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
path-info.hh File Reference
#include "nix/util/signature/signer.hh"
#include "nix/store/path.hh"
#include "nix/util/hash.hh"
#include "nix/store/content-address.hh"
#include <string>
#include <optional>

Go to the source code of this file.

Classes

struct  nix::SubstitutablePathInfo
struct  nix::UnkeyedValidPathInfo
struct  nix::ValidPathInfo

Typedefs

using nix::SubstitutablePathInfos = std::map<StorePath, SubstitutablePathInfo>
using nix::ValidPathInfos = std::map<StorePath, ValidPathInfo>

Enumerations

enum class  nix::PathInfoJsonFormat { V1 = 1 , V2 = 2 , V3 = 3 }

Functions

PathInfoJsonFormat nix::parsePathInfoJsonFormat (uint64_t version)

Enumeration Type Documentation

◆ PathInfoJsonFormat

enum class nix::PathInfoJsonFormat
strong

JSON format version for path info output.

Enumerator
V1 

Legacy format with string hashes and full store paths.

V2 

New format with structured hashes and store path base names.

V3 

New format with structured signatures.

Function Documentation

◆ parsePathInfoJsonFormat()

PathInfoJsonFormat nix::parsePathInfoJsonFormat ( uint64_t version)

Convert an integer version number to PathInfoJsonFormat. Throws Error if the version is not supported.