Aktualizr
C++ SOTA Client
Public Member Functions | Static Public Attributes | List of all members
DirectorRepo Class Reference
Inheritance diagram for DirectorRepo:
[legend]
Collaboration diagram for DirectorRepo:
[legend]

Public Member Functions

 DirectorRepo (boost::filesystem::path path, const std::string &expires, std::string correlation_id)
 
void addTarget (const std::string &target_name, const Json::Value &target, const std::string &hardware_id, const std::string &ecu_serial, const std::string &url, const std::string &expires="")
 
void revokeTargets (const std::vector< std::string > &targets_to_remove)
 
void signTargets ()
 
void emptyTargets ()
 
void oldTargets ()
 
- Public Member Functions inherited from Repo
 Repo (Uptane::RepositoryType repo_type, boost::filesystem::path path, const std::string &expires, std::string correlation_id)
 
void generateRepo (KeyType key_type=KeyType::kRSA2048)
 
Json::Value getTarget (const std::string &target_name)
 
Json::Value signTuf (const Uptane::Role &role, const Json::Value &json)
 
void generateCampaigns () const
 
void refresh (const Uptane::Role &role)
 

Static Public Attributes

static constexpr const char * dir {"repo/director"}
 

Additional Inherited Members

- Protected Member Functions inherited from Repo
void generateRepoKeys (KeyType key_type)
 
void generateKeyPair (KeyType key_type, const Uptane::Role &key_name)
 
void readKeys ()
 
void updateRepo ()
 
- Static Protected Member Functions inherited from Repo
static std::string getExpirationTime (const std::string &expires)
 
- Protected Attributes inherited from Repo
Uptane::RepositoryType repo_type_
 
boost::filesystem::path path_
 
boost::filesystem::path repo_dir_
 
std::string correlation_id_
 
std::string expiration_time_
 
std::map< Uptane::Role, KeyPairkeys_
 

Detailed Description

Definition at line 6 of file director_repo.h.


The documentation for this class was generated from the following files: