ResourceFieldSelector class

ResourceFieldSelector represents container resources (cpu, memory) and their output format.

Constructors

ResourceFieldSelector({String? containerName, String? divisor, required String resource})
Default constructor.
const
ResourceFieldSelector.fromJson(Map<String, dynamic> json)
Creates a ResourceFieldSelector from JSON data.
factory

Properties

containerName String?
Container name: required for volumes, optional for env vars.
final
divisor String?
Specifies the output format of the exposed resources, defaults to "1".
final
hashCode int
The hash code for this object.
no setterinherited
resource String
Required: resource to select.
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 ResourceFieldSelector instance to JSON data.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited