flownative/harbor-api-client
Composer 安装命令:
composer require flownative/harbor-api-client
包简介
This package provides API models and a client for Harbor
README 文档
README
Harbor OpenAPI client
This package provides a client for Harbor. It was auto-generated with Jane based on the Harbor API v2.
Feature coverage
This library only provides subset of the resources provided by the Harbor
API. The included API paths are defined in .jane-openapi. If further
resources are needed, you can adjust the configuration as needed and rebuild
the client library.
Rebuilding the client library
Jane provides commands for generating the client code. Switch to this package's directory and install Composer dependencies. You can then run a command for generating the code:
composer update bin/jane-openapi-generate
Usage
The client is instantiated using the create() factory method. The
following example shows how to create a project, authenticating with
username and password of a Harbor robot user:
use Http\Client\Common\Plugin\AddHostPlugin; use Http\Client\Common\Plugin\AddPathPlugin; use Http\Client\Common\Plugin\AuthenticationPlugin; use Http\Message\Authentication\BasicAuth; use Flownative\Harbor\Api\Model\ProjectReq; … $client = \Flownative\Harbor\Api\Client::create( null, [ new AddHostPlugin( $endpointUri ), new AddPathPlugin( $endpointUri ), new AuthenticationPlugin( new BasicAuth( $username, $password, ) ) ] ); $projectRequest = new ProjectReq(); $projectRequest ->setProjectName((string)$projectName) ->setPublic(false); $client->createProject($projectRequest);
flownative/harbor-api-client 适用场景与选型建议
flownative/harbor-api-client 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 90 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 06 月 26 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 flownative/harbor-api-client 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 flownative/harbor-api-client 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 90
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 19
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-06-26