LabelSelector class
A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects.
Constructors
-
LabelSelector({List<
LabelSelectorRequirement> ? matchExpressions, Map<String, String> ? matchLabels}) -
Default constructor.
const
-
LabelSelector.fromJson(Map<
String, dynamic> json) -
Creates a LabelSelector from JSON data.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
matchExpressions
→ List<
LabelSelectorRequirement> ? -
matchExpressions is a list of label selector requirements. The requirements are ANDed.
final
-
matchLabels
→ Map<
String, String> ? -
matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.
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 LabelSelector instance to JSON data.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited