mocks

package
v0.6.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockErrorHandler

type MockErrorHandler struct {
	mock.Mock
}

func (*MockErrorHandler) Execute

func (m *MockErrorHandler) Execute(ctx heimdall.Context, e error) (bool, error)

type MockFactory

type MockFactory struct {
	mock.Mock
}

func (*MockFactory) CreateAuthenticator

func (m *MockFactory) CreateAuthenticator(id string, conf config.MechanismConfig) (
	authenticators.Authenticator, error,
)

func (*MockFactory) CreateAuthorizer

func (m *MockFactory) CreateAuthorizer(id string, conf config.MechanismConfig) (
	authorizers.Authorizer, error,
)

func (*MockFactory) CreateContextualizer

func (m *MockFactory) CreateContextualizer(id string, conf config.MechanismConfig) (
	contextualizers.Contextualizer, error,
)

func (*MockFactory) CreateErrorHandler

func (m *MockFactory) CreateErrorHandler(id string, conf config.MechanismConfig) (
	errorhandlers.ErrorHandler, error,
)

func (*MockFactory) CreateUnifier

func (m *MockFactory) CreateUnifier(id string, conf config.MechanismConfig) (
	unifiers.Unifier, error,
)

type MockRepository

type MockRepository struct {
	mock.Mock
}

func (*MockRepository) FindRule

func (m *MockRepository) FindRule(reqURL *url.URL) (rule.Rule, error)

type MockRuleFactory

type MockRuleFactory struct {
	mock.Mock
}

func (*MockRuleFactory) CreateRule

func (m *MockRuleFactory) CreateRule(srcID string, ruleConfig rule.Configuration) (rule.Rule, error)

func (*MockRuleFactory) DefaultRule

func (m *MockRuleFactory) DefaultRule() rule.Rule

func (*MockRuleFactory) HasDefaultRule

func (m *MockRuleFactory) HasDefaultRule() bool

type MockSubjectCreator

type MockSubjectCreator struct {
	mock.Mock
}

func (*MockSubjectCreator) Execute

func (*MockSubjectCreator) IsFallbackOnErrorAllowed

func (a *MockSubjectCreator) IsFallbackOnErrorAllowed() bool

type MockSubjectHandler

type MockSubjectHandler struct {
	mock.Mock
}

func (*MockSubjectHandler) Execute

func (a *MockSubjectHandler) Execute(ctx heimdall.Context, sub *subject.Subject) error

Jump to

Keyboard shortcuts

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