EndpointPort class
EndpointPort is a tuple that describes a single port.
Constructors
- EndpointPort({String? appProtocol, String? name, required int port, String? protocol})
-
Default constructor.
const
-
EndpointPort.fromJson(Map<
String, dynamic> json) -
Creates a EndpointPort from JSON data.
factory
Properties
- appProtocol → String?
-
The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either:
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String?
-
The name of this port. This must match the 'name' field in the corresponding ServicePort. Must be a DNS_LABEL. Optional only if one port is defined.
final
- port → int
-
The port number of the endpoint.
final
- protocol → String?
-
The IP protocol for this port. Must be UDP, TCP, or SCTP. Default is TCP.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object> - Converts a EndpointPort instance to JSON data.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited