10 std::string
host =
"localhost";
23 std::string* error_message =
nullptr)
const;
25 const std::string& password,
26 std::string* error_message =
nullptr)
const;
28 std::string* error_message =
nullptr)
const;
32 [[nodiscard]] std::vector<std::string> read_index(std::string* error_message =
nullptr)
const;
33 [[nodiscard]]
bool write_index(
const std::vector<std::string>& targets,
34 std::string* error_message =
nullptr)
const;
Definition credentials.hpp:16
bool available() const
Definition credentials.cpp:62
bool forget_password(const CredentialTarget &target, std::string *error_message=nullptr) const
Definition credentials.cpp:136
std::size_t forget_all_postgres(std::string *error_message=nullptr) const
Definition credentials.cpp:162
std::string unavailable_reason() const
Definition credentials.cpp:70
bool save_password(const CredentialTarget &target, const std::string &password, std::string *error_message=nullptr) const
Definition credentials.cpp:105
std::optional< std::string > get_password(const CredentialTarget &target, std::string *error_message=nullptr) const
Definition credentials.cpp:83
std::string target_name(const CredentialTarget &target) const
Definition credentials.cpp:78
Definition credentials.hpp:9
std::string database
Definition credentials.hpp:12
std::string host
Definition credentials.hpp:10
int port
Definition credentials.hpp:11
std::string user
Definition credentials.hpp:13