PodDNSConfig class

PodDNSConfig defines the DNS parameters of a pod in addition to those generated from DNSPolicy.

Constructors

PodDNSConfig({List<String>? nameservers, List<PodDNSConfigOption>? options, List<String>? searches})
The main constructor.
const
PodDNSConfig.fromJson(Map<String, dynamic> json)
Creates a PodDNSConfig from JSON data.

Properties

hashCode int
The hash code for this object.
no setterinherited
nameservers List<String>?
A list of DNS name server IP addresses. This will be appended to the base nameservers generated from DNSPolicy. Duplicated nameservers will be removed.
final
options List<PodDNSConfigOption>?
A list of DNS resolver options. This will be merged with the base options generated from DNSPolicy. Duplicated entries will be removed. Resolution options given in Options will override those that appear in the base DNSPolicy.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
searches List<String>?
A list of DNS search domains for host-name lookup. This will be appended to the base search paths generated from DNSPolicy. Duplicated search paths will be removed.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object>
Converts a PodDNSConfig 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<String, dynamic>> list) List<PodDNSConfig>
Creates a list of PodDNSConfig from JSON data.