Port

@Serializable
data class Port(val privatePort: Int, val type: Port.Type, val IP: String? = null, val publicPort: Int? = null)

An open port on a container

Parameters

privatePort

Port on the container

type
IP

Host IP address that the container's port is mapped to

publicPort

Port exposed on the host

Constructors

Link copied to clipboard
constructor(privatePort: Int, type: Port.Type, IP: String? = null, publicPort: Int? = null)

Types

Link copied to clipboard
@Serializable
enum Type : Enum<Port.Type>

Values: TCP,UDP,SCTP

Properties

Link copied to clipboard
@SerialName(value = "IP")
val IP: String?
Link copied to clipboard
@SerialName(value = "PrivatePort")
@Required
val privatePort: Int
Link copied to clipboard
@SerialName(value = "PublicPort")
val publicPort: Int?
Link copied to clipboard
@SerialName(value = "Type")
@Required
val type: Port.Type