1 #ifndef SOTA_CLIENT_TOOLS_OSTREE_HASH_H_
2 #define SOTA_CLIENT_TOOLS_OSTREE_HASH_H_
19 explicit OSTreeHash(
const std::array<uint8_t, 32>& hash);
21 std::string string()
const;
24 friend std::ostream& operator<<(std::ostream& os,
const OSTreeHash& obj);
27 std::array<uint8_t, 32> hash_{};
34 const char* what()
const noexcept
override {
return "Could not parse OSTree commit"; }
36 std::string bad_hash()
const {
return bad_hash_; }
39 std::string bad_hash_;
42 #endif // SOTA_CLIENT_TOOLS_OSTREE_HASH_H_