|
|
using | Config = HttpBinaryCacheStoreConfig |
| |
|
|
| HttpBinaryCacheStore (ref< Config > config) |
| |
|
void | init () override |
| |
|
|
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 |
| |
◆ 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:
- /builddir/build/BUILD/nix-2.31.4-build/nix-2.31.4/src/libstore/http-binary-cache-store.cc