PlatformDevice class

The devices that are available on the container instance. The only supported device type is a GPU.

Constructors

PlatformDevice({required String id, required PlatformDeviceType type})

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
The ID for the GPU(s) on the container instance. The available GPU IDs can also be obtained on the container instance in the /var/lib/ecs/gpu/nvidia_gpu_info.json file.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type PlatformDeviceType
The type of device that is available on the container instance. The only supported value is GPU.
final

Methods

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

Operators

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