authProvider

package
v0.60.1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(
	configuration librepo.Configuration,
	customConfig config.CustomConfiguration,
	logging librepo.Logging,
	baseRT http.RoundTripper,
) (repository.AuthProvider, error)

Types

type AuthProviderFn

type AuthProviderFn func(context.Context) (transport.AuthMethod, error)

type AuthProviderImpl

type AuthProviderImpl struct {
	Configuration librepo.Configuration
	Logging       librepo.Logging

	CustomConfiguration config.CustomConfiguration

	Github Github
	// contains filtered or unexported fields
}

func (*AuthProviderImpl) GetAuth

AuthProvider for a business method

func (*AuthProviderImpl) IsAuthProvider

func (s *AuthProviderImpl) IsAuthProvider() bool

func (*AuthProviderImpl) ProvideAuth

func (s *AuthProviderImpl) ProvideAuth(ctx context.Context) transport.AuthMethod

func (*AuthProviderImpl) Setup

func (s *AuthProviderImpl) Setup() error

func (*AuthProviderImpl) SetupProvider

func (s *AuthProviderImpl) SetupProvider(_ context.Context) error

type Github added in v0.55.0

type Github interface {
	CreateInstallationToken(ctx context.Context, installationId int64) (*github.InstallationToken, *github.Response, error)
}

Jump to

Keyboard shortcuts

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