Android-cuttlefish cvd tool
Functions
cuttlefish::anonymous_namespace{build_api_credentials.cc} Namespace Reference

Functions

std::unique_ptr< CredentialSourceTryParseServiceAccount (HttpClient &http_client, const std::string &file_content, const std::string &scope)
 
Result< std::unique_ptr< CredentialSource > > GetCredentialSourceLegacy (HttpClient &http_client, const std::string &credential_source, const std::string &oauth_filepath, const std::string &scope)
 
Result< std::unique_ptr< CredentialSource > > GetCredentialSource (HttpClient &http_client, const std::string &credential_source, const std::string &oauth_filepath, const bool use_gce_metadata, const std::string &credential_filepath, const std::string &service_account_filepath, const std::string &scope)
 

Function Documentation

◆ GetCredentialSource()

Result< std::unique_ptr< CredentialSource > > cuttlefish::anonymous_namespace{build_api_credentials.cc}::GetCredentialSource ( HttpClient http_client,
const std::string &  credential_source,
const std::string &  oauth_filepath,
const bool  use_gce_metadata,
const std::string &  credential_filepath,
const std::string &  service_account_filepath,
const std::string &  scope 
)

◆ GetCredentialSourceLegacy()

Result< std::unique_ptr< CredentialSource > > cuttlefish::anonymous_namespace{build_api_credentials.cc}::GetCredentialSourceLegacy ( HttpClient http_client,
const std::string &  credential_source,
const std::string &  oauth_filepath,
const std::string &  scope 
)

◆ TryParseServiceAccount()

std::unique_ptr< CredentialSource > cuttlefish::anonymous_namespace{build_api_credentials.cc}::TryParseServiceAccount ( HttpClient http_client,
const std::string &  file_content,
const std::string &  scope 
)