|
| bool | connect (const std::string &host_description) override |
| | Connect to the remote cache. More...
|
| |
| bool | is_connected () const override |
| | Check if we have a connection to the remote cache. More...
|
| |
| cache_entry_t | lookup (const std::string &hash) override |
| | Check if an entry exists in the cache. More...
|
| |
| void | add (const std::string &hash, const cache_entry_t &entry, const std::map< std::string, expected_file_t > &expected_files) override |
| | Adds a set of files to the cache. More...
|
| |
| void | get_file (const std::string &hash, const std::string &source_id, const std::string &target_path, const bool is_compressed) override |
| | Copy a cached file to the local file system. More...
|
| |
|
virtual | ~remote_cache_provider_t () |
| | De-initialzie the remote cache object.
|
| |
|
| std::string | sign_string (const std::string &str) const |
| | Sign a string (to create an AWS authorization string). More...
|
| |
| std::vector< std::string > | get_header (const std::string &method, const std::string &key) const override |
| | Get the headers for the HTTP request. More...
|
| |
|
|
std::string | m_access |
| |
|
std::string | m_secret |
| |
◆ connect()
| bool bcache::s3_cache_provider_t::connect |
( |
const std::string & |
host_description | ) |
|
|
overridevirtual |
Connect to the remote cache.
- Parameters
-
| host_description | A string describing the host to connect to (excluding protocol). |
- Returns
- true if the connection was successful.
Reimplemented from bcache::http_cache_provider_t.
◆ get_header()
| std::vector< std::string > bcache::s3_cache_provider_t::get_header |
( |
const std::string & |
method, |
|
|
const std::string & |
key |
|
) |
| const |
|
overrideprivatevirtual |
Get the headers for the HTTP request.
- Parameters
-
| method | The HTTP method. |
| key | The full name of the object. |
- Returns
- a list of headers.
Reimplemented from bcache::http_cache_provider_t.
◆ sign_string()
| std::string bcache::s3_cache_provider_t::sign_string |
( |
const std::string & |
str | ) |
const |
|
private |
Sign a string (to create an AWS authorization string).
- Parameters
-
- Returns
- the signature of the string.
The documentation for this class was generated from the following files: