2020-10-06 02:11:36 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
namespace podmanImageManager;
|
|
|
|
|
|
|
|
|
|
|
|
use objectStructs\objectStructs;
|
|
|
|
|
|
|
|
class imageConfigConfig extends objectStructs
|
|
|
|
{
|
|
|
|
/** @var \stdClass */
|
|
|
|
public $ExposedPorts;
|
|
|
|
|
2020-12-03 17:45:09 -05:00
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-06 02:11:36 -04:00
|
|
|
}
|
|
|
|
/*
|
|
|
|
*
|
|
|
|
* [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
|
|
|
|
)
|
|
|
|
|
|
|
|
)
|
|
|
|
*/
|