Android-cuttlefish cvd tool
build_api_flags.h
Go to the documentation of this file.
1//
2// Copyright (C) 2023 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16#pragma once
17
18#include <stddef.h>
19
20#include <chrono>
21#include <string>
22#include <vector>
23
29
30namespace cuttlefish {
31
32inline constexpr char kDefaultApiKey[] = "";
33inline constexpr char kDefaultCredentialSource[] = "";
34inline constexpr char kDefaultProjectID[] = "";
35inline constexpr std::chrono::seconds kDefaultWaitRetryPeriod =
36 std::chrono::seconds(20);
37inline constexpr bool kDefaultEnableCaching = true;
38
40 std::vector<Flag> Flags();
41
42 std::string api_key = kDefaultApiKey;
51};
52
53} // namespace cuttlefish
Definition: alloc_driver.h:20
constexpr bool kDefaultEnableCaching
Definition: build_api_flags.h:37
constexpr char kDefaultApiKey[]
Definition: build_api_flags.h:32
constexpr std::chrono::seconds kDefaultWaitRetryPeriod
Definition: build_api_flags.h:35
constexpr char kAndroidBuildServiceUrl[]
Definition: android_build_url.h:50
constexpr char kDefaultProjectID[]
Definition: build_api_flags.h:34
constexpr size_t kDefaultCacheSizeGb
Definition: cache.h:27
constexpr char kDefaultCredentialSource[]
Definition: build_api_flags.h:33
Definition: build_api_flags.h:39
std::string credential_source
Definition: build_api_flags.h:44
std::chrono::seconds wait_retry_period
Definition: build_api_flags.h:46
std::string api_key
Definition: build_api_flags.h:42
CasDownloaderFlags cas_downloader_flags
Definition: build_api_flags.h:50
CredentialFlags credential_flags
Definition: build_api_flags.h:43
std::string api_base_url
Definition: build_api_flags.h:47
std::vector< Flag > Flags()
Definition: build_api_flags.cc:46
bool enable_caching
Definition: build_api_flags.h:48
size_t max_cache_size_gb
Definition: build_api_flags.h:49
std::string project_id
Definition: build_api_flags.h:45
Definition: cas_flags.h:71
Definition: credential_flags.h:29