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

#include <fetch_context.h>

Collaboration diagram for cuttlefish::FetchArtifact:
Collaboration graph
[legend]

Public Member Functions

Result< void > Download ()
 
Result< void > DownloadTo (std::string local_path)
 
Result< ReadableZip * > AsZip ()
 
Result< void > ExtractAll ()
 
Result< void > ExtractAll (const std::string &local_path)
 
Result< void > ExtractOne (const std::string &member_name)
 
Result< void > ExtractOneTo (const std::string &member_name, const std::string &local_path)
 
Result< void > DeleteLocalFile ()
 

Private Member Functions

 FetchArtifact (class FetchBuildContext &, std::string artifact_name)
 

Private Attributes

FetchBuildContextfetch_build_context_
 
std::string artifact_name_
 
std::string downloaded_path_
 
std::optional< ReadableZipzip_
 

Friends

class FetchBuildContext
 

Constructor & Destructor Documentation

◆ FetchArtifact()

cuttlefish::FetchArtifact::FetchArtifact ( class FetchBuildContext context,
std::string  artifact_name 
)
private

Member Function Documentation

◆ AsZip()

Result< ReadableZip * > cuttlefish::FetchArtifact::AsZip ( )

◆ DeleteLocalFile()

Result< void > cuttlefish::FetchArtifact::DeleteLocalFile ( )

◆ Download()

Result< void > cuttlefish::FetchArtifact::Download ( )

◆ DownloadTo()

Result< void > cuttlefish::FetchArtifact::DownloadTo ( std::string  local_path)

◆ ExtractAll() [1/2]

Result< void > cuttlefish::FetchArtifact::ExtractAll ( )

◆ ExtractAll() [2/2]

Result< void > cuttlefish::FetchArtifact::ExtractAll ( const std::string &  local_path)

◆ ExtractOne()

Result< void > cuttlefish::FetchArtifact::ExtractOne ( const std::string &  member_name)

◆ ExtractOneTo()

Result< void > cuttlefish::FetchArtifact::ExtractOneTo ( const std::string &  member_name,
const std::string &  local_path 
)

Friends And Related Function Documentation

◆ FetchBuildContext

friend class FetchBuildContext
friend

Member Data Documentation

◆ artifact_name_

std::string cuttlefish::FetchArtifact::artifact_name_
private

◆ downloaded_path_

std::string cuttlefish::FetchArtifact::downloaded_path_
private

◆ fetch_build_context_

FetchBuildContext& cuttlefish::FetchArtifact::fetch_build_context_
private

◆ zip_

std::optional<ReadableZip> cuttlefish::FetchArtifact::zip_
private

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