Android-cuttlefish cvd tool
Functions | Variables
cuttlefish::anonymous_namespace{gcs_build_api.cpp} Namespace Reference

Functions

std::string ObjectUrl (const std::string &bucket, const std::string &object)
 
std::string MediaUrl (const std::string &bucket, const std::string &object)
 
std::string ListUrl (const std::string &bucket, const std::string &prefix, const std::string &page_token)
 
Result< std::string > ObjectName (const GcsBuild &build, const std::string &artifact_name)
 
std::optional< uint64_t > ParseSize (const std::string &size)
 
std::optional< uint64_t > ArtifactSize (const GcsBuild &build, const std::string &artifact_name)
 
std::optional< std::string > ArtifactGeneration (const GcsBuild &build, const std::string &artifact_name)
 
Result< std::string > ArtifactUrl (const GcsBuild &build, const std::string &artifact_name)
 
Result< void > VerifyArtifact (const GcsBuild &build, const std::string &artifact_name, const std::string &path)
 
Result< Json::Value > ResponseJson (const HttpResponse< Json::Value > &response, const GcsBuild &build, bool authenticated)
 

Variables

constexpr char kStorageApiUrl [] = "https://storage.googleapis.com/storage/v1"
 
constexpr long kUnauthorized = 401
 
constexpr long kForbidden = 403
 
constexpr char kAnonymousHint []
 

Function Documentation

◆ ArtifactGeneration()

std::optional< std::string > cuttlefish::anonymous_namespace{gcs_build_api.cpp}::ArtifactGeneration ( const GcsBuild &  build,
const std::string &  artifact_name 
)

◆ ArtifactSize()

std::optional< uint64_t > cuttlefish::anonymous_namespace{gcs_build_api.cpp}::ArtifactSize ( const GcsBuild &  build,
const std::string &  artifact_name 
)

◆ ArtifactUrl()

Result< std::string > cuttlefish::anonymous_namespace{gcs_build_api.cpp}::ArtifactUrl ( const GcsBuild &  build,
const std::string &  artifact_name 
)

◆ ListUrl()

std::string cuttlefish::anonymous_namespace{gcs_build_api.cpp}::ListUrl ( const std::string &  bucket,
const std::string &  prefix,
const std::string &  page_token 
)

◆ MediaUrl()

std::string cuttlefish::anonymous_namespace{gcs_build_api.cpp}::MediaUrl ( const std::string &  bucket,
const std::string &  object 
)

◆ ObjectName()

Result< std::string > cuttlefish::anonymous_namespace{gcs_build_api.cpp}::ObjectName ( const GcsBuild &  build,
const std::string &  artifact_name 
)

◆ ObjectUrl()

std::string cuttlefish::anonymous_namespace{gcs_build_api.cpp}::ObjectUrl ( const std::string &  bucket,
const std::string &  object 
)

◆ ParseSize()

std::optional< uint64_t > cuttlefish::anonymous_namespace{gcs_build_api.cpp}::ParseSize ( const std::string &  size)

◆ ResponseJson()

Result< Json::Value > cuttlefish::anonymous_namespace{gcs_build_api.cpp}::ResponseJson ( const HttpResponse< Json::Value > &  response,
const GcsBuild &  build,
bool  authenticated 
)

◆ VerifyArtifact()

Result< void > cuttlefish::anonymous_namespace{gcs_build_api.cpp}::VerifyArtifact ( const GcsBuild &  build,
const std::string &  artifact_name,
const std::string &  path 
)

Variable Documentation

◆ kAnonymousHint

constexpr char cuttlefish::anonymous_namespace{gcs_build_api.cpp}::kAnonymousHint[]
constexpr
Initial value:
=
"\n\nThis fetch presented no credentials. For a bucket that is not "
"public, run `cvd login "
"--scopes=https://www.googleapis.com/auth/devstorage.read_only`"

◆ kForbidden

constexpr long cuttlefish::anonymous_namespace{gcs_build_api.cpp}::kForbidden = 403
constexpr

◆ kStorageApiUrl

constexpr char cuttlefish::anonymous_namespace{gcs_build_api.cpp}::kStorageApiUrl[] = "https://storage.googleapis.com/storage/v1"
constexpr

◆ kUnauthorized

constexpr long cuttlefish::anonymous_namespace{gcs_build_api.cpp}::kUnauthorized = 401
constexpr