Documentation
¶
Index ¶
- func New(configuration librepo.Configuration, customConfig config.CustomConfiguration, ...) (repository.AuthProvider, error)
- type AuthProviderFn
- type AuthProviderImpl
- func (s *AuthProviderImpl) GetAuth(ctx context.Context) (transport.AuthMethod, error)
- func (s *AuthProviderImpl) IsAuthProvider() bool
- func (s *AuthProviderImpl) ProvideAuth(ctx context.Context) transport.AuthMethod
- func (s *AuthProviderImpl) Setup() error
- func (s *AuthProviderImpl) SetupProvider(_ context.Context) error
- type Github
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 ¶
func (s *AuthProviderImpl) GetAuth(ctx context.Context) (transport.AuthMethod, error)
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
Click to show internal directories.
Click to hide internal directories.