auth

package
v0.3.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package auth defines transport and signing configuration shared by git backends.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicAuth

type BasicAuth struct {
	Username string
	Password string
}

BasicAuth authenticates with a username and password.

type CredentialHelper

type CredentialHelper struct {
	Program string
	Args    []string
}

CredentialHelper requests credentials from a helper program.

type GPGSign

type GPGSign struct {
	KeyID string
}

GPGSign configures GPG signing.

type SSHKey

type SSHKey struct {
	User           string
	PrivateKeyPath string
	Passphrase     string
	KnownHostsFile string
}

SSHKey authenticates with a private key file.

type SSHSign

type SSHSign struct {
	KeyPath string
}

SSHSign configures SSH signing.

type Signing

type Signing interface {
	// contains filtered or unexported methods
}

Signing describes commit or tag signing configuration.

type Token

type Token struct {
	Username string
	Value    string
	Provider TokenProvider
}

Token authenticates with an HTTP token.

type TokenProvider

type TokenProvider interface {
	Token() (string, error)
}

TokenProvider resolves a token at call time.

type Transport

type Transport interface {
	// contains filtered or unexported methods
}

Transport describes a transport authentication mechanism.

Jump to

Keyboard shortcuts

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