|
Android-cuttlefish cvd tool
|
#include "cuttlefish/metrics/host/gce_environment.h"#include <memory>#include <optional>#include <string>#include <string_view>#include <vector>#include "absl/strings/str_split.h"#include "fmt/format.h"#include "cuttlefish/host/libs/web/http_client/curl_global_init.h"#include "cuttlefish/host/libs/web/http_client/curl_http_client.h"#include "cuttlefish/host/libs/web/http_client/http_client.h"#include "cuttlefish/host/libs/web/http_client/http_string.h"#include "cuttlefish/result/result.h"
Namespaces | |
| namespace | cuttlefish |
| namespace | cuttlefish::anonymous_namespace{gce_environment.cc} |
Functions | |
| Result< bool > | cuttlefish::anonymous_namespace{gce_environment.cc}::IsGceEnvironment (HttpClient &http_client) |
| Result< std::string > | cuttlefish::anonymous_namespace{gce_environment.cc}::QueryGceMetadata (HttpClient &http_client, std::string_view metadata_key) |
| Result< std::string > | cuttlefish::anonymous_namespace{gce_environment.cc}::GetZoneValue (std::string_view response_string) |
| Result< std::optional< GceEnvironment > > | cuttlefish::DetectGceEnvironment () |
Variables | |
| constexpr std::string_view | cuttlefish::anonymous_namespace{gce_environment.cc}::kDetectUrl = "metadata.google.internal" |
| constexpr std::string_view | cuttlefish::anonymous_namespace{gce_environment.cc}::kDetectHeader = "Metadata-Flavor" |
| constexpr std::string_view | cuttlefish::anonymous_namespace{gce_environment.cc}::kExpectedDetectHeaderValue = "Google" |
| constexpr std::string_view | cuttlefish::anonymous_namespace{gce_environment.cc}::kGceMetadataUrlBase |
| constexpr std::string_view | cuttlefish::anonymous_namespace{gce_environment.cc}::kNumericProjectId = "project/numeric-project-id" |
| constexpr std::string_view | cuttlefish::anonymous_namespace{gce_environment.cc}::kZone = "instance/zone" |