EndpointPort class
EndpointPort is a tuple that describes a single port.
Constructors
- EndpointPort({String? appProtocol, String? name, required int port, String? protocol})
-
The main constructor.
const
-
EndpointPort.fromJson(Map<
String, dynamic> json) - Creates a EndpointPort from JSON data.
Properties
- appProtocol → String?
-
The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol.
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
Static Methods
-
listFromJson(
Iterable< Map< list) → List<String, dynamic> >EndpointPort> - Creates a list of EndpointPort from JSON data.