7 #include <boost/signals2.hpp> 9 #include "config/config.h" 10 #include "sotauptaneclient.h" 11 #include "storage/invstorage.h" 12 #include "uptane/secondaryinterface.h" 75 void Download(
const std::vector<Uptane::Target>& updates);
80 void Install(
const std::vector<Uptane::Target>& updates);
85 void AddSecondary(
const std::shared_ptr<Uptane::SecondaryInterface>& secondary);
92 boost::signals2::connection
SetSignalHandler(std::function<
void(std::shared_ptr<event::BaseEvent>)>& handler);
96 std::shared_ptr<INvStorage> storage_;
97 std::shared_ptr<SotaUptaneClient> uptane_client_;
98 std::shared_ptr<event::Channel> sig_;
99 std::atomic<bool> shutdown_ = {
false};
102 #endif // AKTUALIZR_H_ void Install(const std::vector< Uptane::Target > &updates)
Asynchronously install targets.
void CampaignAccept(const std::string &campaign_id)
Asynchronously accept a campaign for the current device Campaigns are a concept outside of Uptane...
void Download(const std::vector< Uptane::Target > &updates)
Asynchronously download targets.
void AddSecondary(const std::shared_ptr< Uptane::SecondaryInterface > &secondary)
Add new secondary to aktualizr.
boost::signals2::connection SetSignalHandler(std::function< void(std::shared_ptr< event::BaseEvent >)> &handler)
Provide a function to receive event notifications.
void CheckUpdates()
Asynchronously load already-fetched Uptane metadata from disk.
void SendDeviceData()
Asynchronously send local device data to the server.
int Run()
Launch aktualizr.
void FetchMetadata()
Asynchronously fetch Uptane metadata.
Configuration object for an aktualizr instance running on a primary ECU.
void Shutdown()
Asynchronously shutdown Aktualizr.
Aktualizr(Config &config)
Aktualizr requires a configuration object.
void CampaignCheck()
Asynchronously perform a check for campaigns.
This class provides the main APIs necessary for launching and controlling libaktualizr.