![]() |
CernVM-FS
2.13.0
|
#include <swissknife_assistant.h>
Public Types | |
enum | OpenMode { kOpenReadOnly, kOpenReadWrite } |
Public Member Functions | |
Assistant (download::DownloadManager *d, manifest::Manifest *m, const std::string &r, const std::string &t) | |
history::History * | GetHistory (OpenMode open_mode) |
catalog::Catalog * | GetCatalog (const shash::Any &catalog_hash, OpenMode open_mode) |
Private Member Functions | |
bool | FetchObject (const shash::Any &id, const std::string &local_path) |
Private Attributes | |
download::DownloadManager * | download_mgr_ |
manifest::Manifest * | manifest_ |
std::string | repository_url_ |
std::string | tmp_dir_ |
Common tasks when working with repositories, such as getting the a catalog or getting the history database. Objects are automatically removed when the Assistant goes out of scope.
Definition at line 32 of file swissknife_assistant.h.
Enumerator | |
---|---|
kOpenReadOnly | |
kOpenReadWrite |
Definition at line 34 of file swissknife_assistant.h.
|
inline |
Definition at line 39 of file swissknife_assistant.h.
|
private |
catalog::Catalog * swissknife::Assistant::GetCatalog | ( | const shash::Any & | catalog_hash, |
OpenMode | open_mode | ||
) |
history::History * swissknife::Assistant::GetHistory | ( | OpenMode | open_mode | ) |
|
private |
Definition at line 57 of file swissknife_assistant.h.
|
private |
Definition at line 58 of file swissknife_assistant.h.
|
private |
Definition at line 59 of file swissknife_assistant.h.
|
private |
Definition at line 60 of file swissknife_assistant.h.