blob: 2174cde955053a23a04280dd960cf05602a2b18c [file] [log] [blame]
// Copyright 2021 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <string>
#include <unordered_map>
#include <unordered_set>
namespace federated {
// The client config.
// TODO(alanlxl): this now only contains the minimal info, and might need to be
// converted to a proto to be used in the real federated tasks.
struct ClientConfigMetadata {
std::string name;
std::string base_dir;
std::string retry_token;
// Returns a map from client_name to ClientConfigMetadata.
std::unordered_map<std::string, ClientConfigMetadata> GetClientConfig();
// Returns a set of all registered client names;
std::unordered_set<std::string> GetClientNames();
} // namespace federated