mocks

package
v0.4.0-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 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 MockHandlerFactory

type MockHandlerFactory struct {
	mock.Mock
}

func (*MockHandlerFactory) CreateAuthenticator

func (m *MockHandlerFactory) CreateAuthenticator(id string, conf map[string]any) (authenticators.Authenticator, error)

func (*MockHandlerFactory) CreateAuthorizer

func (m *MockHandlerFactory) CreateAuthorizer(id string, conf map[string]any) (authorizers.Authorizer, error)

func (*MockHandlerFactory) CreateErrorHandler

func (m *MockHandlerFactory) CreateErrorHandler(id string, conf map[string]any) (errorhandlers.ErrorHandler, error)

func (*MockHandlerFactory) CreateHydrator

func (m *MockHandlerFactory) CreateHydrator(id string, conf map[string]any) (hydrators.Hydrator, error)

func (*MockHandlerFactory) CreateMutator

func (m *MockHandlerFactory) CreateMutator(id string, conf map[string]any) (mutators.Mutator, 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 config.RuleConfig) (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