Nix 2.26.3
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
nix::WorkerProto::ClientHandshakeInfo Struct Reference
Inheritance diagram for nix::WorkerProto::ClientHandshakeInfo:
nix::RemoteStore::Connection nix::SSHStore::Connection

Public Member Functions

bool operator== (const ClientHandshakeInfo &) const =default
 

Public Attributes

std::optional< std::string > daemonNixVersion
 
std::optional< TrustedFlag > remoteTrustsUs
 

Member Data Documentation

◆ daemonNixVersion

std::optional<std::string> nix::WorkerProto::ClientHandshakeInfo::daemonNixVersion

The version of the Nix daemon that is processing our requests.

Do note, it may or may not communicating with another daemon, rather than being an "end" LocalStore or similar.

◆ remoteTrustsUs

std::optional<TrustedFlag> nix::WorkerProto::ClientHandshakeInfo::remoteTrustsUs

Whether the remote side trusts us or not.

3 values: "yes", "no", or std::nullopt for "unknown".

Note that the "remote side" might not be just the end daemon, but also an intermediary forwarder that can make its own trusting decisions. This would be the intersection of all their trust decisions, since it takes only one link in the chain to start denying operations.


The documentation for this struct was generated from the following file: