Google Cloud C++ Client
0.4.0
C++ Client Library for Google Cloud Platform
|
The Google Cloud C++ Library inlined, versioned namespace. More...
Classes | |
class | future |
Implement ISO/IEC TS 19571:2016 future<T> . More... | |
class | future< void > |
Implement ISO/IEC TS 19571:2016 future for void. More... | |
class | IamBinding |
Represents a Binding which associates a member with a particular role which can be used for Identity and Access management for Cloud Platform Resources. More... | |
class | IamBindings |
Represents a container for providing users with a handful of operation to users which they can use to add and remove members to Binding which is used for defining IAM Policy for Cloud Platform Resources. More... | |
struct | IamPolicy |
Represent the result of a GetIamPolicy or SetIamPolicy request. More... | |
class | LogBackend |
A sink to receive log records. More... | |
class | Logger |
Define the class to capture a log message. More... | |
class | Logger< false > |
Define the logger for a disabled log level. More... | |
struct | LogRecord |
Represents a single log message. More... | |
class | LogSink |
struct | NullStream |
Implements operator<< for all types, without any effect. More... | |
class | optional |
A poor's man version of std::optional<T>. More... | |
class | promise |
Implement promise<T> as defined in ISO/IEC TS 19571:2016. More... | |
class | promise< void > |
Specialize promise as defined in ISO/IEC TS 19571:2016 for void. More... | |
class | RuntimeStatusError |
class | Status |
Reports error code and details from a remote request. More... | |
class | StatusOr |
Holds a value or a Status indicating why there is no value. More... | |
Functions | |
std::ostream & | operator<< (std::ostream &os, IamBindings const &rhs) |
std::ostream & | operator<< (std::ostream &os, IamPolicy const &rhs) |
bool | operator== (IamPolicy const &lhs, IamPolicy const &rhs) |
bool | operator< (IamPolicy const &lhs, IamPolicy const &rhs) |
bool | operator!= (IamPolicy const &lhs, IamPolicy const &rhs) |
bool | operator> (IamPolicy const &lhs, IamPolicy const &rhs) |
bool | operator<= (IamPolicy const &lhs, IamPolicy const &rhs) |
bool | operator>= (IamPolicy const &lhs, IamPolicy const &rhs) |
std::ostream & | operator<< (std::ostream &os, Severity x) |
Streaming operator, writes a human readable representation. More... | |
std::ostream & | operator<< (std::ostream &os, LogRecord const &rhs) |
Default formatting of a LogRecord. More... | |
std::string | StatusCodeToString (StatusCode code) |
std::ostream & | operator<< (std::ostream &os, StatusCode code) |
std::ostream & | operator<< (std::ostream &os, Status const &rhs) |
template<typename T > | |
optional< T > | make_optional (T &&t) |
template<typename T > | |
StatusOr< T > | make_status_or (T rhs) |
int constexpr | version_major () |
The Google Cloud Storage C++ Client major version. More... | |
int constexpr | version_minor () |
The Google Cloud Storage C++ Client minor version. More... | |
int constexpr | version_patch () |
The Google Cloud Storage C++ Client patch version. More... | |
int constexpr | version () |
A single integer representing the Major/Minor/Patch version. More... | |
std::string | version_string () |
The version as a string, in MAJOR.MINOR.PATCH+gitrev format. More... | |
Control behaviour on unrecoverable errors. | |
The following APIs are google::cloud counterpart for std::{set,get}_terminate functions. If exceptions are not enabled via GOOGLE_CLOUD_CPP_HAVE_EXCEPTIONS, calling any function from throw_delegate.h will result in calling the handler installed via this API. By default, a call to std::abort() is used. | |
using | TerminateHandler = std::function< void(const char *msg)> |
Terminate handler. More... | |
TerminateHandler | SetTerminateHandler (TerminateHandler f) |
Install terminate handler and get the old one atomically. More... | |
TerminateHandler | GetTerminateHandler () |
Get the currently installed handler. More... | |
void | Terminate (const char *msg) |
Invoke the currently installed handler. More... | |
The Google Cloud C++ Library inlined, versioned namespace.
Applications may need to link multiple versions of the Google Cloud C++ Libraries, for example, if they link a library that uses an older version of the libraries than they do. This namespace is inlined, so applications can use google::cloud::Foo
in their source, but the symbols are versioned, i.e., the symbol becomes google::cloud::v1::Foo
.
Note that, consistent with the semver.org guidelines, the v0 version makes no guarantees with respect to backwards compatibility.
using google::cloud::v0::TerminateHandler = typedef std::function<void(const char* msg)> |
Terminate handler.
It should handle the error, whose description are given in msg and should never return.
Definition at line 41 of file terminate_handler.h.
|
strong |
Define the severity levels for Google Cloud Platform C++ Libraries logging.
These are modelled after the severity level in syslog(1) and many derived tools.
We force the enum to be represented as an int
because we will store the values in an std::atomic<>
and the implementations usually optimize std::atomic<int>
but not std::atomic<Foo>
|
strong |
Well-known status codes with grpc::StatusCode
-compatible values.
The semantics of these values are documented in: https://grpc.io/grpc/cpp/classgrpc_1_1_status.html
TerminateHandler google::cloud::v0::GetTerminateHandler | ( | ) |
Get the currently installed handler.
Definition at line 59 of file terminate_handler.cc.
optional<T> google::cloud::v0::make_optional | ( | T && | t | ) |
Definition at line 258 of file optional.h.
StatusOr<T> google::cloud::v0::make_status_or | ( | T | rhs | ) |
Definition at line 325 of file status_or.h.
Definition at line 51 of file iam_policy.h.
Definition at line 46 of file iam_policy.h.
std::ostream & google::cloud::v0::operator<< | ( | std::ostream & | os, |
IamPolicy const & | rhs | ||
) |
Definition at line 21 of file iam_policy.cc.
std::ostream & google::cloud::v0::operator<< | ( | std::ostream & | os, |
Severity | x | ||
) |
std::ostream & google::cloud::v0::operator<< | ( | std::ostream & | os, |
LogRecord const & | rhs | ||
) |
std::ostream & google::cloud::v0::operator<< | ( | std::ostream & | os, |
StatusCode | code | ||
) |
std::ostream & google::cloud::v0::operator<< | ( | std::ostream & | os, |
IamBindings const & | rhs | ||
) |
Definition at line 80 of file iam_bindings.cc.
|
inline |
Definition at line 59 of file iam_policy.h.
Definition at line 41 of file iam_policy.h.
Definition at line 55 of file iam_policy.h.
Definition at line 63 of file iam_policy.h.
TerminateHandler google::cloud::v0::SetTerminateHandler | ( | TerminateHandler | f | ) |
Install terminate handler and get the old one atomically.
f | the handler. It should never return, behaviour is undefined otherwise. |
Definition at line 55 of file terminate_handler.cc.
std::string google::cloud::v0::StatusCodeToString | ( | StatusCode | code | ) |
void google::cloud::v0::Terminate | ( | const char * | msg | ) |
Invoke the currently installed handler.
msg | Details about the error. |
This function should never return.
Definition at line 61 of file terminate_handler.cc.
int constexpr google::cloud::v0::version | ( | ) |
int constexpr google::cloud::v0::version_major | ( | ) |
The Google Cloud Storage C++ Client major version.
int constexpr google::cloud::v0::version_minor | ( | ) |
The Google Cloud Storage C++ Client minor version.
int constexpr google::cloud::v0::version_patch | ( | ) |
The Google Cloud Storage C++ Client patch version.
std::string google::cloud::v0::version_string | ( | ) |
The version as a string, in MAJOR.MINOR.PATCH+gitrev format.