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

Public Types

using Config = HttpBinaryCacheStoreConfig

Public Member Functions

 HttpBinaryCacheStore (ref< Config > config)
std::string getUri () override
void init () override

Public Attributes

ref< Config > config

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:
  • /home/abuild/rpmbuild/BUILD/nix-2.29.0-build/nix-2.29.0/src/libstore/http-binary-cache-store.cc