auth

package
v0.0.0-...-08c9609 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicGitAuthenticator

type BasicGitAuthenticator struct {
	UserName string
	Password string
}

func (*BasicGitAuthenticator) IsAvailable

func (t *BasicGitAuthenticator) IsAvailable() bool

func (*BasicGitAuthenticator) ResolveAuth

func (t *BasicGitAuthenticator) ResolveAuth() (*http.BasicAuth, error)

type GitAuthenticator

type GitAuthenticator interface {
	IsAvailable() bool
	ResolveAuth() (*http.BasicAuth, error)
}

type GitHubAuthenticator

type GitHubAuthenticator struct {
	AppID             string
	AppInstallationID string
	PrivateKey        string
	// contains filtered or unexported fields
}

func (*GitHubAuthenticator) IsAvailable

func (g *GitHubAuthenticator) IsAvailable() bool

func (*GitHubAuthenticator) ResolveAuth

func (g *GitHubAuthenticator) ResolveAuth() (*githttp.BasicAuth, error)

type TokenGitAuthenticator

type TokenGitAuthenticator struct {
	Token string
}

func (*TokenGitAuthenticator) IsAvailable

func (t *TokenGitAuthenticator) IsAvailable() bool

func (*TokenGitAuthenticator) ResolveAuth

func (t *TokenGitAuthenticator) ResolveAuth() (*http.BasicAuth, error)

Jump to

Keyboard shortcuts

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