8 ImageRepo(boost::filesystem::path path,
const std::string &expires, std::string correlation_id)
9 :
Repo(Uptane::RepositoryType::Image(), std::move(path), expires, std::move(correlation_id)) {}
10 void addBinaryImage(
const boost::filesystem::path &image_path,
const boost::filesystem::path &targetname,
11 const std::string &hardware_id,
const std::string &url,
const Delegation &delegation = {});
12 void addCustomImage(
const std::string &name,
const Hash &hash, uint64_t length,
const std::string &hardware_id,
13 const std::string &url,
const Delegation &delegation,
const Json::Value &custom = {});
15 bool terminating, KeyType key_type);
17 std::vector<std::string> getDelegationTargets(
const Uptane::Role &name);
21 static constexpr
const char *dir{
"repo/repo"};
24 void addImage(
const std::string &name, Json::Value &target,
const std::string &hardware_id,
29 #endif // IMAGE_REPO_H_