1 #ifndef UPTANE_SECONDARY_PROVIDER_H
2 #define UPTANE_SECONDARY_PROVIDER_H
6 #include "libaktualizr/config.h"
7 #include "libaktualizr/packagemanagerinterface.h"
17 bool getMetadata(Uptane::MetaBundle* meta_bundle,
const Uptane::Target& target)
const;
18 bool getDirectorMetadata(std::string* root, std::string* targets)
const;
19 bool getImageRepoMetadata(std::string* root, std::string* timestamp, std::string* snapshot,
20 std::string* targets)
const;
21 std::string getTreehubCredentials()
const;
22 std::ifstream getTargetFileHandle(
const Uptane::Target& target)
const;
26 const std::shared_ptr<const PackageManagerInterface>& package_manager_in)
27 : config_(config_in), storage_(storage_in), package_manager_(package_manager_in) {}
30 const std::shared_ptr<const INvStorage> storage_;
31 const std::shared_ptr<const PackageManagerInterface> package_manager_;
34 #endif // UPTANE_SECONDARY_PROVIDER_H