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 ¶
func (f *AuthFactory) Get(id string) (repository.AuthMethodReader, error)
Get returns a new auth provider
type MockAuthFactory ¶
MockAuthFactory is a mock of AuthFactory interface
func NewMockAuthFactory ¶
func NewMockAuthFactory() *MockAuthFactory
NewMockAuthFactory creates a new auth provider factory
func (*MockAuthFactory) Get ¶
func (f *MockAuthFactory) Get(id string) (repository.AuthMethodReader, error)
Get provides a mock function with given fields: id
Click to show internal directories.
Click to hide internal directories.