EndpointPortConfig
Table of Contents
- $name : string|null
- $protocol : string|null
- $publishedPort : int|null
- The port on the swarm hosts.
- $publishMode : string|null
- The mode in which port is published.
- $targetPort : int|null
- The port inside the container.
- getName() : string|null
- getProtocol() : string|null
- getPublishedPort() : int|null
- The port on the swarm hosts.
- getPublishMode() : string|null
- The mode in which port is published.
- getTargetPort() : int|null
- The port inside the container.
- setName() : self
- setProtocol() : self
- setPublishedPort() : self
- The port on the swarm hosts.
- setPublishMode() : self
- The mode in which port is published.
- setTargetPort() : self
- The port inside the container.
Properties
$name
protected
string|null
$name
$protocol
protected
string|null
$protocol
$publishedPort
The port on the swarm hosts.
protected
int|null
$publishedPort
$publishMode
The mode in which port is published.
protected
string|null
$publishMode
= 'ingress'
$targetPort
The port inside the container.
protected
int|null
$targetPort
Methods
getName()
public
getName() : string|null
Return values
string|null —getProtocol()
public
getProtocol() : string|null
Return values
string|null —getPublishedPort()
The port on the swarm hosts.
public
getPublishedPort() : int|null
Return values
int|null —getPublishMode()
The mode in which port is published.
public
getPublishMode() : string|null
the swarm node where that service is running.
Return values
string|null —getTargetPort()
The port inside the container.
public
getTargetPort() : int|null
Return values
int|null —setName()
public
setName(string|null $name) : self
Parameters
- $name : string|null
Return values
self —setProtocol()
public
setProtocol(string|null $protocol) : self
Parameters
- $protocol : string|null
Return values
self —setPublishedPort()
The port on the swarm hosts.
public
setPublishedPort(int|null $publishedPort) : self
Parameters
- $publishedPort : int|null
Return values
self —setPublishMode()
The mode in which port is published.
public
setPublishMode(string|null $publishMode) : self
the swarm node where that service is running.
Parameters
- $publishMode : string|null
Return values
self —setTargetPort()
The port inside the container.
public
setTargetPort(int|null $targetPort) : self
Parameters
- $targetPort : int|null