Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
util::GCE Class Reference

Public Types

using SslContext = ::boost::asio::ssl::context
 
using error_code = ::boost::system::error_code
 

Public Member Functions

Status Init ()
 
const std::string & project_id () const
 
const std::string & client_id () const
 
const std::string & client_secret () const
 
const std::string & account_id () const
 
const std::string & refresh_token () const
 
std::string access_token () const
 
StatusObject< std::string > RefreshAccessToken (IoContext *context) const
 
bool is_prod_env () const
 
void Test_InjectAcessToken (std::string access_token)
 

Static Public Member Functions

static const char * GoogleCert ()
 
::boost::asio::ssl::context CheckedSslContext ()
 

Static Public Attributes

static const char * kApiDomain = "www.googleapis.com"
 

Detailed Description

Definition at line 16 of file gce.h.

Member Function Documentation

◆ access_token()

std::string util::GCE::access_token ( ) const

Returns cached access_token. Must be called after RefreshAccessToken has been called.

Definition at line 215 of file gce.cc.


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