2017 © Pedro Peláez
 

library rancher-api-bundle

Rancher API Bundle for the Symfony Framework

image

mauchede/rancher-api-bundle

Rancher API Bundle for the Symfony Framework

  • Saturday, October 31, 2015
  • by mauchede
  • Repository
  • 1 Watchers
  • 2 Stars
  • 294 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 7 % Grown

The README.md

RancherApiBundle

Rancher API Bundle for the Symfony Framework., (*1)

⚠️ This project is no longer maintained. ⚠️, (*2)

SensioLabsInsight, (*3)

 Installation

  • Install Rancher API Bundle via composer:
composer require mauchede/rancher-api
  • Enable the bundle in AppKernel:
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Mauchede\RancherApiBundle\MauchedeRancherApiBundle(),
            // ...
        );

        // ...
    }

    // ...
}
  • Configure the projects in 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)

Usage

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)

The Versions

31/10 2015

dev-master

9999999-dev http://github.com/mauchede/rancher-api-bundle

Rancher API Bundle for the Symfony Framework

  Sources   Download

MIT

The Requires

 

The Development Requires

api bundle client rancher