vcs

package
v0.33.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2026 License: MIT Imports: 2 Imported by: 0

README

VCS

Abstractions for Version Control System operations, supporting multiple backends like GitHub and GitLab.

Package Structure

  • github: GitHub-specific client and release implementation.
  • gitlab: GitLab release provider implementation.
  • repo: Generic Git repository management (Local and In-memory).
  • release: Domain interfaces for releases, assets, and providers.

Pluggable Release Providers

The VCS package provides a release.Provider interface that abstracts release operations across different platforms:

  • Programmatic API interaction (PRs, releases, etc.)
  • Unified authentication layer for SSH and tokens
  • Backend-agnostic asset downloads

For detailed documentation, testing strategies, and configuration options, see the Version Control Component Documentation.

Documentation

Overview

Package vcs holds the thin configuration adapters that bridge GTB's resolved configuration to the extracted version-control modules.

The forge backends themselves no longer live here. Release querying and the provider registry are the standalone module gitlab.com/phpboyscout/go/forge (with per-provider adapters forge-github, forge-gitlab, forge-gitea, forge-bitbucket, plus the built-in direct source); repository cloning and metadata are gitlab.com/phpboyscout/go/repo. What remains in this package is GTB-side glue:

  • ConfigFromReader adapts a GTB config.Reader to the narrow forge.Config seam the provider factories consume.
  • the repo sub-package's config adapter maps GTB props/config to go/repo Settings.

These adapters stay in GTB because they encode GTB's config-key layout and credential-resolution conventions, which are not the modules' concern.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigFromReader added in v0.32.0

func ConfigFromReader(cfg config.Reader) forge.Config

ConfigFromReader adapts GTB's resolved configuration to the narrow VCS release config reader used by release providers.

Types

This section is empty.

Directories

Path Synopsis
Package repo adapts GTB's runtime configuration into the typed settings used by the standalone gitlab.com/phpboyscout/go/repo module.
Package repo adapts GTB's runtime configuration into the typed settings used by the standalone gitlab.com/phpboyscout/go/repo module.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL