Endpoint class
Endpoint represents a single logical "backend" implementing a service.
Constructors
-
Endpoint({required List<
String> addresses, EndpointConditions? conditions, Map<String, String> ? deprecatedTopology, EndpointHints? hints, String? hostname, String? nodeName, ObjectReference? targetRef, String? zone}) -
Default constructor.
const
-
Endpoint.fromJson(Map<
String, dynamic> json) -
Creates a Endpoint from JSON data.
factory
Properties
-
addresses
→ List<
String> -
addresses of this endpoint. The contents of this field are interpreted according to the corresponding EndpointSlice addressType field. Consumers must handle different types of addresses in the context of their own capabilities. This must contain at least one address but no more than 100. These are all assumed to be fungible and clients may choose to only use the first element. Refer to: https://issue.k8s.io/106267.
final
- conditions → EndpointConditions?
-
conditions contains information about the current status of the endpoint.
final
-
deprecatedTopology
→ Map<
String, String> ? -
deprecatedTopology contains topology information part of the v1beta1 API. This field is deprecated, and will be removed when the v1beta1 API is removed (no sooner than kubernetes v1.24). While this field can hold values, it is not writable through the v1 API, and any attempts to write to it will be silently ignored. Topology information can be found in the zone and nodeName fields instead.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hints → EndpointHints?
-
hints contains information associated with how an endpoint should be consumed.
final
- hostname → String?
-
hostname of this endpoint. This field may be used by consumers of endpoints to distinguish endpoints from each other (e.g. in DNS names). Multiple endpoints which use the same hostname should be considered fungible (e.g. multiple A values in DNS). Must be lowercase and pass DNS Label (RFC 1123) validation.
final
- nodeName → String?
-
nodeName represents the name of the Node hosting this endpoint. This can be used to determine endpoints local to a Node.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- targetRef → ObjectReference?
-
targetRef is a reference to a Kubernetes object that represents this endpoint.
final
- zone → String?
-
zone is the name of the Zone this endpoint exists in.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object> - Converts a Endpoint instance to JSON data.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited