github

package
v0.13.3 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2025 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProvider added in v0.12.4

func NewProvider(cfg *Config) auth.Provider

NewProvider creates a new PAM authentication provider.

Types

type Config added in v0.12.4

type Config struct {
	// the GitHub service endpoint, e.g. https://api.github.com/.
	APIEndpoint string
	SkipVerify  bool
}

Config contains configuration for GitHub authentication.

⚠️ WARNING: Change to the field name must preserve the INI key name for backward compatibility.

type Provider added in v0.12.4

type Provider struct {
	// contains filtered or unexported fields
}

Provider contains configuration of a PAM authentication provider.

func (*Provider) Authenticate added in v0.12.4

func (p *Provider) Authenticate(login, password string) (*auth.ExternalAccount, error)

func (*Provider) Config added in v0.12.4

func (p *Provider) Config() any

func (*Provider) HasTLS added in v0.12.4

func (*Provider) HasTLS() bool

func (*Provider) SkipTLSVerify added in v0.12.4

func (p *Provider) SkipTLSVerify() bool

func (*Provider) UseTLS added in v0.12.4

func (*Provider) UseTLS() bool

Jump to

Keyboard shortcuts

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