Documentation
¶
Overview ¶
Package mock provides a mock implementation of the delegatedauth component for testing
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Mock ¶
type Mock struct {
AddInstanceFunc func(context.Context, delegatedauth.InstanceParams) error
}
Mock is a mock implementation of the delegatedauth.Component interface
func (*Mock) AddInstance ¶
func (m *Mock) AddInstance(ctx context.Context, params delegatedauth.InstanceParams) error
AddInstance calls the mock function if set, otherwise returns nil
type Provides ¶
type Provides struct {
Comp delegatedauth.Component
}
Provides is the mock component output
Click to show internal directories.
Click to hide internal directories.