podmanImageManager/imageConfigConfig.php

76 lines
1.7 KiB
PHP

<?php
namespace podmanImageManager;
use objectStructs\objectStructs;
class imageConfigConfig extends objectStructs
{
/** @var \stdClass */
public $ExposedPorts;
public function __construct($Result = null)
{
parent::__construct($Result);
if (isset($Result->ExposedPorts) )
{
$this->ExposedPorts = new \stdClass();
foreach($Result->ExposedPorts as $port => $Value)
{
$this->ExposedPorts->$port = $Value;
}
}
}
}
/*
*
* [config] => stdClass Object
(
[ExposedPorts] => stdClass Object
(
[443/tcp] => stdClass Object
(
)
[80/tcp] => stdClass Object
(
)
)
[Env] => Array
(
[0] => domain=example.com
[1] => domainAliases=example.com-iniapp.generic.host
)
[Entrypoint] => Array
(
[0] => /bin/sh
[1] => -c
[2] => /usr/local/hosting/container/start.sh
)
[Cmd] => Array
(
[0] => /usr/local/hosting/container/start.sh
)
[Volumes] => stdClass Object
(
[/var/www/vhosts/example.com] => stdClass Object
(
)
)
[Labels] => stdClass Object
(
[io.buildah.version] => 1.11.6
)
)
*/