Aktualizr
C++ SOTA Client
All Classes Namespaces Files Functions Variables Enumerations Enumerator Pages
Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
OSTreeRepo Class Referenceabstract

A source repository to read OSTree objects from. More...

#include <ostree_repo.h>

Inheritance diagram for OSTreeRepo:
[legend]
Collaboration diagram for OSTreeRepo:
[legend]

Public Types

using ptr = std::shared_ptr< OSTreeRepo >
 

Public Member Functions

OSTreeRepooperator= (const OSTreeRepo &)=delete
 
virtual bool LooksValid () const =0
 
virtual boost::filesystem::path root () const =0
 
virtual OSTreeRef GetRef (const std::string &refname) const =0
 
OSTreeObject::ptr GetObject (OSTreeHash hash, OstreeObjectType type) const
 
OSTreeObject::ptr GetObject (const uint8_t sha256[32], OstreeObjectType type) const
 

Protected Types

typedef std::map< OSTreeHash, OSTreeObject::ptr > otable
 

Protected Member Functions

virtual bool FetchObject (const boost::filesystem::path &path) const =0
 
bool CheckForObject (const OSTreeHash &hash, const std::string &path, OSTreeObject::ptr &object) const
 

Protected Attributes

otable ObjectTable
 

Detailed Description

A source repository to read OSTree objects from.

This can be either a directory on disk, or a URL in the garage-deploy case.

Definition at line 19 of file ostree_repo.h.


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