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

TUF Roles. More...

#include <tuf.h>

Collaboration diagram for Uptane::Role:
[legend]

Public Member Functions

 Role (const std::string &role_name, bool delegation=false)
 
std::string ToString () const
 
int ToInt () const
 
bool IsDelegation () const
 
bool operator== (const Role &other) const
 
bool operator!= (const Role &other) const
 
bool operator< (const Role &other) const
 

Static Public Member Functions

static Role Root ()
 
static Role Snapshot ()
 
static Role Targets ()
 
static Role Timestamp ()
 
static Role Delegation (const std::string &name)
 
static Role InvalidRole ()
 
static std::vector< RoleRoles ()
 
static bool IsReserved (const std::string &name)
 

Static Public Attributes

static const std::string ROOT = "root"
 
static const std::string SNAPSHOT = "snapshot"
 
static const std::string TARGETS = "targets"
 
static const std::string TIMESTAMP = "timestamp"
 

Friends

std::ostream & operator<< (std::ostream &os, const Role &role)
 

Detailed Description

TUF Roles.

Definition at line 61 of file tuf.h.


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