dev-master
9999999-dev http://github.com/mauchede/rancher-api-bundleRancher API Bundle for the Symfony Framework
MIT
The Requires
The Development Requires
api bundle client rancher
Wallogit.com
2017 © Pedro Peláez
Rancher API Bundle for the Symfony Framework
Rancher API Bundle for the Symfony Framework., (*1)
⚠️ This project is no longer maintained. ⚠️, (*2)
composer require mauchede/rancher-api
AppKernel:class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
// ...
new Mauchede\RancherApiBundle\MauchedeRancherApiBundle(),
// ...
);
// ...
}
// ...
}
config.yml:rancher_api:
projects:
project_A:
endpoint: #...
access_key: #...
secret_key: #...
project_B:
endpoint: #...
access_key: #...
secret_key: #...
Note: endpoint and the API Keys (access_key and secret_key) can be found in Rancher settings ([Rancher URL]/settings/api)., (*4)
Project name (here project_A and project_B) does not match with the Rancher's project/environment: you are free to choose the best name., (*5)
The Bundle will create a service rancher_api.projects.[project_name]. This service will be an instance of Mauchede\RancherApi\Resource\Project., (*6)
With the example of configuration, two services will be created:
* rancher_api.projects.project_A
* rancher_api.projects.project_B., (*7)
You can inject these services to another service or to use them in yours controllers., (*8)
Rancher API Bundle for the Symfony Framework
MIT
api bundle client rancher