|
Android-cuttlefish cvd tool
|
#include <fetch_context.h>

Public Member Functions | |
| const cuttlefish::Build & | Build () const |
| std::string | GetBuildZipName (const std::string &) const |
| std::optional< std::string > | GetFilepath () const |
| FetchArtifact | Artifact (std::string artifact_name) |
Private Member Functions | |
| FetchBuildContext (class FetchContext &, ::cuttlefish::Build, std::string_view target_directory, FileSource, FetchTracer::Trace) | |
| Result< void > | DesparseFiles (std::vector< std::string > files) |
| Result< void > | AddFileToConfig (std::string file, std::string archive_name="", std::string archive_path="") |
Private Attributes | |
| class FetchContext & | fetch_context_ |
| ::cuttlefish::Build | build_ |
| std::string | target_directory_ |
| FileSource | file_source_ |
| FetchTracer::Trace | trace_ |
Friends | |
| class | FetchArtifact |
| class | FetchContext |
Wraps standard download operations with cross-cutting concerns:
File paths for return values and argument values are relative to the target directory.
By hiding the target directory from direct access, IO operations are funneled through an instance of this type, which guarantees none of the cross-cutting concerns are missed. Additionally, this could be replaced with a fake implementation later to support unit testing the business logic.
|
private |
|
private |
| FetchArtifact cuttlefish::FetchBuildContext::Artifact | ( | std::string | artifact_name | ) |
| const cuttlefish::Build & cuttlefish::FetchBuildContext::Build | ( | ) | const |
|
private |
| std::string cuttlefish::FetchBuildContext::GetBuildZipName | ( | const std::string & | name | ) | const |
| std::optional< std::string > cuttlefish::FetchBuildContext::GetFilepath | ( | ) | const |
|
friend |
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |