Android-cuttlefish cvd tool
creation_analyzer.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2022 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
17#pragma once
18
19#include <sys/types.h>
20
21#include <string>
22#include <unordered_map>
23
27
28namespace cuttlefish {
29namespace selector {
30
34};
35
37 const std::unordered_map<std::string, std::string>& envs;
39 const size_t num_instances;
40 const std::vector<unsigned> instance_ids;
41};
42
72
73} // namespace selector
74} // namespace cuttlefish
Result< GroupCreationInfo > AnalyzeCreation(const CreationAnalyzerParam &params)
Definition: creation_analyzer.cpp:79
Definition: alloc_driver.h:20
tl::expected< T, StackTraceError > Result
Definition: result_type.h:30
Definition: instance_manager.h:40
Definition: instance_manager.h:52
Definition: creation_analyzer.h:36
const size_t num_instances
Definition: creation_analyzer.h:39
const std::unordered_map< std::string, std::string > & envs
Definition: creation_analyzer.h:37
const SelectorOptions & selectors
Definition: creation_analyzer.h:38
const std::vector< unsigned > instance_ids
Definition: creation_analyzer.h:40
Definition: creation_analyzer.h:31
InstanceManager::GroupDirectories group_directories
Definition: creation_analyzer.h:33
InstanceGroupParams group_creation_params
Definition: creation_analyzer.h:32
Definition: selector_common_parser.h:28