gitproviders

package
v0.10.266 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package gitproviders selects the concrete git-provider adapter for a git config. It is the single construction seam commands and the app runtime use so provider dispatch stays out of call sites.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GitBasicAuthUsername

func GitBasicAuthUsername(kind config.GitProviderKind) string

GitBasicAuthUsername returns the username the git HTTP transport pairs with the provider token when fetching over HTTPS.

func New

New builds the provider adapter selected by the git config along with the credential used to authenticate it.

Types

type Options

type Options struct {
	GitHub githubprovider.Options
	GitLab gitlabprovider.Options
}

Options carries provider-specific construction options; only the block matching the config's provider kind is consulted.

Jump to

Keyboard shortcuts

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