承接 mauchede/rancher-api-bundle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mauchede/rancher-api-bundle

Composer 安装命令:

composer require mauchede/rancher-api-bundle

包简介

Rancher API Bundle for the Symfony Framework

README 文档

README

Rancher API Bundle for the Symfony Framework.

⚠️ This project is no longer maintained. ⚠️

SensioLabsInsight

## 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).

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.

Usage

The Bundle will create a service rancher_api.projects.[project_name]. This service will be an instance of Mauchede\RancherApi\Resource\Project.

With the example of configuration, two services will be created:

  • rancher_api.projects.project_A
  • rancher_api.projects.project_B.

You can inject these services to another service or to use them in yours controllers.

Links

统计信息

  • 总下载量: 354
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-10-31