4 #include "director_repo.h"
5 #include "image_repo.h"
9 UptaneRepo(
const boost::filesystem::path &path,
const std::string &expires,
const std::string &correlation_id);
10 void generateRepo(KeyType key_type = KeyType::kRSA2048);
11 void addTarget(
const std::string &target_name,
const std::string &hardware_id,
const std::string &ecu_serial,
12 const std::string &url,
const std::string &expires =
"");
13 void addImage(
const boost::filesystem::path &image_path,
const boost::filesystem::path &targetname,
14 const std::string &hardware_id,
const std::string &url,
const Delegation &delegation);
16 bool terminating, KeyType key_type);
18 void addCustomImage(
const std::string &name,
const Hash &hash, uint64_t length,
const std::string &hardware_id,
19 const std::string &url,
const Delegation &delegation = {},
const Json::Value &custom = {});
23 void generateCampaigns();
31 #endif // UPTANE_REPO_H_