Nix 2.26.3
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
4#include "serve-protocol.hh"
5#include "store-api.hh"
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, std::function<void(Source &)> fun);
85
86 void importPaths(const StoreDirConfig & store, std::function<void(Sink &)> fun);
87};
88
107
108}
Definition path.hh:27
ChunkedVector< std::string, 8192 > store
Definition lexer.l:1011
std::function< void(Sink &)> fun
Definition lexer.l:3485
std::string std::string_view from
Definition lexer.l:2591
WriteLock lock()
Definition lexer.l:6739
std::string std::string_view std::string_view to
Definition lexer.l:2592
Definition derivations.hh:285
Definition serialise.hh:47
Definition build-result.hh:14
Definition serialise.hh:125
Definition serialise.hh:157
Definition serve-protocol-connection.hh:10
BuildResult getBuildDerivationResponse(const StoreDirConfig &store)
Definition serve-protocol-connection.cc:82
static ServeProto::Version handshake(BufferedSink &to, Source &from, ServeProto::Version localVersion, std::string_view host)
Definition serve-protocol-connection.cc:8
Definition serve-protocol-connection.hh:90
static ServeProto::Version handshake(BufferedSink &to, Source &from, ServeProto::Version localVersion)
Definition serve-protocol-connection.cc:24
Definition serve-protocol.hh:121
Definition serve-protocol.hh:48
Definition serve-protocol.hh:57
unsigned int Version
Definition serve-protocol.hh:42
Definition serialise.hh:20
Definition serialise.hh:68
Definition store-dir-config.hh:22