1 #ifndef IMAGES_REPOSITORY_H_ 2 #define IMAGES_REPOSITORY_H_ 4 #include "uptanerepository.h" 14 bool verifyTargets(
const std::string& targets_raw);
15 bool targetsExpired() {
return targets.isExpired(TimeStamp::Now()); }
16 int64_t targetsSize() {
return snapshot.targets_size(); }
17 std::unique_ptr<Uptane::Target> getTarget(
const Uptane::Target& director_target);
19 bool verifyTimestamp(
const std::string& timestamp_raw);
20 bool timestampExpired() {
return timestamp.isExpired(TimeStamp::Now()); }
22 bool verifySnapshot(
const std::string& snapshot_raw);
23 bool snapshotExpired() {
return snapshot.isExpired(TimeStamp::Now()); }
24 int64_t snapshotSize() {
return timestamp.snapshot_size(); }
26 Exception getLastException()
const {
return last_exception; }
38 #endif // IMAGES_REPOSITORY_H
Base data types that are used in The Update Framework (TUF), part of UPTANE.