vcs

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveToken

func ResolveToken(cfg config.Containable, fallbackEnv string) string

ResolveToken resolves an authentication token from a config subtree. Resolution order:

  1. cfg.auth.env — name of an environment variable to read
  2. cfg.auth.value — literal token value stored in config
  3. fallbackEnv — a well-known environment variable (pass "" to skip)

Returns an empty string when no token is found; callers decide whether that is an error condition (e.g. private repositories require a token, public repositories can proceed without one).

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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