1 #ifndef DOCKERAPPMGR_H_
2 #define DOCKERAPPMGR_H_
4 #include "ostreemanager.h"
5 #include "uptane/iterator.h"
7 using DockerAppCb = std::function<bool(
const std::string &app,
const Uptane::Target &app_target)>;
12 std::shared_ptr<HttpInterface> http)
13 :
OstreeManager(std::move(pconfig), std::move(bconfig), std::move(storage), std::move(http)) {
14 fake_fetcher_ = std::make_shared<Uptane::Fetcher>(
"",
"", http_);
19 TargetStatus verifyTarget(
const Uptane::Target &target)
const override;
20 std::string name()
const override {
return "ostree+docker-app"; }
23 bool iterate_apps(
const Uptane::Target &target,
const DockerAppCb &cb)
const;
28 std::shared_ptr<Uptane::Fetcher> fake_fetcher_;
30 #endif // DOCKERAPPMGR_H_