PortStatus

io.k8s.api.core.v1.PortStatus
See thePortStatus companion object
final case class PortStatus(port: Int, protocol: String, error: Option[String])

Attributes

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

Members list

Value members

Concrete methods

def mapError(f: String => String): PortStatus

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

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

Attributes

Source
PortStatus.scala
def mapPort(f: Int => Int): PortStatus

transforms port to result of function

transforms port to result of function

Attributes

Source
PortStatus.scala
def mapProtocol(f: String => String): PortStatus

transforms protocol to result of function

transforms protocol to result of function

Attributes

Source
PortStatus.scala
def withError(value: String): PortStatus

Returns a new data with error set to new value

Returns a new data with error set to new value

Attributes

Source
PortStatus.scala
def withPort(value: Int): PortStatus

Returns a new data with port set to new value

Returns a new data with port set to new value

Attributes

Source
PortStatus.scala
def withProtocol(value: String): PortStatus

Returns a new data with protocol set to new value

Returns a new data with protocol set to new value

Attributes

Source
PortStatus.scala

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product