public interface ServiceEntryOrBuilder
extends com.google.protobuf.MessageOrBuilder
| 限定符和类型 | 方法和说明 |
|---|---|
java.lang.String |
getAddresses(int index)
The virtual IP addresses associated with the service.
|
com.google.protobuf.ByteString |
getAddressesBytes(int index)
The virtual IP addresses associated with the service.
|
int |
getAddressesCount()
The virtual IP addresses associated with the service.
|
java.util.List<java.lang.String> |
getAddressesList()
The virtual IP addresses associated with the service.
|
ServiceEntry.Endpoint |
getEndpoints(int index)
One or more endpoints associated with the service.
|
int |
getEndpointsCount()
One or more endpoints associated with the service.
|
java.util.List<ServiceEntry.Endpoint> |
getEndpointsList()
One or more endpoints associated with the service.
|
ServiceEntry.EndpointOrBuilder |
getEndpointsOrBuilder(int index)
One or more endpoints associated with the service.
|
java.util.List<? extends ServiceEntry.EndpointOrBuilder> |
getEndpointsOrBuilderList()
One or more endpoints associated with the service.
|
java.lang.String |
getExportTo(int index)
A list of namespaces to which this service is exported.
|
com.google.protobuf.ByteString |
getExportToBytes(int index)
A list of namespaces to which this service is exported.
|
int |
getExportToCount()
A list of namespaces to which this service is exported.
|
java.util.List<java.lang.String> |
getExportToList()
A list of namespaces to which this service is exported.
|
java.lang.String |
getHosts(int index)
REQUIRED.
|
com.google.protobuf.ByteString |
getHostsBytes(int index)
REQUIRED.
|
int |
getHostsCount()
REQUIRED.
|
java.util.List<java.lang.String> |
getHostsList()
REQUIRED.
|
ServiceEntry.Location |
getLocation()
Specify whether the service should be considered external to the mesh
or part of the mesh.
|
int |
getLocationValue()
Specify whether the service should be considered external to the mesh
or part of the mesh.
|
Port |
getPorts(int index)
REQUIRED.
|
int |
getPortsCount()
REQUIRED.
|
java.util.List<Port> |
getPortsList()
REQUIRED.
|
PortOrBuilder |
getPortsOrBuilder(int index)
REQUIRED.
|
java.util.List<? extends PortOrBuilder> |
getPortsOrBuilderList()
REQUIRED.
|
ServiceEntry.Resolution |
getResolution()
REQUIRED: Service discovery mode for the hosts.
|
int |
getResolutionValue()
REQUIRED: Service discovery mode for the hosts.
|
java.lang.String |
getSubjectAltNames(int index)
The list of subject alternate names allowed for workload instances that
implement this service.
|
com.google.protobuf.ByteString |
getSubjectAltNamesBytes(int index)
The list of subject alternate names allowed for workload instances that
implement this service.
|
int |
getSubjectAltNamesCount()
The list of subject alternate names allowed for workload instances that
implement this service.
|
java.util.List<java.lang.String> |
getSubjectAltNamesList()
The list of subject alternate names allowed for workload instances that
implement this service.
|
java.util.List<java.lang.String> getHostsList()
REQUIRED. The hosts associated with the ServiceEntry. Could be a DNS name with wildcard prefix. 1. The hosts field is used to select matching hosts in VirtualServices and DestinationRules. 2. For HTTP traffic the HTTP Host/Authority header will be matched against the hosts field. 3. For HTTPs or TLS traffic containing Server Name Indication (SNI), the SNI value will be matched against the hosts field. Note that when resolution is set to type DNS and no endpoints are specified, the host field will be used as the DNS name of the endpoint to route traffic to.
repeated string hosts = 1;int getHostsCount()
REQUIRED. The hosts associated with the ServiceEntry. Could be a DNS name with wildcard prefix. 1. The hosts field is used to select matching hosts in VirtualServices and DestinationRules. 2. For HTTP traffic the HTTP Host/Authority header will be matched against the hosts field. 3. For HTTPs or TLS traffic containing Server Name Indication (SNI), the SNI value will be matched against the hosts field. Note that when resolution is set to type DNS and no endpoints are specified, the host field will be used as the DNS name of the endpoint to route traffic to.
repeated string hosts = 1;java.lang.String getHosts(int index)
REQUIRED. The hosts associated with the ServiceEntry. Could be a DNS name with wildcard prefix. 1. The hosts field is used to select matching hosts in VirtualServices and DestinationRules. 2. For HTTP traffic the HTTP Host/Authority header will be matched against the hosts field. 3. For HTTPs or TLS traffic containing Server Name Indication (SNI), the SNI value will be matched against the hosts field. Note that when resolution is set to type DNS and no endpoints are specified, the host field will be used as the DNS name of the endpoint to route traffic to.
repeated string hosts = 1;index - The index of the element to return.com.google.protobuf.ByteString getHostsBytes(int index)
REQUIRED. The hosts associated with the ServiceEntry. Could be a DNS name with wildcard prefix. 1. The hosts field is used to select matching hosts in VirtualServices and DestinationRules. 2. For HTTP traffic the HTTP Host/Authority header will be matched against the hosts field. 3. For HTTPs or TLS traffic containing Server Name Indication (SNI), the SNI value will be matched against the hosts field. Note that when resolution is set to type DNS and no endpoints are specified, the host field will be used as the DNS name of the endpoint to route traffic to.
repeated string hosts = 1;index - The index of the value to return.java.util.List<java.lang.String> getAddressesList()
The virtual IP addresses associated with the service. Could be CIDR prefix. For HTTP traffic, generated route configurations will include http route domains for both the `addresses` and `hosts` field values and the destination will be identified based on the HTTP Host/Authority header. If one or more IP addresses are specified, the incoming traffic will be identified as belonging to this service if the destination IP matches the IP/CIDRs specified in the addresses field. If the Addresses field is empty, traffic will be identified solely based on the destination port. In such scenarios, the port on which the service is being accessed must not be shared by any other service in the mesh. In other words, the sidecar will behave as a simple TCP proxy, forwarding incoming traffic on a specified port to the specified destination endpoint IP/host. Unix domain socket addresses are not supported in this field.
repeated string addresses = 2;int getAddressesCount()
The virtual IP addresses associated with the service. Could be CIDR prefix. For HTTP traffic, generated route configurations will include http route domains for both the `addresses` and `hosts` field values and the destination will be identified based on the HTTP Host/Authority header. If one or more IP addresses are specified, the incoming traffic will be identified as belonging to this service if the destination IP matches the IP/CIDRs specified in the addresses field. If the Addresses field is empty, traffic will be identified solely based on the destination port. In such scenarios, the port on which the service is being accessed must not be shared by any other service in the mesh. In other words, the sidecar will behave as a simple TCP proxy, forwarding incoming traffic on a specified port to the specified destination endpoint IP/host. Unix domain socket addresses are not supported in this field.
repeated string addresses = 2;java.lang.String getAddresses(int index)
The virtual IP addresses associated with the service. Could be CIDR prefix. For HTTP traffic, generated route configurations will include http route domains for both the `addresses` and `hosts` field values and the destination will be identified based on the HTTP Host/Authority header. If one or more IP addresses are specified, the incoming traffic will be identified as belonging to this service if the destination IP matches the IP/CIDRs specified in the addresses field. If the Addresses field is empty, traffic will be identified solely based on the destination port. In such scenarios, the port on which the service is being accessed must not be shared by any other service in the mesh. In other words, the sidecar will behave as a simple TCP proxy, forwarding incoming traffic on a specified port to the specified destination endpoint IP/host. Unix domain socket addresses are not supported in this field.
repeated string addresses = 2;index - The index of the element to return.com.google.protobuf.ByteString getAddressesBytes(int index)
The virtual IP addresses associated with the service. Could be CIDR prefix. For HTTP traffic, generated route configurations will include http route domains for both the `addresses` and `hosts` field values and the destination will be identified based on the HTTP Host/Authority header. If one or more IP addresses are specified, the incoming traffic will be identified as belonging to this service if the destination IP matches the IP/CIDRs specified in the addresses field. If the Addresses field is empty, traffic will be identified solely based on the destination port. In such scenarios, the port on which the service is being accessed must not be shared by any other service in the mesh. In other words, the sidecar will behave as a simple TCP proxy, forwarding incoming traffic on a specified port to the specified destination endpoint IP/host. Unix domain socket addresses are not supported in this field.
repeated string addresses = 2;index - The index of the value to return.java.util.List<Port> getPortsList()
REQUIRED. The ports associated with the external service. If the Endpoints are Unix domain socket addresses, there must be exactly one port.
repeated .istio.networking.v1alpha3.Port ports = 3;Port getPorts(int index)
REQUIRED. The ports associated with the external service. If the Endpoints are Unix domain socket addresses, there must be exactly one port.
repeated .istio.networking.v1alpha3.Port ports = 3;int getPortsCount()
REQUIRED. The ports associated with the external service. If the Endpoints are Unix domain socket addresses, there must be exactly one port.
repeated .istio.networking.v1alpha3.Port ports = 3;java.util.List<? extends PortOrBuilder> getPortsOrBuilderList()
REQUIRED. The ports associated with the external service. If the Endpoints are Unix domain socket addresses, there must be exactly one port.
repeated .istio.networking.v1alpha3.Port ports = 3;PortOrBuilder getPortsOrBuilder(int index)
REQUIRED. The ports associated with the external service. If the Endpoints are Unix domain socket addresses, there must be exactly one port.
repeated .istio.networking.v1alpha3.Port ports = 3;int getLocationValue()
Specify whether the service should be considered external to the mesh or part of the mesh.
.istio.networking.v1alpha3.ServiceEntry.Location location = 4;ServiceEntry.Location getLocation()
Specify whether the service should be considered external to the mesh or part of the mesh.
.istio.networking.v1alpha3.ServiceEntry.Location location = 4;int getResolutionValue()
REQUIRED: Service discovery mode for the hosts. Care must be taken when setting the resolution mode to NONE for a TCP port without accompanying IP addresses. In such cases, traffic to any IP on said port will be allowed (i.e. 0.0.0.0:<port>).
.istio.networking.v1alpha3.ServiceEntry.Resolution resolution = 5;ServiceEntry.Resolution getResolution()
REQUIRED: Service discovery mode for the hosts. Care must be taken when setting the resolution mode to NONE for a TCP port without accompanying IP addresses. In such cases, traffic to any IP on said port will be allowed (i.e. 0.0.0.0:<port>).
.istio.networking.v1alpha3.ServiceEntry.Resolution resolution = 5;java.util.List<ServiceEntry.Endpoint> getEndpointsList()
One or more endpoints associated with the service.
repeated .istio.networking.v1alpha3.ServiceEntry.Endpoint endpoints = 6;ServiceEntry.Endpoint getEndpoints(int index)
One or more endpoints associated with the service.
repeated .istio.networking.v1alpha3.ServiceEntry.Endpoint endpoints = 6;int getEndpointsCount()
One or more endpoints associated with the service.
repeated .istio.networking.v1alpha3.ServiceEntry.Endpoint endpoints = 6;java.util.List<? extends ServiceEntry.EndpointOrBuilder> getEndpointsOrBuilderList()
One or more endpoints associated with the service.
repeated .istio.networking.v1alpha3.ServiceEntry.Endpoint endpoints = 6;ServiceEntry.EndpointOrBuilder getEndpointsOrBuilder(int index)
One or more endpoints associated with the service.
repeated .istio.networking.v1alpha3.ServiceEntry.Endpoint endpoints = 6;java.util.List<java.lang.String> getExportToList()
A list of namespaces to which this service is exported. Exporting a service allows it to be used by sidecars, gateways and virtual services defined in other namespaces. This feature provides a mechanism for service owners and mesh administrators to control the visibility of services across namespace boundaries. If no namespaces are specified then the service is exported to all namespaces by default. The value "." is reserved and defines an export to the same namespace that the service is declared in. Similarly the value "*" is reserved and defines an export to all namespaces. For a Kubernetes Service, the equivalent effect can be achieved by setting the annotation "networking.istio.io/exportTo" to a comma-separated list of namespace names. NOTE: in the current release, the `exportTo` value is restricted to "." or "*" (i.e., the current namespace or all namespaces).
repeated string export_to = 7;int getExportToCount()
A list of namespaces to which this service is exported. Exporting a service allows it to be used by sidecars, gateways and virtual services defined in other namespaces. This feature provides a mechanism for service owners and mesh administrators to control the visibility of services across namespace boundaries. If no namespaces are specified then the service is exported to all namespaces by default. The value "." is reserved and defines an export to the same namespace that the service is declared in. Similarly the value "*" is reserved and defines an export to all namespaces. For a Kubernetes Service, the equivalent effect can be achieved by setting the annotation "networking.istio.io/exportTo" to a comma-separated list of namespace names. NOTE: in the current release, the `exportTo` value is restricted to "." or "*" (i.e., the current namespace or all namespaces).
repeated string export_to = 7;java.lang.String getExportTo(int index)
A list of namespaces to which this service is exported. Exporting a service allows it to be used by sidecars, gateways and virtual services defined in other namespaces. This feature provides a mechanism for service owners and mesh administrators to control the visibility of services across namespace boundaries. If no namespaces are specified then the service is exported to all namespaces by default. The value "." is reserved and defines an export to the same namespace that the service is declared in. Similarly the value "*" is reserved and defines an export to all namespaces. For a Kubernetes Service, the equivalent effect can be achieved by setting the annotation "networking.istio.io/exportTo" to a comma-separated list of namespace names. NOTE: in the current release, the `exportTo` value is restricted to "." or "*" (i.e., the current namespace or all namespaces).
repeated string export_to = 7;index - The index of the element to return.com.google.protobuf.ByteString getExportToBytes(int index)
A list of namespaces to which this service is exported. Exporting a service allows it to be used by sidecars, gateways and virtual services defined in other namespaces. This feature provides a mechanism for service owners and mesh administrators to control the visibility of services across namespace boundaries. If no namespaces are specified then the service is exported to all namespaces by default. The value "." is reserved and defines an export to the same namespace that the service is declared in. Similarly the value "*" is reserved and defines an export to all namespaces. For a Kubernetes Service, the equivalent effect can be achieved by setting the annotation "networking.istio.io/exportTo" to a comma-separated list of namespace names. NOTE: in the current release, the `exportTo` value is restricted to "." or "*" (i.e., the current namespace or all namespaces).
repeated string export_to = 7;index - The index of the value to return.java.util.List<java.lang.String> getSubjectAltNamesList()
The list of subject alternate names allowed for workload instances that implement this service. This information is used to enforce [secure-naming](https://istio.io/docs/concepts/security/#secure-naming). If specified, the proxy will verify that the server certificate's subject alternate name matches one of the specified values.
repeated string subject_alt_names = 8;int getSubjectAltNamesCount()
The list of subject alternate names allowed for workload instances that implement this service. This information is used to enforce [secure-naming](https://istio.io/docs/concepts/security/#secure-naming). If specified, the proxy will verify that the server certificate's subject alternate name matches one of the specified values.
repeated string subject_alt_names = 8;java.lang.String getSubjectAltNames(int index)
The list of subject alternate names allowed for workload instances that implement this service. This information is used to enforce [secure-naming](https://istio.io/docs/concepts/security/#secure-naming). If specified, the proxy will verify that the server certificate's subject alternate name matches one of the specified values.
repeated string subject_alt_names = 8;index - The index of the element to return.com.google.protobuf.ByteString getSubjectAltNamesBytes(int index)
The list of subject alternate names allowed for workload instances that implement this service. This information is used to enforce [secure-naming](https://istio.io/docs/concepts/security/#secure-naming). If specified, the proxy will verify that the server certificate's subject alternate name matches one of the specified values.
repeated string subject_alt_names = 8;index - The index of the value to return.Copyright © 2018–2020 Alibaba Group. All rights reserved.