Android-cuttlefish cvd tool
fetch_cvd.h
Go to the documentation of this file.
1//
2// Copyright (C) 2019 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 <optional>
19#include <ostream>
20#include <string>
21#include <vector>
22
27
28namespace cuttlefish {
29
30struct Builds {
31 std::optional<Build> default_build;
32 std::optional<Build> system;
33 std::optional<Build> kernel;
34 std::optional<Build> boot;
35 std::optional<Build> bootloader;
36 std::optional<Build> android_efi_loader;
37 std::optional<Build> otatools;
38 std::optional<ChromeOsBuildString> chrome_os;
39};
40
44};
45
46std::string GetFetchLogsFileName(const std::string& target_directory);
47
49
50} // namespace cuttlefish
Definition: expected.h:86
Definition: alloc_utils.cpp:23
std::string GetFetchLogsFileName(const std::string &target_directory)
Definition: fetch_cvd.cc:645
Result< std::vector< FetchResult > > FetchCvdMain(const FetchFlags &flags)
Definition: fetch_cvd.cc:649
Definition: fetch_cvd.h:30
std::optional< Build > android_efi_loader
Definition: fetch_cvd.h:36
std::optional< Build > system
Definition: fetch_cvd.h:32
std::optional< Build > bootloader
Definition: fetch_cvd.h:35
std::optional< Build > default_build
Definition: fetch_cvd.h:31
std::optional< Build > kernel
Definition: fetch_cvd.h:33
std::optional< ChromeOsBuildString > chrome_os
Definition: fetch_cvd.h:38
std::optional< Build > boot
Definition: fetch_cvd.h:34
std::optional< Build > otatools
Definition: fetch_cvd.h:37
Definition: fetch_cvd_parser.h:35
Definition: fetch_cvd.h:41
Builds builds
Definition: fetch_cvd.h:43
std::string fetcher_config_path
Definition: fetch_cvd.h:42