ContainerPort

io.k8s.api.core.v1.ContainerPort
See theContainerPort companion object
final case class ContainerPort(containerPort: Int, name: Option[String], hostPort: Option[Int], hostIP: Option[String], protocol: Option[String])

ContainerPort represents a network port in a single container.

Attributes

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

Members list

Value members

Concrete methods

def mapContainerPort(f: Int => Int): ContainerPort

transforms containerPort to result of function

transforms containerPort to result of function

Attributes

Source
ContainerPort.scala
def mapHostIP(f: String => String): ContainerPort

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

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

Attributes

Source
ContainerPort.scala
def mapHostPort(f: Int => Int): ContainerPort

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

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

Attributes

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

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

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

Attributes

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

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

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

Attributes

Source
ContainerPort.scala
def withContainerPort(value: Int): ContainerPort

Returns a new data with containerPort set to new value

Returns a new data with containerPort set to new value

Attributes

Source
ContainerPort.scala
def withHostIP(value: String): ContainerPort

Returns a new data with hostIP set to new value

Returns a new data with hostIP set to new value

Attributes

Source
ContainerPort.scala
def withHostPort(value: Int): ContainerPort

Returns a new data with hostPort set to new value

Returns a new data with hostPort set to new value

Attributes

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

Returns a new data with name set to new value

Returns a new data with name set to new value

Attributes

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

Returns a new data with protocol set to new value

Returns a new data with protocol set to new value

Attributes

Source
ContainerPort.scala

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product