keboola/git-service-api-client
Composer 安装命令:
composer require keboola/git-service-api-client
包简介
Keboola Git Service API client
README 文档
README
Installation
composer require keboola/git-service-api-client
Usage
use Keboola\GitServiceApiClient\ApiClientConfiguration; use Keboola\GitServiceApiClient\Auth\KeboolaServiceAccountAuth; use Keboola\GitServiceApiClient\Auth\ManageApiTokenAuth; use Keboola\GitServiceApiClient\GitServiceApiClient; // Default: projected Kubernetes ServiceAccount token from // /var/run/secrets/connection.keboola.com/serviceaccount/token, re-read on // every request so kubelet-rotated tokens are picked up automatically. $client = new GitServiceApiClient('https://git-service.example.com'); // Manage API token (legacy) $client = new GitServiceApiClient( 'https://git-service.example.com', new ApiClientConfiguration(auth: new ManageApiTokenAuth($manageApiToken)), ); // SA token from a non-default mount path $client = new GitServiceApiClient( 'https://git-service.example.com', new ApiClientConfiguration( auth: new KeboolaServiceAccountAuth('/var/run/secrets/tokens/connection-token'), ), );
KeboolaServiceAccountAuth sends the bearer token in
X-Kubernetes-Authorization; ManageApiTokenAuth sends the legacy
X-KBC-ManageApiToken header.
License
MIT licensed, see LICENSE file.
统计信息
- 总下载量: 220
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-05-11