Aktualizr
C++ SOTA Client
director_repo.h
1 #ifndef DIRECTOR_REPO_H_
2 #define DIRECTOR_REPO_H_
3 
4 #include "repo.h"
5 
6 class DirectorRepo : public Repo {
7  public:
8  DirectorRepo(boost::filesystem::path path, const std::string &expires, std::string correlation_id)
9  : Repo(Uptane::RepositoryType::Director(), std::move(path), expires, std::move(correlation_id)) {}
10  void addTarget(const std::string &target_name, const Json::Value &target, const std::string &hardware_id,
11  const std::string &ecu_serial, const std::string &url, const std::string &expires = "");
12  void revokeTargets(const std::vector<std::string> &targets_to_remove);
13  void signTargets();
14  void emptyTargets();
15  void oldTargets();
16 
17  static constexpr const char *dir{"repo/director"};
18 };
19 
20 #endif // DIRECTOR_REPO_H_
Repo
Definition: repo.h:34
DirectorRepo
Definition: director_repo.h:6