|
Android-cuttlefish cvd tool
|
#include <fetcher_config.h>
Public Member Functions | |
| FetcherConfig () | |
| FetcherConfig (FetcherConfig &&) | |
| FetcherConfig & | operator= (FetcherConfig &&) |
| bool | SaveToFile (const std::string &file) const |
| bool | LoadFromFile (const std::string &file) |
| bool | add_cvd_file (const CvdFile &file, bool override_entry=false) |
| std::map< std::string, CvdFile > | get_cvd_files () const |
| std::string | FindCvdFileWithSuffix (FileSource source, std::string_view suffix) const |
| Result< void > | RemoveFileFromConfig (const std::string &path) |
Private Attributes | |
| Json::Value | dictionary_ |
| std::unique_ptr< std::mutex > | mutex_ |
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.
FetcherConfig is thread-safe for reads and writes, but the move constructor and assignment operator are not thread-safe and cannot be called concurrently with any other operations.
| cuttlefish::FetcherConfig::FetcherConfig | ( | ) |
| cuttlefish::FetcherConfig::FetcherConfig | ( | FetcherConfig && | other | ) |
| bool cuttlefish::FetcherConfig::add_cvd_file | ( | const CvdFile & | file, |
| bool | override_entry = false |
||
| ) |
| std::string cuttlefish::FetcherConfig::FindCvdFileWithSuffix | ( | FileSource | source, |
| std::string_view | suffix | ||
| ) | const |
| std::map< std::string, CvdFile > cuttlefish::FetcherConfig::get_cvd_files | ( | ) | const |
| bool cuttlefish::FetcherConfig::LoadFromFile | ( | const std::string & | file | ) |
| FetcherConfig & cuttlefish::FetcherConfig::operator= | ( | FetcherConfig && | other | ) |
| Result< void > cuttlefish::FetcherConfig::RemoveFileFromConfig | ( | const std::string & | path | ) |
| bool cuttlefish::FetcherConfig::SaveToFile | ( | const std::string & | file | ) | const |
|
private |
|
private |