keboola/git-service-api-client 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-05-11

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固