gitbasicauth

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2026 License: Apache-2.0, BSD-3-Clause, MIT Imports: 4 Imported by: 0

Documentation

Overview

Package gitbasicauth contains common logic for Git Basic Auth plugins.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasValidCredentials added in v0.4.2

func HasValidCredentials(u *url.URL) bool

HasValidCredentials returns true if a given url has valid credentials

func NewValidator added in v0.4.2

func NewValidator[T URLer](isURLValid func(*url.URL) bool, validCodes, invalidCodes []int) *simplevalidate.Validator[T]

NewValidator creates a new Validator that validates git basic auth credentials using the info/refs API

Types

type URLer added in v0.4.2

type URLer interface {
	URL() string
}

URLer is an interface that wraps the URL method.

Directories

Path Synopsis
Package bitbucket contains the logic to extract BitBucket URLs with basic auth credentials.
Package bitbucket contains the logic to extract BitBucket URLs with basic auth credentials.
Package codecatalyst contains the logic to extract Amazon CodeCatalyst URLs with basic auth credentials.
Package codecatalyst contains the logic to extract Amazon CodeCatalyst URLs with basic auth credentials.
Package codecommit contains the logic to extract Amazon CodeCommit URLs with basic auth credentials.
Package codecommit contains the logic to extract Amazon CodeCommit URLs with basic auth credentials.
Package mockserver contains a mock implementation of a git server for testing purposes.
Package mockserver contains a mock implementation of a git server for testing purposes.

Jump to

Keyboard shortcuts

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