/proc/self/cwd/source/common/config/resource_name.h
Line | Count | Source |
1 | | #pragma once |
2 | | |
3 | | #include <string> |
4 | | #include <vector> |
5 | | |
6 | | #include "source/common/protobuf/protobuf.h" |
7 | | |
8 | | namespace Envoy { |
9 | | namespace Config { |
10 | | |
11 | | /** |
12 | | * Get resource name from api type. |
13 | | */ |
14 | 18.8k | template <typename Current> std::string getResourceName() { |
15 | 18.8k | return createReflectableMessage(Current())->GetDescriptor()->full_name(); |
16 | 18.8k | } std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > Envoy::Config::getResourceName<envoy::config::cluster::v3::Cluster>() Line | Count | Source | 14 | 182 | template <typename Current> std::string getResourceName() { | 15 | 182 | return createReflectableMessage(Current())->GetDescriptor()->full_name(); | 16 | 182 | } |
std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > Envoy::Config::getResourceName<envoy::config::endpoint::v3::ClusterLoadAssignment>() Line | Count | Source | 14 | 764 | template <typename Current> std::string getResourceName() { | 15 | 764 | return createReflectableMessage(Current())->GetDescriptor()->full_name(); | 16 | 764 | } |
std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > Envoy::Config::getResourceName<envoy::config::endpoint::v3::LbEndpoint>() Line | Count | Source | 14 | 42 | template <typename Current> std::string getResourceName() { | 15 | 42 | return createReflectableMessage(Current())->GetDescriptor()->full_name(); | 16 | 42 | } |
std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > Envoy::Config::getResourceName<envoy::extensions::transport_sockets::tls::v3::Secret>() Line | Count | Source | 14 | 2.08k | template <typename Current> std::string getResourceName() { | 15 | 2.08k | return createReflectableMessage(Current())->GetDescriptor()->full_name(); | 16 | 2.08k | } |
std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > Envoy::Config::getResourceName<envoy::config::core::v3::TypedExtensionConfig>() Line | Count | Source | 14 | 9 | template <typename Current> std::string getResourceName() { | 15 | 9 | return createReflectableMessage(Current())->GetDescriptor()->full_name(); | 16 | 9 | } |
std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > Envoy::Config::getResourceName<envoy::config::route::v3::RouteConfiguration>() Line | Count | Source | 14 | 9.40k | template <typename Current> std::string getResourceName() { | 15 | 9.40k | return createReflectableMessage(Current())->GetDescriptor()->full_name(); | 16 | 9.40k | } |
std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > Envoy::Config::getResourceName<envoy::service::runtime::v3::Runtime>() Line | Count | Source | 14 | 1.99k | template <typename Current> std::string getResourceName() { | 15 | 1.99k | return createReflectableMessage(Current())->GetDescriptor()->full_name(); | 16 | 1.99k | } |
std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > Envoy::Config::getResourceName<envoy::config::route::v3::ScopedRouteConfiguration>() Line | Count | Source | 14 | 2.10k | template <typename Current> std::string getResourceName() { | 15 | 2.10k | return createReflectableMessage(Current())->GetDescriptor()->full_name(); | 16 | 2.10k | } |
Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > Envoy::Config::getResourceName<envoy::config::route::v3::VirtualHost>() std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > Envoy::Config::getResourceName<envoy::config::listener::v3::Listener>() Line | Count | Source | 14 | 2.26k | template <typename Current> std::string getResourceName() { | 15 | 2.26k | return createReflectableMessage(Current())->GetDescriptor()->full_name(); | 16 | 2.26k | } |
Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > Envoy::Config::getResourceName<envoy::extensions::filters::network::dubbo_proxy::v3::MultipleRouteConfiguration>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > Envoy::Config::getResourceName<envoy::extensions::filters::network::thrift_proxy::v3::RouteConfiguration>() Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > Envoy::Config::getResourceName<envoy::extensions::filters::network::generic_proxy::v3::RouteConfiguration>() |
17 | | |
18 | | /** |
19 | | * Get type url from api type. |
20 | | */ |
21 | 8.97k | template <typename Current> std::string getTypeUrl() { |
22 | 8.97k | return "type.googleapis.com/" + getResourceName<Current>(); |
23 | 8.97k | } std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > Envoy::Config::getTypeUrl<envoy::config::endpoint::v3::ClusterLoadAssignment>() Line | Count | Source | 21 | 750 | template <typename Current> std::string getTypeUrl() { | 22 | 750 | return "type.googleapis.com/" + getResourceName<Current>(); | 23 | 750 | } |
std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > Envoy::Config::getTypeUrl<envoy::config::endpoint::v3::LbEndpoint>() Line | Count | Source | 21 | 42 | template <typename Current> std::string getTypeUrl() { | 22 | 42 | return "type.googleapis.com/" + getResourceName<Current>(); | 23 | 42 | } |
std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > Envoy::Config::getTypeUrl<envoy::extensions::transport_sockets::tls::v3::Secret>() Line | Count | Source | 21 | 2.08k | template <typename Current> std::string getTypeUrl() { | 22 | 2.08k | return "type.googleapis.com/" + getResourceName<Current>(); | 23 | 2.08k | } |
std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > Envoy::Config::getTypeUrl<envoy::config::route::v3::RouteConfiguration>() Line | Count | Source | 21 | 4.03k | template <typename Current> std::string getTypeUrl() { | 22 | 4.03k | return "type.googleapis.com/" + getResourceName<Current>(); | 23 | 4.03k | } |
Unexecuted instantiation: std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > Envoy::Config::getTypeUrl<envoy::config::cluster::v3::Cluster>() std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > Envoy::Config::getTypeUrl<envoy::config::route::v3::ScopedRouteConfiguration>() Line | Count | Source | 21 | 2.06k | template <typename Current> std::string getTypeUrl() { | 22 | 2.06k | return "type.googleapis.com/" + getResourceName<Current>(); | 23 | 2.06k | } |
|
24 | | |
25 | | } // namespace Config |
26 | | } // namespace Envoy |