Aktualizr
C++ SOTA Client
opcuasecondary.h
1 #ifndef UPTANE_OPCUASECONDARY_H_
2 #define UPTANE_OPCUASECONDARY_H_
3 
4 #include "json/json.h"
5 #include "secondaryinterface.h"
6 
7 #include "utilities/events.h"
8 #include "utilities/types.h"
9 
10 namespace Uptane {
11 
12 struct MetaPack;
13 class SecondaryConfig;
14 
16  public:
17  explicit OpcuaSecondary(const SecondaryConfig& sconfig_in);
18  ~OpcuaSecondary() override;
19 
20  Uptane::EcuSerial getSerial() override;
21  Uptane::HardwareIdentifier getHwId() override;
22  PublicKey getPublicKey() override;
23 
24  Json::Value getManifest() override;
25  bool putMetadata(const RawMetaPack& meta_pack) override;
26 
27  bool sendFirmwareAsync(const std::shared_ptr<std::string>& data) override;
28 
29  int getRootVersion(bool director) override;
30  bool putRoot(const std::string& root, bool director) override;
31 };
32 
33 } // namespace Uptane
34 
35 #endif // UPTANE_OPCUASECONDARY_H_
General data structures.
Definition: types.cc:6
Base data types that are used in The Update Framework (TUF), part of UPTANE.