Resource

class Resource

Describes the resources available for a container instance.

Types

Link copied to clipboard
class Builder
Link copied to clipboard
object Companion

Properties

Link copied to clipboard

When the doubleValue type is set, the value of the resource must be a double precision floating-point type.

Link copied to clipboard

When the integerValue type is set, the value of the resource must be an integer.

Link copied to clipboard

When the longValue type is set, the value of the resource must be an extended precision floating-point type.

Link copied to clipboard
val name: String?

The name of the resource, such as CPU, MEMORY, PORTS, PORTS_UDP, or a user-defined resource.

Link copied to clipboard

When the stringSetValue type is set, the value of the resource must be a string type.

Link copied to clipboard
val type: String?

The type of the resource. Valid values: INTEGER, DOUBLE, LONG, or STRINGSET.

Functions

Link copied to clipboard
inline fun copy(block: Resource.Builder.() -> Unit = {}): Resource
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String