Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
serve-protocol-connection.hh
Go to the documentation of this file.
1#pragma once
3
6
7namespace nix {
8
10{
11 FdSink to;
12 FdSource from;
13 ServeProto::Version remoteVersion;
14
32 handshake(BufferedSink & to, Source & from, ServeProto::Version localVersion, std::string_view host);
33
43 {
45 .from = from,
46 .version = remoteVersion,
47 };
48 }
49
59 {
61 .to = to,
62 .version = remoteVersion,
63 };
64 }
65
66 StorePathSet queryValidPaths(
67 const StoreDirConfig & remoteStore, bool lock, const StorePathSet & paths, SubstituteFlag maybeSubstitute);
68
69 std::map<StorePath, UnkeyedValidPathInfo> queryPathInfos(const StoreDirConfig & store, const StorePathSet & paths);
70 ;
71
72 void putBuildDerivationRequest(
73 const StoreDirConfig & store,
74 const StorePath & drvPath,
75 const BasicDerivation & drv,
76 const ServeProto::BuildOptions & options);
77
83
84 void narFromPath(const StoreDirConfig & store, const StorePath & path, fun<void(Source &)> receiveNar);
85
86 void importPaths(const StoreDirConfig & store, fun<void(Sink &)> sendPaths);
87};
88
107
108} // namespace nix
Definition serialise.hh:60
Definition path.hh:33
Definition fun.hh:19
Definition build-result.hh:123
Definition serialise.hh:194
Definition serialise.hh:246
Definition serve-protocol-connection.hh:10
BuildResult getBuildDerivationResponse(const StoreDirConfig &store)
Definition serve-protocol-connection.cc:83
static ServeProto::Version handshake(BufferedSink &to, Source &from, ServeProto::Version localVersion, std::string_view host)
Definition serve-protocol-connection.cc:9
Definition serve-protocol-connection.hh:90
static ServeProto::Version handshake(BufferedSink &to, Source &from, ServeProto::Version localVersion)
Definition serve-protocol-connection.cc:25
Definition serve-protocol.hh:158
Definition serve-protocol.hh:80
Definition serve-protocol.hh:43
Definition serve-protocol.hh:90
Definition serialise.hh:18
Definition serialise.hh:95
Definition store-dir-config.hh:29