Android-cuttlefish cvd tool
Namespaces | Functions
build_api_credentials.cc File Reference
#include "cuttlefish/host/commands/cvd/fetch/build_api_credentials.h"
#include <memory>
#include <string>
#include <utility>
#include "absl/log/log.h"
#include "json/reader.h"
#include "json/value.h"
#include "cuttlefish/common/libs/utils/environment.h"
#include "cuttlefish/common/libs/utils/files.h"
#include "cuttlefish/common/libs/utils/json.h"
#include "cuttlefish/files/file_exists.h"
#include "cuttlefish/host/commands/cvd/fetch/build_api_flags.h"
#include "cuttlefish/host/libs/web/credential_source.h"
#include "cuttlefish/host/libs/web/http_client/http_client.h"
#include "cuttlefish/result/result.h"
Include dependency graph for build_api_credentials.cc:

Namespaces

namespace  cuttlefish
 
namespace  cuttlefish::anonymous_namespace{build_api_credentials.cc}
 

Functions

std::unique_ptr< CredentialSource > cuttlefish::anonymous_namespace{build_api_credentials.cc}::TryParseServiceAccount (HttpClient &http_client, const std::string &file_content, const std::string &scope)
 
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)
 
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)
 
Result< std::unique_ptr< CredentialSource > > cuttlefish::GetCredentialSourceFromFlags (HttpClient &http_client, const BuildApiFlags &flags, const std::string &oauth_filepath, const std::string &scope)
 
std::string cuttlefish::GetAcloudOauthFilepath ()