class NetworkSetting extends Alvine

Netzwerkeinstellungen

Diese Klasse bildet in der Rückgabe die Netzwerkeinstellungen von Docker ab.

"NetworkSettings": {
"Bridge": "",
"SandboxID": "",
"HairpinMode": false,
"LinkLocalIPv6Address": "",
"LinkLocalIPv6PrefixLen": 0,
"Ports": null,
"SandboxKey": "",
"SecondaryIPAddresses": null,
"SecondaryIPv6Addresses": null,
"EndpointID": "",
"Gateway": "", // deprecated
"GlobalIPv6Address": "",
"GlobalIPv6PrefixLen": 0,
"IPAddress": "",  // deprecated
"IPPrefixLen": 0, // deprecated
"IPv6Gateway": "",
"MacAddress": "", // deprecated
"Networks": {
    "bridge": {
        "NetworkID": "7ea29fc1412292a2d7bba362f9253545fecdfa8ce9a6e37dd10ba8bee7129812",
        "EndpointID": "7587b82f0dada3656fda26588aee72630c6fab1536d36e394b2bfbcf898c971d",
        "Gateway": "172.17.0.1",
        "IPAddress": "172.17.0.2",
        "IPPrefixLen": 16,
        "IPv6Gateway": "",
        "GlobalIPv6Address": "",
        "GlobalIPv6PrefixLen": 0,
        "MacAddress": "02:42:ac:12:00:02"
    }
}

Properties

protected string $bridge
protected IP4Address $gateway
protected IP4Address $iPAddress
protected integer $iPPrefixLen
protected MACAddress $macAddress
protected string $sandboxID
protected boolean $hairpinMode
protected IP6Address $linkLocalIPv6Address
protected integer $linkLocalIPv6PrefixLen
protected PortMapping> $ports
protected string $sandboxKey
protected mixed $secondaryIPAddresses
protected mixed $secondaryIPv6Addresses
protected string $endpointID
protected IP6Address $globalIPv6Address
protected integer $globalIPv6PrefixLen
protected IP6Address $iPv6Gateway
protected string $networks

Methods

__construct()

__construct

string
getBridge() deprecated

getBridge

string
getSandboxID()

getSandboxID

boolean
getHairpinMode()

getHairpinMode

IP6Address
getLinkLocalIPv6Address()

getLinkLocalIPv6Address

integer
getLinkLocalIPv6PrefixLen()

getLinkLocalIPv6PrefixLen

PortMapping>
getPorts()

getPorts

string
getSandboxKey()

getSandboxKey

mixed
getSecondaryIPAddresses()

getSecondaryIPAddresses

mixed
getSecondaryIPv6Addresses()

getSecondaryIPv6Addresses

string
getEndpointID()

getEndpointID

string
getGateway() deprecated

getGateway

IP6Address
getGlobalIPv6Address()

getGlobalIPv6Address

integer
getGlobalIPv6PrefixLen()

getGlobalIPv6PrefixLen

IP4Address
getIPAddress() deprecated

getIPAddress

integer
getIPPrefixLen()

getIPPrefixLen

IP6Address
getIPv6Gateway()

getIPv6Gateway

MACAddress
getMacAddress() deprecated

getMacAddress

Network>
getNetworks()

getNetworks

setBridge(string $bridge) deprecated

setBridge

setSandboxID(string $sandboxID)

setSandboxID

setHairpinMode(boolean $hairpinMode)

setHairpinMode

setLinkLocalIPv6Address(string $linkLocalIPv6Address)

setLinkLocalIPv6Address

setLinkLocalIPv6PrefixLen(integer $linkLocalIPv6PrefixLen)

setLinkLocalIPv6PrefixLen

setPorts(Collection $ports)

setPorts

setSandboxKey(string $sandboxKey)

setSandboxKey

setSecondaryIPAddresses(mixed $secondaryIPAddresses)

setSecondaryIPAddresses

setSecondaryIPv6Addresses(mixed $secondaryIPv6Addresses)

setSecondaryIPv6Addresses

setEndpointID(string $endpointID)

setEndpointID

setGateway(IP4Address $gateway) deprecated

setGateway

setGlobalIPv6Address(IP6Address $globalIPv6Address)

setGlobalIPv6Address

setGlobalIPv6PrefixLen(integer $globalIPv6PrefixLen)

setGlobalIPv6PrefixLen

setIPAddress(IP4Address $iPAddress) deprecated

setIPAddress

setIPPrefixLen(integer $iPPrefixLen) deprecated

setIPPrefixLen

setIPv6Gateway(IP6Address $iPv6Gateway)

setIPv6Gateway

setMacAddress(MACAddress $macAddress) deprecated

setMacAddress

setNetworks(Map $networks)

setNetworks

static NetworkSetting
getInstanceFromArray(Array|ArrayHelper $array)

getInstanceFromArray

Details

at line 172
__construct()

__construct

at line 185
string getBridge() deprecated

deprecated V1.20

getBridge

Return Value

string

at line 194
string getSandboxID()

getSandboxID

Return Value

string

at line 203
boolean getHairpinMode()

getHairpinMode

Return Value

boolean

at line 212
IP6Address getLinkLocalIPv6Address()

getLinkLocalIPv6Address

Return Value

IP6Address

at line 221
integer getLinkLocalIPv6PrefixLen()

getLinkLocalIPv6PrefixLen

Return Value

integer

at line 230
PortMapping> getPorts()

getPorts

Return Value

PortMapping>

at line 239
string getSandboxKey()

getSandboxKey

Return Value

string

at line 248
mixed getSecondaryIPAddresses()

getSecondaryIPAddresses

Return Value

mixed

at line 257
mixed getSecondaryIPv6Addresses()

getSecondaryIPv6Addresses

Return Value

mixed

at line 266
string getEndpointID()

getEndpointID

Return Value

string

at line 277
string getGateway() deprecated

deprecated V1.20

getGateway

Return Value

string

at line 286
IP6Address getGlobalIPv6Address()

getGlobalIPv6Address

Return Value

IP6Address

at line 295
integer getGlobalIPv6PrefixLen()

getGlobalIPv6PrefixLen

Return Value

integer

at line 306
IP4Address getIPAddress() deprecated

deprecated V1.20

getIPAddress

Return Value

IP4Address

at line 315
integer getIPPrefixLen()

getIPPrefixLen

Return Value

integer

at line 324
IP6Address getIPv6Gateway()

getIPv6Gateway

Return Value

IP6Address

at line 335
MACAddress getMacAddress() deprecated

deprecated V1.20

getMacAddress

Return Value

MACAddress

at line 344
Network> getNetworks()

getNetworks

Return Value

Network>

at line 357
NetworkSetting setBridge(string $bridge) deprecated

deprecated V1.20

setBridge

Parameters

string $bridge

Return Value

NetworkSetting

at line 369
NetworkSetting setSandboxID(string $sandboxID)

setSandboxID

Parameters

string $sandboxID

Return Value

NetworkSetting

at line 381
NetworkSetting setHairpinMode(boolean $hairpinMode)

setHairpinMode

Parameters

boolean $hairpinMode

Return Value

NetworkSetting

at line 393
NetworkSetting setLinkLocalIPv6Address(string $linkLocalIPv6Address)

setLinkLocalIPv6Address

Parameters

string $linkLocalIPv6Address

Return Value

NetworkSetting

at line 405
NetworkSetting setLinkLocalIPv6PrefixLen(integer $linkLocalIPv6PrefixLen)

setLinkLocalIPv6PrefixLen

Parameters

integer $linkLocalIPv6PrefixLen

Return Value

NetworkSetting

at line 417
NetworkSetting setPorts(Collection $ports)

setPorts

Parameters

Collection $ports

Return Value

NetworkSetting

at line 429
NetworkSetting setSandboxKey(string $sandboxKey)

setSandboxKey

Parameters

string $sandboxKey

Return Value

NetworkSetting

at line 441
NetworkSetting setSecondaryIPAddresses(mixed $secondaryIPAddresses)

setSecondaryIPAddresses

Parameters

mixed $secondaryIPAddresses

Return Value

NetworkSetting

at line 453
NetworkSetting setSecondaryIPv6Addresses(mixed $secondaryIPv6Addresses)

setSecondaryIPv6Addresses

Parameters

mixed $secondaryIPv6Addresses

Return Value

NetworkSetting

at line 465
NetworkSetting setEndpointID(string $endpointID)

setEndpointID

Parameters

string $endpointID

Return Value

NetworkSetting

at line 479
NetworkSetting setGateway(IP4Address $gateway) deprecated

deprecated V1.20

setGateway

Parameters

IP4Address $gateway

Return Value

NetworkSetting

at line 491
NetworkSetting setGlobalIPv6Address(IP6Address $globalIPv6Address)

setGlobalIPv6Address

Parameters

IP6Address $globalIPv6Address

Return Value

NetworkSetting

at line 503
NetworkSetting setGlobalIPv6PrefixLen(integer $globalIPv6PrefixLen)

setGlobalIPv6PrefixLen

Parameters

integer $globalIPv6PrefixLen

Return Value

NetworkSetting

at line 517
NetworkSetting setIPAddress(IP4Address $iPAddress) deprecated

deprecated V1.20

setIPAddress

Parameters

IP4Address $iPAddress

Return Value

NetworkSetting

at line 531
NetworkSetting setIPPrefixLen(integer $iPPrefixLen) deprecated

deprecated V1.20

setIPPrefixLen

Parameters

integer $iPPrefixLen

Return Value

NetworkSetting

at line 543
NetworkSetting setIPv6Gateway(IP6Address $iPv6Gateway)

setIPv6Gateway

Parameters

IP6Address $iPv6Gateway

Return Value

NetworkSetting

at line 557
NetworkSetting setMacAddress(MACAddress $macAddress) deprecated

deprecated V1.20

setMacAddress

Parameters

MACAddress $macAddress

Return Value

NetworkSetting

at line 569
NetworkSetting setNetworks(Map $networks)

setNetworks

Parameters

Map $networks

Return Value

NetworkSetting

at line 631
static NetworkSetting getInstanceFromArray(Array|ArrayHelper $array)

getInstanceFromArray

Parameters

Array|ArrayHelper $array

Return Value

NetworkSetting