NodeSelector class

A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms.

Constructors

NodeSelector({required List<NodeSelectorTerm> nodeSelectorTerms})
The main constructor.
const
NodeSelector.fromJson(Map<String, dynamic> json)
Creates a NodeSelector from JSON data.

Properties

hashCode int
The hash code for this object.
no setterinherited
nodeSelectorTerms List<NodeSelectorTerm>
Required. A list of node selector terms. The terms are ORed.
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 NodeSelector 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<NodeSelector>
Creates a list of NodeSelector from JSON data.