Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nar-accessor.hh
Go to the documentation of this file.
1#pragma once
3
6#include "lix/libutil/json-fwd.hh"
7#include "lix/libutil/ref.hh"
8
9#include <functional>
10
11namespace nix {
12
13struct Source;
14
19ref<FSAccessor> makeNarAccessor(std::string && nar);
20
21ref<FSAccessor> makeNarAccessor(Source & source);
22
29typedef std::function<std::string(uint64_t, uint64_t)> GetNarBytes;
30
31ref<FSAccessor> makeLazyNarAccessor(
32 const std::string & listing,
33 GetNarBytes getNarBytes);
34
39kj::Promise<Result<JSON>>
40listNar(ref<FSAccessor> accessor, const Path & path, bool recurse);
41JSON listNar(const nar_index::Entry & nar);
42
43}
Definition ref.hh:19
std::function< std::string(uint64_t, uint64_t)> GetNarBytes
Definition nar-accessor.hh:29
Definition serialise.hh:66
std::string Path
Definition types.hh:28