接口 DestinationRuleOuterClass.DestinationRuleOrBuilder
- 所有超级接口:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- 所有已知实现类:
DestinationRuleOuterClass.DestinationRule,DestinationRuleOuterClass.DestinationRule.Builder
public static interface DestinationRuleOuterClass.DestinationRuleOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
方法概要
修饰符和类型方法说明getExportTo(int index) A list of namespaces to which this destination rule is exported.com.google.protobuf.ByteStringgetExportToBytes(int index) A list of namespaces to which this destination rule is exported.intA list of namespaces to which this destination rule is exported.A list of namespaces to which this destination rule is exported.getHost()The name of a service from the service registry.com.google.protobuf.ByteStringThe name of a service from the service registry.getSubsets(int index) One or more named sets that represent individual versions of a service.intOne or more named sets that represent individual versions of a service.One or more named sets that represent individual versions of a service.getSubsetsOrBuilder(int index) One or more named sets that represent individual versions of a service.List<? extends DestinationRuleOuterClass.SubsetOrBuilder> One or more named sets that represent individual versions of a service.Traffic policies to apply (load balancing policy, connection pool sizes, outlier detection).Traffic policies to apply (load balancing policy, connection pool sizes, outlier detection).booleanTraffic policies to apply (load balancing policy, connection pool sizes, outlier detection).从接口继承的方法 com.google.protobuf.MessageLiteOrBuilder
isInitialized从接口继承的方法 com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
方法详细资料
-
getHost
String getHost()The name of a service from the service registry. Service names are looked up from the platform's service registry (e.g., Kubernetes services, Consul services, etc.) and from the hosts declared by [ServiceEntries](https://istio.io/docs/reference/config/networking/service-entry/#ServiceEntry). Rules defined for services that do not exist in the service registry will be ignored. *Note for Kubernetes users*: When short names are used (e.g. "reviews" instead of "reviews.default.svc.cluster.local"), Istio will interpret the short name based on the namespace of the rule, not the service. A rule in the "default" namespace containing a host "reviews" will be interpreted as "reviews.default.svc.cluster.local", irrespective of the actual namespace associated with the reviews service. _To avoid potential misconfigurations, it is recommended to always use fully qualified domain names over short names._ Note that the host field applies to both HTTP and TCP services.
string host = 1 [(.google.api.field_behavior) = REQUIRED];- 返回:
- The host.
-
getHostBytes
com.google.protobuf.ByteString getHostBytes()The name of a service from the service registry. Service names are looked up from the platform's service registry (e.g., Kubernetes services, Consul services, etc.) and from the hosts declared by [ServiceEntries](https://istio.io/docs/reference/config/networking/service-entry/#ServiceEntry). Rules defined for services that do not exist in the service registry will be ignored. *Note for Kubernetes users*: When short names are used (e.g. "reviews" instead of "reviews.default.svc.cluster.local"), Istio will interpret the short name based on the namespace of the rule, not the service. A rule in the "default" namespace containing a host "reviews" will be interpreted as "reviews.default.svc.cluster.local", irrespective of the actual namespace associated with the reviews service. _To avoid potential misconfigurations, it is recommended to always use fully qualified domain names over short names._ Note that the host field applies to both HTTP and TCP services.
string host = 1 [(.google.api.field_behavior) = REQUIRED];- 返回:
- The bytes for host.
-
hasTrafficPolicy
boolean hasTrafficPolicy()Traffic policies to apply (load balancing policy, connection pool sizes, outlier detection).
.istio.networking.v1alpha3.TrafficPolicy traffic_policy = 2;- 返回:
- Whether the trafficPolicy field is set.
-
getTrafficPolicy
DestinationRuleOuterClass.TrafficPolicy getTrafficPolicy()Traffic policies to apply (load balancing policy, connection pool sizes, outlier detection).
.istio.networking.v1alpha3.TrafficPolicy traffic_policy = 2;- 返回:
- The trafficPolicy.
-
getTrafficPolicyOrBuilder
DestinationRuleOuterClass.TrafficPolicyOrBuilder getTrafficPolicyOrBuilder()Traffic policies to apply (load balancing policy, connection pool sizes, outlier detection).
.istio.networking.v1alpha3.TrafficPolicy traffic_policy = 2; -
getSubsetsList
List<DestinationRuleOuterClass.Subset> getSubsetsList()One or more named sets that represent individual versions of a service. Traffic policies can be overridden at subset level.
repeated .istio.networking.v1alpha3.Subset subsets = 3; -
getSubsets
One or more named sets that represent individual versions of a service. Traffic policies can be overridden at subset level.
repeated .istio.networking.v1alpha3.Subset subsets = 3; -
getSubsetsCount
int getSubsetsCount()One or more named sets that represent individual versions of a service. Traffic policies can be overridden at subset level.
repeated .istio.networking.v1alpha3.Subset subsets = 3; -
getSubsetsOrBuilderList
List<? extends DestinationRuleOuterClass.SubsetOrBuilder> getSubsetsOrBuilderList()One or more named sets that represent individual versions of a service. Traffic policies can be overridden at subset level.
repeated .istio.networking.v1alpha3.Subset subsets = 3; -
getSubsetsOrBuilder
One or more named sets that represent individual versions of a service. Traffic policies can be overridden at subset level.
repeated .istio.networking.v1alpha3.Subset subsets = 3; -
getExportToList
A list of namespaces to which this destination rule is exported. The resolution of a destination rule to apply to a service occurs in the context of a hierarchy of namespaces. Exporting a destination rule allows it to be included in the resolution hierarchy for services in other namespaces. This feature provides a mechanism for service owners and mesh administrators to control the visibility of destination rules across namespace boundaries. If no namespaces are specified then the destination rule is exported to all namespaces by default. The value "." is reserved and defines an export to the same namespace that the destination rule is declared in. Similarly, the value "*" is reserved and defines an export to all namespaces. NOTE: in the current release, the `exportTo` value is restricted to "." or "*" (i.e., the current namespace or all namespaces).
repeated string export_to = 4;- 返回:
- A list containing the exportTo.
-
getExportToCount
int getExportToCount()A list of namespaces to which this destination rule is exported. The resolution of a destination rule to apply to a service occurs in the context of a hierarchy of namespaces. Exporting a destination rule allows it to be included in the resolution hierarchy for services in other namespaces. This feature provides a mechanism for service owners and mesh administrators to control the visibility of destination rules across namespace boundaries. If no namespaces are specified then the destination rule is exported to all namespaces by default. The value "." is reserved and defines an export to the same namespace that the destination rule is declared in. Similarly, the value "*" is reserved and defines an export to all namespaces. NOTE: in the current release, the `exportTo` value is restricted to "." or "*" (i.e., the current namespace or all namespaces).
repeated string export_to = 4;- 返回:
- The count of exportTo.
-
getExportTo
A list of namespaces to which this destination rule is exported. The resolution of a destination rule to apply to a service occurs in the context of a hierarchy of namespaces. Exporting a destination rule allows it to be included in the resolution hierarchy for services in other namespaces. This feature provides a mechanism for service owners and mesh administrators to control the visibility of destination rules across namespace boundaries. If no namespaces are specified then the destination rule is exported to all namespaces by default. The value "." is reserved and defines an export to the same namespace that the destination rule is declared in. Similarly, the value "*" is reserved and defines an export to all namespaces. NOTE: in the current release, the `exportTo` value is restricted to "." or "*" (i.e., the current namespace or all namespaces).
repeated string export_to = 4;- 参数:
index- The index of the element to return.- 返回:
- The exportTo at the given index.
-
getExportToBytes
com.google.protobuf.ByteString getExportToBytes(int index) A list of namespaces to which this destination rule is exported. The resolution of a destination rule to apply to a service occurs in the context of a hierarchy of namespaces. Exporting a destination rule allows it to be included in the resolution hierarchy for services in other namespaces. This feature provides a mechanism for service owners and mesh administrators to control the visibility of destination rules across namespace boundaries. If no namespaces are specified then the destination rule is exported to all namespaces by default. The value "." is reserved and defines an export to the same namespace that the destination rule is declared in. Similarly, the value "*" is reserved and defines an export to all namespaces. NOTE: in the current release, the `exportTo` value is restricted to "." or "*" (i.e., the current namespace or all namespaces).
repeated string export_to = 4;- 参数:
index- The index of the value to return.- 返回:
- The bytes of the exportTo at the given index.
-