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

Public Member Functions

 TestAktualizr (Config &config)
 
 TestAktualizr (Config &config, std::shared_ptr< INvStorage > storage, std::shared_ptr< HttpInterface > http)
 
std::shared_ptr< SotaUptaneClient > & uptane_client ()
 
- Public Member Functions inherited from Aktualizr
 Aktualizr (const Config &config)
 Aktualizr requires a configuration object. More...
 
 Aktualizr (const Aktualizr &)=delete
 
Aktualizroperator= (const Aktualizr &)=delete
 
void Initialize ()
 Initialize aktualizr. More...
 
std::future< void > RunForever (const Json::Value &custom_hwinfo=Json::nullValue)
 Asynchronously run aktualizr indefinitely until Shutdown is called. More...
 
void Shutdown ()
 Shuts down currently running RunForever() method. More...
 
std::future< result::CampaignCheckCampaignCheck ()
 Check for campaigns. More...
 
std::future< void > CampaignControl (const std::string &campaign_id, campaign::Cmd cmd)
 Act on campaign: accept, decline or postpone. More...
 
std::future< void > SendDeviceData (const Json::Value &custom_hwinfo=Json::nullValue)
 Send local device data to the server. More...
 
std::future< result::UpdateCheckCheckUpdates ()
 Fetch Uptane metadata and check for updates. More...
 
std::future< result::DownloadDownload (const std::vector< Uptane::Target > &updates)
 Download targets. More...
 
InstallationLog GetInstallationLog ()
 Get log of installations. More...
 
std::vector< Uptane::TargetGetStoredTargets ()
 Get list of targets currently in storage. More...
 
void DeleteStoredTarget (const Uptane::Target &target)
 Delete a stored target from storage. More...
 
std::ifstream OpenStoredTarget (const Uptane::Target &target)
 Get target downloaded in Download call. More...
 
std::future< result::InstallInstall (const std::vector< Uptane::Target > &updates)
 Install targets. More...
 
bool SetInstallationRawReport (const std::string &custom_raw_report)
 SetInstallationRawReport allows setting a custom raw report field in the device installation result. More...
 
std::future< bool > SendManifest (const Json::Value &custom=Json::nullValue)
 Send installation report to the backend. More...
 
result::Pause Pause ()
 Pause the library operations. More...
 
result::Pause Resume ()
 Resume the library operations. More...
 
void Abort ()
 Aborts the currently running command, if it can be aborted, or waits for it to finish; then removes all other queued calls. More...
 
bool UptaneCycle ()
 Synchronously run an Uptane cycle: check for updates, download any new targets, install them, and send a manifest back to the server. More...
 
void AddSecondary (const std::shared_ptr< SecondaryInterface > &secondary)
 Add new Secondary to aktualizr. More...
 
void SetSecondaryData (const Uptane::EcuSerial &ecu, const std::string &data)
 Store some free-form data to be associated with a particular Secondary, to be retrieved later through GetSecondaries More...
 
std::vector< SecondaryInfoGetSecondaries () const
 Returns a list of the registered Secondaries, along with some associated metadata. More...
 
boost::signals2::connection SetSignalHandler (const SigHandler &handler)
 Provide a function to receive event notifications. More...
 

Additional Inherited Members

- Public Types inherited from Aktualizr
using InstallationLog = std::vector< InstallationLogEntry >
 
using SigHandler = std::function< void(std::shared_ptr< event::BaseEvent >)>
 
- Protected Member Functions inherited from Aktualizr
 Aktualizr (Config config, std::shared_ptr< INvStorage > storage_in, const std::shared_ptr< HttpInterface > &http_in)
 
- Protected Attributes inherited from Aktualizr
std::shared_ptr< SotaUptaneClientuptane_client_
 

Detailed Description

Definition at line 21 of file uptane_test_common.h.


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