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 ¶
func New(git config.GitConfig, store credentials.Reader, opts Options) (gitprovider.GitProvider, gitprovider.Credential, error)
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.
Click to show internal directories.
Click to hide internal directories.