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

Public Member Functions

 ImageRepo (boost::filesystem::path path, const std::string &expires, std::string correlation_id)
 
void addBinaryImage (const boost::filesystem::path &image_path, const boost::filesystem::path &targetname, const std::string &hardware_id, const std::string &url, const Delegation &delegation={})
 
void addCustomImage (const std::string &name, const Hash &hash, uint64_t length, const std::string &hardware_id, const std::string &url, const Delegation &delegation, const Json::Value &custom={})
 
void addDelegation (const Uptane::Role &name, const Uptane::Role &parent_role, const std::string &path, bool terminating, KeyType key_type)
 
void revokeDelegation (const Uptane::Role &name)
 
std::vector< std::string > getDelegationTargets (const Uptane::Role &name)
 
- 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/repo"}
 

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 image_repo.h.


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