5#ifndef HYRAX_GIT_ACCESSCREDENTIALS_H
6#define HYRAX_GIT_ACCESSCREDENTIALS_H
16 static const std::string ID_KEY;
17 static const std::string KEY_KEY;
18 static const std::string REGION_KEY;
20 static const std::string URL_KEY;
22 static const char *ID_KEY;
23 static const char *KEY_KEY;
24 static const char *REGION_KEY;
25 static const char *URL_KEY;
28 std::map<std::string, std::string> kvp;
29 std::string d_config_name;
36 d_config_name(config_name),
44 virtual std::string
get(
const std::string &key);
46 void add(
const std::string &key,
const std::string &value);
50 std::string to_json();
52 std::string name() {
return d_config_name; }
54 void name(
const std::string &name) { d_config_name = name; }
void add(const std::string &key, const std::string &value)
Add the key and value pair.
virtual std::string get(const std::string &key)
virtual bool is_s3_cred()
Do the URL, ID, Key amd Region items make up an S3 Credential?