Sha256: 64c6ca9d340a3fb3b59d2ca9d9eb78f3334fef0a0643762a3523bae1d01b4772

Contents?: true

Size: 1.9 KB

Versions: 5

Compression:

Stored size: 1.9 KB

Contents

//
// Copyright 2019 gRPC authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//

#ifndef GRPC_SRC_CORE_XDS_GRPC_XDS_SERVER_GRPC_H
#define GRPC_SRC_CORE_XDS_GRPC_XDS_SERVER_GRPC_H

#include <set>
#include <string>

#include "src/core/lib/gprpp/ref_counted_ptr.h"
#include "src/core/lib/gprpp/validation_errors.h"
#include "src/core/lib/security/credentials/channel_creds_registry.h"
#include "src/core/util/json/json.h"
#include "src/core/util/json/json_args.h"
#include "src/core/util/json/json_object_loader.h"
#include "src/core/xds/xds_client/xds_bootstrap.h"

namespace grpc_core {

class GrpcXdsServer final : public XdsBootstrap::XdsServer {
 public:
  const std::string& server_uri() const override { return server_uri_; }

  bool IgnoreResourceDeletion() const override;

  bool TrustedXdsServer() const;

  bool Equals(const XdsServer& other) const override;

  std::string Key() const override;

  RefCountedPtr<ChannelCredsConfig> channel_creds_config() const {
    return channel_creds_config_;
  }

  static const JsonLoaderInterface* JsonLoader(const JsonArgs&);
  void JsonPostLoad(const Json& json, const JsonArgs& args,
                    ValidationErrors* errors);

  Json ToJson() const;

 private:
  std::string server_uri_;
  RefCountedPtr<ChannelCredsConfig> channel_creds_config_;
  std::set<std::string> server_features_;
};

}  // namespace grpc_core

#endif  // GRPC_SRC_CORE_XDS_GRPC_XDS_SERVER_GRPC_H

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
grpc-1.67.0 src/core/xds/grpc/xds_server_grpc.h
grpc-1.67.0.pre1 src/core/xds/grpc/xds_server_grpc.h
grpc-1.66.0 src/core/xds/grpc/xds_server_grpc.h
grpc-1.66.0.pre5 src/core/xds/grpc/xds_server_grpc.h
grpc-1.66.0.pre3 src/core/xds/grpc/xds_server_grpc.h