5#ifndef HYRAX_GIT_ACCESSCREDENTIALS_H
6#define HYRAX_GIT_ACCESSCREDENTIALS_H
15 static const char *ID_KEY;
16 static const char *KEY_KEY;
17 static const char *REGION_KEY;
18 static const char *URL_KEY;
21 std::map<std::string, std::string> kvp;
22 std::string d_config_name;
29 d_config_name(config_name),
37 virtual std::string
get(
const std::string &key);
39 void add(
const std::string &key,
const std::string &value);
43 std::string to_json();
45 std::string name() {
return d_config_name; }
47 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?