Aktualizr
C++ SOTA Client
Public Member Functions | Static Public Member Functions | Friends | List of all members
Uptane::Target Class Reference

Public Member Functions

 Target (std::string filename, const Json::Value &content)
 
 Target (std::string filename, EcuMap ecus, std::vector< Hash > hashes, uint64_t length, std::string correlation_id="")
 
const EcuMap & ecus () const
 
std::string filename () const
 
std::string sha256Hash () const
 
std::string sha512Hash () const
 
const std::vector< Hash > & hashes () const
 
const std::vector< HardwareIdentifier > & hardwareIds () const
 
std::string custom_version () const
 
Json::Value custom_data () const
 
void updateCustom (Json::Value &custom)
 
std::string correlation_id () const
 
void setCorrelationId (std::string correlation_id)
 
uint64_t length () const
 
bool IsValid () const
 
std::string uri () const
 
void setUri (std::string uri)
 
bool MatchHash (const Hash &hash) const
 
void InsertEcu (const std::pair< EcuSerial, HardwareIdentifier > &pair)
 
bool IsForEcu (const EcuSerial &ecuIdentifier) const
 
bool IsOstree () const
 Is this an OSTree target? OSTree targets need special treatment because the hash doesn't represent the contents of the update itself, instead it is the hash (name) of the root commit object.
 
std::string type () const
 
bool operator== (const Target &t2)=delete
 
bool MatchTarget (const Target &t2) const
 
Json::Value toDebugJson () const
 
InstalledImageInfo getTargetImageInfo () const
 

Static Public Member Functions

static Target Unknown ()
 

Friends

std::ostream & operator<< (std::ostream &os, const Target &t)
 

Detailed Description

Definition at line 379 of file types.h.


The documentation for this class was generated from the following files: