mangati/portainer-api
最新稳定版本:v0.5.0
Composer 安装命令:
composer require mangati/portainer-api
包简介
Portainer API client
README 文档
README
Portainer API client
Install
composer req mangati/portainer-api
Usage
Managing endpoints:
$portainer = new \Mangati\Portainer\Client('http://127.0.0.1:9000'); $portainer->auth('admin', '123456789'); $endpointsApi = $portainer->endpoints(); $endpoints = $endpointsApi->getAll(); print_r($endpoints);
Managing stacks:
$stacksApi = $portainer->stacks($endpoints[0]['Id']); $stacks = $stacksApi->getAll(); print_r($stacks); if (count($stacks)) { $stacksApi->delete($stacks[0]['Id']); }
统计信息
- 总下载量: 1.48k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 12
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-01-25