1 | <?php |
||
15 | class Container extends AbstractPropertyValidator implements PropertyValidatorInterface |
||
16 | { |
||
17 | const DIC_NAME = 'ContainerValidator'; |
||
18 | const MESSAGE_TEMPLATE = '"%s" is not valid. Type (required), image (required), forcePullImage (optional), network (optional), and volumes (optional)'; |
||
19 | |||
20 | /** |
||
21 | * @inheritDoc |
||
22 | */ |
||
23 | 3 | public function isValid($sProperty, JobEntity $oJobEntity) |
|
31 | |||
32 | /** |
||
33 | * @param JobEntity\ContainerEntity $oContainer |
||
34 | * @return bool |
||
35 | * |
||
36 | * @see http://mesos.github.io/chronos/docs/api.html#adding-a-docker-job |
||
37 | * This contains the subfields for the Docker container: |
||
38 | * type (required), image (required), forcePullImage (optional), network (optional), |
||
39 | * and volumes (optional) |
||
40 | */ |
||
41 | 3 | private function isContainerPropertyValid($oContainer) |
|
68 | } |