|
Android-cuttlefish cvd tool
|
#include <stdlib.h>#include <functional>#include <map>#include <optional>#include <string>#include <string_view>#include <utility>#include <vector>#include "absl/flags/flag.h"#include "absl/flags/parse.h"#include "absl/log/log.h"#include "absl/strings/str_format.h"#include "cuttlefish/common/libs/key_equals_value/key_equals_value.h"#include "cuttlefish/host/libs/web/http_client/curl_http_client.h"#include "cuttlefish/host/libs/web/http_client/http_string.h"#include "cuttlefish/result/expect.h"#include "cuttlefish/result/result_type.h"
Namespaces | |
| namespace | cuttlefish |
| namespace | cuttlefish::anonymous_namespace{defaults.cpp} |
Functions | |
| ABSL_FLAG (std::string, filename, "/usr/lib/cuttlefish-common/etc/cf_defaults", "Output filename.") | |
| ABSL_FLAG (std::optional< std::string >, static_defaults_when, std::nullopt, "Specify a key-value pair as \"<key>=<value>\". " "The key should be a metadata path, e.g., 'project/project-id'. " "If found in GCE metadata, then use statically defined defaults.") | |
| Result< std::string > | cuttlefish::anonymous_namespace{defaults.cpp}::MetadataValue (std::string_view key) |
| Result< std::pair< std::string, std::string > > | cuttlefish::anonymous_namespace{defaults.cpp}::ParseKeyValueFlag (const std::string &flag) |
| Result< bool > | cuttlefish::anonymous_namespace{defaults.cpp}::UseStaticDefaults (const std::optional< std::string > &flag) |
| Result< std::map< std::string, std::string, std::less< void > > > | cuttlefish::anonymous_namespace{defaults.cpp}::DefaultsFromMetadata () |
| std::map< std::string, std::string > | cuttlefish::anonymous_namespace{defaults.cpp}::StaticDefaults () |
| Result< int > | cuttlefish::DefaultsMain (int argc, char *argv[]) |
| int | main (int argc, char *argv[]) |
| ABSL_FLAG | ( | std::optional< std::string > | , |
| static_defaults_when | , | ||
| std::nullopt | , | ||
| "Specify a key-value pair as \"<key> | = <value>\". " "The key should be a metadata path, e.g., 'project/project-id'. " "If found in GCE metadata, then use statically defined defaults." |
||
| ) |
| ABSL_FLAG | ( | std::string | , |
| filename | , | ||
| "/usr/lib/cuttlefish-common/etc/cf_defaults" | , | ||
| "Output filename." | |||
| ) |
| int main | ( | int | argc, |
| char * | argv[] | ||
| ) |