CubeResourceLimits class final

The spec.resources: section: optional cpu string, byte limits and a wall-clock timeout.

Constructors

CubeResourceLimits({String? cpu, int? memoryBytes, int? diskBytes, Duration? timeout})
Creates limits; every field is optional (null = no limit).
const
CubeResourceLimits.fromYaml(Object? node)
Parses the spec.resources: section. null (section absent) yields an empty limits object (no limits).
factory

Properties

cpu → String?
CPU cap verbatim, e.g. '50%' (backend-interpreted).
final
diskBytes → int?
Disk cap in bytes.
final
hashCode → int
The hash code for this object.
no setterinherited
memoryBytes → int?
Memory cap in bytes.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
timeout → Duration?
Wall-clock timeout for the whole run.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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