Aktualizr
C++ SOTA Client
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
Enumerations
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
Functions
a
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
Variables
Enumerations
Files
File List
File Members
All
Functions
Enumerations
•
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Pages
src
aktualizr_secondary
aktualizr_secondary_metadata.h
1
#ifndef AKTUALIZR_SECONDARY_METADATA_H_
2
#define AKTUALIZR_SECONDARY_METADATA_H_
3
4
#include <unordered_map>
5
6
#include "uptane/fetcher.h"
7
8
class
Metadata
:
public
Uptane::IMetadataFetcher
{
9
public
:
10
Metadata
(
const
Uptane::RawMetaPack
& meta_pack);
11
Metadata
(
Metadata
&&) =
default
;
12
13
bool
fetchRole(std::string*
result
, int64_t maxsize,
Uptane::RepositoryType
repo,
const
Uptane::Role
& role,
14
Uptane::Version
version)
const override
;
15
bool
fetchLatestRole(std::string*
result
, int64_t maxsize,
Uptane::RepositoryType
repo,
16
const
Uptane::Role
& role)
const override
;
17
18
protected
:
19
virtual
bool
getRoleMetadata(std::string*
result
,
const
Uptane::RepositoryType
& repo,
const
Uptane::Role
& role,
20
Uptane::Version
version)
const
;
21
22
private
:
23
const
std::unordered_map<std::string, std::string> _director_metadata;
24
const
std::unordered_map<std::string, std::string> _image_metadata;
25
Uptane::Version
director_root_version;
26
Uptane::Version
image_root_version;
27
};
28
29
#endif // AKTUALIZR_SECONDARY_METADATA_H_
Uptane::Version
Metadata version numbers.
Definition:
tuf.h:116
Uptane::IMetadataFetcher
Definition:
fetcher.h:16
Uptane::RawMetaPack
Definition:
tuf.h:535
Uptane::RepositoryType
Definition:
tuf.h:20
result
Results of libaktualizr API calls.
Definition:
results.h:13
Uptane::Role
TUF Roles.
Definition:
tuf.h:57
Metadata
Definition:
aktualizr_secondary_metadata.h:8
Generated by
1.8.16