Android-cuttlefish cvd tool
|
#include <fetcher_config.h>
Public Member Functions | |
FetcherConfig () | |
FetcherConfig (FetcherConfig &&) | |
~FetcherConfig () | |
bool | SaveToFile (const std::string &file) const |
bool | LoadFromFile (const std::string &file) |
void | RecordFlags () |
bool | add_cvd_file (const CvdFile &file, bool override_entry=false) |
std::map< std::string, CvdFile > | get_cvd_files () const |
std::string | FindCvdFileWithSuffix (const std::string &suffix) const |
Result< void > | AddFilesToConfig (FileSource purpose, const std::string &build_id, const std::string &build_target, const std::vector< std::string > &paths, const std::string &directory_prefix, bool override_entry=false) |
Private Attributes | |
std::unique_ptr< Json::Value > | dictionary_ |
A report of state to transfer from fetch_cvd to downstream consumers.
This includes data intended for programmatic access by other tools such as assemble_cvd. assemble_cvd can use signals like that multiple build IDs are present to judge that it needs to do super image remixing or rebuilding the boot image for a new kernel.
The output json also includes data relevant for human debugging, like which flags fetch_cvd was invoked with.
cuttlefish::FetcherConfig::FetcherConfig | ( | ) |
|
default |
cuttlefish::FetcherConfig::~FetcherConfig | ( | ) |
bool cuttlefish::FetcherConfig::add_cvd_file | ( | const CvdFile & | file, |
bool | override_entry = false |
||
) |
Result< void > cuttlefish::FetcherConfig::AddFilesToConfig | ( | FileSource | purpose, |
const std::string & | build_id, | ||
const std::string & | build_target, | ||
const std::vector< std::string > & | paths, | ||
const std::string & | directory_prefix, | ||
bool | override_entry = false |
||
) |
std::string cuttlefish::FetcherConfig::FindCvdFileWithSuffix | ( | const std::string & | suffix | ) | const |
std::map< std::string, CvdFile > cuttlefish::FetcherConfig::get_cvd_files | ( | ) | const |
bool cuttlefish::FetcherConfig::LoadFromFile | ( | const std::string & | file | ) |
void cuttlefish::FetcherConfig::RecordFlags | ( | ) |
bool cuttlefish::FetcherConfig::SaveToFile | ( | const std::string & | file | ) | const |
|
private |