Aktualizr
C++ SOTA Client
Public Member Functions | Protected Attributes | List of all members
PackageManagerInterface Class Referenceabstract
Inheritance diagram for PackageManagerInterface:
[legend]
Collaboration diagram for PackageManagerInterface:
[legend]

Public Member Functions

 PackageManagerInterface (const PackageConfig &pconfig, const BootloaderConfig &bconfig, const std::shared_ptr< INvStorage > &storage, const std::shared_ptr< HttpInterface > &http)
 
virtual std::string name () const =0
 
virtual Json::Value getInstalledPackages () const =0
 
virtual Uptane::Target getCurrent () const =0
 
virtual data::InstallationResult install (const Uptane::Target &target) const =0
 
virtual void completeInstall () const
 
virtual data::InstallationResult finalizeInstall (const Uptane::Target &target)=0
 
virtual void updateNotify ()
 
virtual bool fetchTarget (const Uptane::Target &target, Uptane::Fetcher &fetcher, const KeyManager &keys, const FetcherProgressCb &progress_cb, const api::FlowControlToken *token)
 
virtual TargetStatus verifyTarget (const Uptane::Target &target) const
 
virtual bool checkAvailableDiskSpace (const uint64_t required_bytes) const
 
virtual boost::optional< std::pair< uintmax_t, std::string > > checkTargetFile (const Uptane::Target &target) const
 
virtual std::ofstream createTargetFile (const Uptane::Target &target)
 
virtual std::ofstream appendTargetFile (const Uptane::Target &target)
 
virtual std::ifstream openTargetFile (const Uptane::Target &target) const
 
virtual void removeTargetFile (const Uptane::Target &target)
 
virtual std::vector< Uptane::TargetgetTargetFiles ()
 

Protected Attributes

PackageConfig config
 
std::shared_ptr< INvStoragestorage_
 
std::shared_ptr< HttpInterfacehttp_
 

Detailed Description

Definition at line 42 of file packagemanagerinterface.h.


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