Aktualizr
C++ SOTA Client
All Classes Namespaces Files Functions Variables Enumerations Enumerator Pages
Public Member Functions | Static Public Member Functions | List of all members
OstreeManager Class Reference
Inheritance diagram for OstreeManager:
[legend]
Collaboration diagram for OstreeManager:
[legend]

Public Member Functions

 OstreeManager (PackageConfig pconfig, BootloaderConfig bconfig, std::shared_ptr< INvStorage > storage, std::shared_ptr< HttpInterface > http)
 
std::string name () const override
 
Json::Value getInstalledPackages () const override
 
std::string getCurrentHash () const
 
Uptane::Target getCurrent () const override
 
bool imageUpdated ()
 
data::InstallationResult install (const Uptane::Target &target) const override
 
void completeInstall () const override
 
data::InstallationResult finalizeInstall (const Uptane::Target &target) const override
 
bool fetchTarget (const Uptane::Target &target, Uptane::Fetcher &fetcher, const KeyManager &keys, FetcherProgressCb progress_cb, const api::FlowControlToken *token) override
 
TargetStatus verifyTarget (const Uptane::Target &target) const override
 
GObjectUniquePtr< OstreeDeployment > getStagedDeployment () const
 
- Public Member Functions inherited from PackageManagerInterface
 PackageManagerInterface (PackageConfig pconfig, BootloaderConfig bconfig, std::shared_ptr< INvStorage > storage, std::shared_ptr< HttpInterface > http)
 
virtual bool rebootDetected ()
 
virtual void rebootFlagClear ()
 
virtual void updateNotify ()
 
Json::Value getManifest (const Uptane::EcuSerial &ecu_serial) const
 

Static Public Member Functions

static GObjectUniquePtr< OstreeSysroot > LoadSysroot (const boost::filesystem::path &path)
 
static GObjectUniquePtr< OstreeRepo > LoadRepo (OstreeSysroot *sysroot, GError **error)
 
static bool addRemote (OstreeRepo *repo, const std::string &url, const KeyManager &keys)
 
static data::InstallationResult pull (const boost::filesystem::path &sysroot_path, const std::string &ostree_server, const KeyManager &keys, const Uptane::Target &target, const api::FlowControlToken *token=nullptr, OstreeProgressCb progress_cb=nullptr)
 

Additional Inherited Members

- Protected Attributes inherited from PackageManagerInterface
PackageConfig config
 
std::shared_ptr< INvStoragestorage_
 
std::shared_ptr< HttpInterfacehttp_
 
std::unique_ptr< Bootloaderbootloader_
 

Detailed Description

Definition at line 40 of file ostreemanager.h.


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