![]() |
Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
|
Public Member Functions | |
| operator ServeProto::ReadConn () | |
| operator ServeProto::WriteConn () | |
| StorePathSet | queryValidPaths (const StoreDirConfig &remoteStore, bool lock, const StorePathSet &paths, SubstituteFlag maybeSubstitute) |
| std::map< StorePath, UnkeyedValidPathInfo > | queryPathInfos (const StoreDirConfig &store, const StorePathSet &paths) |
| void | putBuildDerivationRequest (const StoreDirConfig &store, const StorePath &drvPath, const BasicDerivation &drv, const ServeProto::BuildOptions &options) |
| BuildResult | getBuildDerivationResponse (const StoreDirConfig &store) |
| void | narFromPath (const StoreDirConfig &store, const StorePath &path, fun< void(Source &)> receiveNar) |
| void | importPaths (const StoreDirConfig &store, fun< void(Sink &)> sendPaths) |
Static Public Member Functions | |
| static ServeProto::Version | handshake (BufferedSink &to, Source &from, ServeProto::Version localVersion, std::string_view host) |
Public Attributes | |
| FdSink | to |
| FdSource | from |
| ServeProto::Version | remoteVersion |
| BuildResult nix::ServeProto::BasicClientConnection::getBuildDerivationResponse | ( | const StoreDirConfig & | store | ) |
Get the response, must be paired with putBuildDerivationRequest.
|
static |
Establishes connection, negotiating version.
| to | Taken by reference to allow for various error handling mechanisms. |
| from | Taken by reference to allow for various error handling mechanisms. |
| localVersion | Our version which is sent over |
| host | Just used to add context to thrown exceptions. |
|
inline |
Coercion to ServeProto::ReadConn. This makes it easy to use the factored out serve protocol serializers with a LegacySSHStore::Connection.
The serve protocol connection types are unidirectional, unlike this type.
|
inline |
Coercion to ServeProto::WriteConn. This makes it easy to use the factored out serve protocol serializers with a LegacySSHStore::Connection.
The serve protocol connection types are unidirectional, unlike this type.