Add REST request management for Image Service
This commit is contained in:
parent
10fb56b935
commit
7b9f17ba03
2 changed files with 12 additions and 0 deletions
|
@ -35,6 +35,11 @@ class App{
|
||||||
$opt = $tokenClass->getOptions($service);
|
$opt = $tokenClass->getOptions($service);
|
||||||
return $this->openstack->identityV3($opt);
|
return $this->openstack->identityV3($opt);
|
||||||
break;
|
break;
|
||||||
|
case "Image":
|
||||||
|
if($tokenPost == NULL) $tokenClass->genImageToken();
|
||||||
|
$opt = $tokenClass->getOptions($service);
|
||||||
|
return $this->$openstack->imagesV2($opt);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,5 +27,12 @@
|
||||||
$identityObject->action($action);
|
$identityObject->action($action);
|
||||||
$App->show();
|
$App->show();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case "image":
|
||||||
|
include_once("core/Image.php");
|
||||||
|
$imageObject = new image($App);
|
||||||
|
$imageObject->action($action);
|
||||||
|
$App->show();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue