Android-cuttlefish cvd tool
Public Member Functions | Private Attributes | List of all members
cuttlefish::FetcherConfig Class Reference

#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, CvdFileget_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_
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ FetcherConfig() [1/2]

cuttlefish::FetcherConfig::FetcherConfig ( )

◆ FetcherConfig() [2/2]

cuttlefish::FetcherConfig::FetcherConfig ( FetcherConfig &&  )
default

◆ ~FetcherConfig()

cuttlefish::FetcherConfig::~FetcherConfig ( )

Member Function Documentation

◆ add_cvd_file()

bool cuttlefish::FetcherConfig::add_cvd_file ( const CvdFile file,
bool  override_entry = false 
)

◆ AddFilesToConfig()

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 
)

◆ FindCvdFileWithSuffix()

std::string cuttlefish::FetcherConfig::FindCvdFileWithSuffix ( const std::string &  suffix) const

◆ get_cvd_files()

std::map< std::string, CvdFile > cuttlefish::FetcherConfig::get_cvd_files ( ) const

◆ LoadFromFile()

bool cuttlefish::FetcherConfig::LoadFromFile ( const std::string &  file)

◆ RecordFlags()

void cuttlefish::FetcherConfig::RecordFlags ( )

◆ SaveToFile()

bool cuttlefish::FetcherConfig::SaveToFile ( const std::string &  file) const

Member Data Documentation

◆ dictionary_

std::unique_ptr<Json::Value> cuttlefish::FetcherConfig::dictionary_
private

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