factory

package
v0.11.5 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthFactory

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

AuthFactory is a factory for auth providers

func NewAuthFactory

func NewAuthFactory(store repository.CredentialsStorer, auth ...repository.AuthProviderer) *AuthFactory

NewAuthFactory creates a new auth provider factory

func (*AuthFactory) Get

Get returns a new auth provider

type MockAuthFactory

type MockAuthFactory struct {
	mock.Mock
}

MockAuthFactory is a mock of AuthFactory interface

func NewMockAuthFactory

func NewMockAuthFactory() *MockAuthFactory

NewMockAuthFactory creates a new auth provider factory

func (*MockAuthFactory) Get

Get provides a mock function with given fields: id

Jump to

Keyboard shortcuts

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