Aktualizr
C++ SOTA Client
aktualizr_secondary_metadata.h
1 #ifndef AKTUALIZR_SECONDARY_METADATA_H_
2 #define AKTUALIZR_SECONDARY_METADATA_H_
3 
4 #include "uptane/fetcher.h"
5 #include "uptane/tuf.h"
6 
8  public:
9  Metadata(Uptane::MetaBundle meta_bundle_in);
10  Metadata(Metadata&&) = default;
11 
12  void fetchRole(std::string* result, int64_t maxsize, Uptane::RepositoryType repo, const Uptane::Role& role,
13  Uptane::Version version) const override;
14  void fetchLatestRole(std::string* result, int64_t maxsize, Uptane::RepositoryType repo,
15  const Uptane::Role& role) const override;
16 
17  protected:
18  virtual void getRoleMetadata(std::string* result, const Uptane::RepositoryType& repo, const Uptane::Role& role,
19  Uptane::Version version) const;
20 
21  private:
22  const Uptane::MetaBundle meta_bundle_;
23  Uptane::Version director_root_version_;
24  Uptane::Version image_root_version_;
25 };
26 
27 #endif // AKTUALIZR_SECONDARY_METADATA_H_
Uptane::Version
Metadata version numbers.
Definition: tuf.h:120
Uptane::IMetadataFetcher
Definition: fetcher.h:16
Uptane::RepositoryType
Definition: tuf.h:21
result
Results of libaktualizr API calls.
Definition: results.h:12
Uptane::Role
TUF Roles.
Definition: tuf.h:61
Metadata
Definition: aktualizr_secondary_metadata.h:7