SSS - S3 Toolkit 0.9.6
S3 client library and applications
|
Internal utility functions to process and parse text and URLs and create S3 signature keys. More...
#include <algorithm>
#include <iostream>
#include <map>
#include <string>
#include <vector>
#include "common.h"
#include "utility.h"
Data Structures | |
struct | sss::URL |
URL type. More... | |
struct | sss::Time |
Time data type, used to generate pre-signed URLs. More... | |
Typedefs | |
using | sss::Bytes = std::vector< uint8_t > |
Functions | |
URL | sss::ParseURL (const std::string &s) |
std::string | sss::UrlEncode (const std::string &s) |
std::string | sss::UrlEncode (const Map &p) |
Time | sss::GetDates () |
Bytes | sss::Hash (const Bytes &key, const Bytes &msg) |
HMAC encoding byte arrays --> byte array. | |
std::string | sss::Hex (const Bytes &b) |
Byte to hex string conversion. | |
Bytes | sss::CreateSignatureKey (const std::string &key, const std::string &dateStamp, const std::string ®ion, const std::string &service) |
Parameters | sss::ParseParams (std::string s) |
Headers | sss::ParseHeaders (const std::string &s) |
std::string | sss::GetValue (const std::map< std::string, std::string > &map, const std::string &rx, bool caseSensitive=true) |
Map key to value using regular expression. | |
Headers | sss::ToMeta (const std::map< std::string, std::string > &metaData) |
Translate metadata (key,value) pairs to amz- format and return header map which can be merged with other headers using the std::map::merge method, since C++17. | |
Internal utility functions to process and parse text and URLs and create S3 signature keys.