Aktualizr
C++ SOTA Client
All Classes Namespaces Files Functions Variables Enumerations Enumerator Pages
Public Member Functions | Static Public Member Functions | Friends | List of all members
OSTreeHash Class Reference

Public Member Functions

 OSTreeHash (const uint8_t hash[32])
 
 OSTreeHash (const std::array< uint8_t, 32 > &hash)
 
std::string string () const
 
bool operator< (const OSTreeHash &other) const
 

Static Public Member Functions

static OSTreeHash Parse (const std::string &hash)
 Parse an OSTree hash from a string. More...
 

Friends

std::ostream & operator<< (std::ostream &os, const OSTreeHash &obj)
 

Detailed Description

Definition at line 10 of file ostree_hash.h.

Member Function Documentation

◆ Parse()

OSTreeHash OSTreeHash::Parse ( const std::string &  hash)
static

Parse an OSTree hash from a string.

This will normally be a root commit.

Exceptions
OSTreeCommitParseErroron invalid input

Definition at line 7 of file ostree_hash.cc.


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