Device

io.k8s.api.resource.v1beta2.Device
See theDevice companion object
final case class Device(name: String, taints: Option[Seq[DeviceTaint]], nodeName: Option[String], attributes: Option[Map[String, DeviceAttribute]], consumesCounters: Option[Seq[DeviceCounterConsumption]], nodeSelector: Option[NodeSelector], allNodes: Option[Boolean], capacity: Option[Map[String, DeviceCapacity]])

Device represents one individual hardware instance that can be selected based on its attributes. Besides the name, exactly one field must be set.

Attributes

Companion
object
Source
Device.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

Adds new values to attributes

Adds new values to attributes

Attributes

Source
Device.scala
def addCapacity(newValues: (String, DeviceCapacity)*): Device

Adds new values to capacity

Adds new values to capacity

Attributes

Source
Device.scala

Appends new values to consumesCounters

Appends new values to consumesCounters

Attributes

Source
Device.scala
def addTaints(newValues: DeviceTaint*): Device

Appends new values to taints

Appends new values to taints

Attributes

Source
Device.scala

if allNodes has a value, transforms to the result of function

if allNodes has a value, transforms to the result of function

Attributes

Source
Device.scala

if attributes has a value, transforms to the result of function

if attributes has a value, transforms to the result of function

Attributes

Source
Device.scala

if capacity has a value, transforms to the result of function

if capacity has a value, transforms to the result of function

Attributes

Source
Device.scala

if consumesCounters has a value, transforms to the result of function

if consumesCounters has a value, transforms to the result of function

Attributes

Source
Device.scala
def mapName(f: String => String): Device

transforms name to result of function

transforms name to result of function

Attributes

Source
Device.scala

if nodeName has a value, transforms to the result of function

if nodeName has a value, transforms to the result of function

Attributes

Source
Device.scala

if nodeSelector has a value, transforms to the result of function

if nodeSelector has a value, transforms to the result of function

Attributes

Source
Device.scala

if taints has a value, transforms to the result of function

if taints has a value, transforms to the result of function

Attributes

Source
Device.scala
def withAllNodes(value: Boolean): Device

Returns a new data with allNodes set to new value

Returns a new data with allNodes set to new value

Attributes

Source
Device.scala

Returns a new data with attributes set to new value

Returns a new data with attributes set to new value

Attributes

Source
Device.scala

Returns a new data with capacity set to new value

Returns a new data with capacity set to new value

Attributes

Source
Device.scala

Returns a new data with consumesCounters set to new value

Returns a new data with consumesCounters set to new value

Attributes

Source
Device.scala
def withName(value: String): Device

Returns a new data with name set to new value

Returns a new data with name set to new value

Attributes

Source
Device.scala
def withNodeName(value: String): Device

Returns a new data with nodeName set to new value

Returns a new data with nodeName set to new value

Attributes

Source
Device.scala

Returns a new data with nodeSelector set to new value

Returns a new data with nodeSelector set to new value

Attributes

Source
Device.scala

Returns a new data with taints set to new value

Returns a new data with taints set to new value

Attributes

Source
Device.scala

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product