Class KubernetesServiceInstance
- Namespace
- Steeltoe.Discovery.Kubernetes.Discovery
- Assembly
- Steeltoe.Discovery.Kubernetes.dll
[Obsolete("This feature will be removed in the next major version. See https://steeltoe.io/docs/v3/obsolete for details.")]
public class KubernetesServiceInstance : IServiceInstance
- Inheritance
-
KubernetesServiceInstance
- Implements
- Inherited Members
Constructors
KubernetesServiceInstance(string, string, V1EndpointAddress, Corev1EndpointPort, IDictionary<string, string>, bool)
public KubernetesServiceInstance(string instanceId, string serviceId, V1EndpointAddress endpointAddress, Corev1EndpointPort endpointPort, IDictionary<string, string> metadata, bool isSecure)
Parameters
instanceIdstringserviceIdstringendpointAddressV1EndpointAddressendpointPortCorev1EndpointPortmetadataIDictionary<string, string>isSecurebool
Properties
Host
Gets the hostname of the registered ServiceInstance
public string Host { get; }
Property Value
InstanceId
public string InstanceId { get; }
Property Value
IsSecure
Gets a value indicating whether if the port of the registered ServiceInstance is https or not
public bool IsSecure { get; }
Property Value
Metadata
Gets the key value pair metadata associated with the service instance
public IDictionary<string, string> Metadata { get; }
Property Value
Port
Gets the port of the registered ServiceInstance
public int Port { get; }
Property Value
ServiceId
Gets the service id as register by the DiscoveryClient
public string ServiceId { get; }
Property Value
Uri
Gets the service uri address
public Uri Uri { get; }
Property Value
Methods
GetScheme()
public string GetScheme()