Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::PrefilteredDump Struct Reference
Inheritance diagram for nix::PrefilteredDump:
nix::PreparedDump

Classes

struct  File
struct  Directory

Public Types

using Entry = std::variant<File, Symlink, Directory>

Public Member Functions

 PrefilteredDump (Path path, PathFilter &filter)
WireFormatGenerator dump () const override
Public Member Functions inherited from nix::PreparedDump
 PreparedDump (Path rootPath)

Static Public Member Functions

static void fillFrom (Entry &target, nar::Entry e)
static nar::Entry convert (Path path, const Entry &e)

Public Attributes

Entry root
Public Attributes inherited from nix::PreparedDump
const Path rootPath

Member Function Documentation

◆ dump()

WireFormatGenerator nix::PrefilteredDump::dump ( ) const
inlineoverridevirtual

Produce a NAR of all paths that matched the filter passed to prepareDump. If no filter was passed, dump rootPath fully. Calling dump multiple times on the same object to produce multiple NARs of the same hierarchy is legal, though every call may produce a different output when disk contents change.

Implements nix::PreparedDump.


The documentation for this struct was generated from the following file:
  • lix/libutil/archive.cc