Nix 2.28.2
Nix, the purely functional package manager; unstable internal interfaces
 
Loading...
Searching...
No Matches
nix::HttpBinaryCacheStore Class Reference
Inheritance diagram for nix::HttpBinaryCacheStore:

Public Member Functions

 HttpBinaryCacheStore (std::string_view scheme, PathView cacheUri, const Params &params)
 
std::string getUri () override
 
void init () override
 

Protected Member Functions

void maybeDisable ()
 
void checkEnabled ()
 
bool fileExists (const std::string &path) override
 
void upsertFile (const std::string &path, std::shared_ptr< std::basic_iostream< char > > istream, const std::string &mimeType) override
 
FileTransferRequest makeRequest (const std::string &path)
 
void getFile (const std::string &path, Sink &sink) override
 
void getFile (const std::string &path, Callback< std::optional< std::string > > callback) noexcept override
 
std::optional< std::string > getNixCacheInfo () override
 
std::optional< TrustedFlag > isTrustedClient () override
 

Member Function Documentation

◆ isTrustedClient()

std::optional< TrustedFlag > nix::HttpBinaryCacheStore::isTrustedClient ( )
inlineoverrideprotected

This isn't actually necessary read only. We support "upsert" now, so we have a notion of authentication via HTTP POST/PUT.

For now, we conservatively say we don't know.

Todo
try to expose our HTTP authentication status.

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