Aktualizr
C++ SOTA Client
|
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 () |
![]() | |
Aktualizr (const Config &config) | |
Aktualizr requires a configuration object. More... | |
Aktualizr (const Aktualizr &)=delete | |
Aktualizr & | operator= (const Aktualizr &)=delete |
void | Initialize () |
Initialize aktualizr. More... | |
bool | IsRegistered () const |
Returns true if the device has been registered to the backend succesffully. | |
std::future< void > | RunForever () |
Asynchronously run aktualizr indefinitely until Shutdown is called. More... | |
void | Shutdown () |
Shuts down currently running RunForever() method. | |
std::future< result::CampaignCheck > | CampaignCheck () |
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 () |
Send local device data to the server. More... | |
std::future< result::UpdateCheck > | CheckUpdates () |
Fetch Uptane metadata and check for updates. More... | |
std::future< result::Download > | Download (const std::vector< Uptane::Target > &updates) |
Download targets. More... | |
InstallationLog | GetInstallationLog () |
std::vector< Uptane::Target > | GetStoredTargets () |
Get list of targets currently in storage. More... | |
void | DeleteStoredTarget (const Uptane::Target &target) |
Delete a stored target from storage. More... | |
std::unique_ptr< StorageTargetRHandle > | OpenStoredTarget (const Uptane::Target &target) |
Get target downloaded in Download call. More... | |
std::future< result::Install > | Install (const std::vector< Uptane::Target > &updates) |
Install targets. 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< Uptane::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 | |
std::vector< SecondaryInfo > | GetSecondaries () 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 | |
![]() | |
using | InstallationLog = std::vector< InstallationLogEntry > |
using | SigHandler = std::function< void(std::shared_ptr< event::BaseEvent >)> |
![]() | |
Aktualizr (Config config, std::shared_ptr< INvStorage > storage_in, std::shared_ptr< HttpInterface > http_in) | |
![]() | |
std::shared_ptr< SotaUptaneClient > | uptane_client_ |
Definition at line 21 of file uptane_test_common.h.