Aktualizr
C++ SOTA Client
All Classes Namespaces Files Functions Variables Enumerations Enumerator Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Primary::ManagedSecondary Class Referenceabstract
Inheritance diagram for Primary::ManagedSecondary:
[legend]
Collaboration diagram for Primary::ManagedSecondary:
[legend]

Public Member Functions

 ManagedSecondary (Primary::ManagedSecondaryConfig sconfig_in)
 
void Initialize ()
 
Uptane::EcuSerial getSerial () const override
 
Uptane::HardwareIdentifier getHwId () const override
 
PublicKey getPublicKey () const override
 
bool putMetadata (const Uptane::RawMetaPack &meta_pack) override
 
int getRootVersion (bool director) const override
 
bool putRoot (const std::string &root, bool director) override
 
bool sendFirmware (const std::string &data) override
 
data::ResultCode::Numeric install (const std::string &target_name) override
 
Uptane::Manifest getManifest () const override
 
bool loadKeys (std::string *pub_key, std::string *priv_key)
 
- Public Member Functions inherited from Uptane::SecondaryInterface
virtual std::string Type () const =0
 
virtual bool ping () const =0
 
 SecondaryInterface (const SecondaryInterface &)=delete
 
SecondaryInterfaceoperator= (const SecondaryInterface &)=delete
 

Protected Member Functions

virtual bool storeFirmware (const std::string &target_name, const std::string &content)=0
 
virtual bool getFirmwareInfo (Uptane::InstalledImageInfo &firmware_info) const =0
 

Protected Attributes

Primary::ManagedSecondaryConfig sconfig
 
std::string detected_attack
 
std::string expected_target_name
 
std::vector< Uptane::Hashexpected_target_hashes
 
uint64_t expected_target_length {}
 
std::mutex install_mutex
 

Additional Inherited Members

- Public Types inherited from Uptane::SecondaryInterface
using Ptr = std::shared_ptr< SecondaryInterface >
 

Detailed Description

Definition at line 41 of file managedsecondary.h.


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