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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockAuthenticator

type MockAuthenticator struct {
	mock.Mock
}

func (*MockAuthenticator) Execute

func (m *MockAuthenticator) Execute(ctx heimdall.Context) (*subject.Subject, error)

func (*MockAuthenticator) IsFallbackOnErrorAllowed

func (m *MockAuthenticator) IsFallbackOnErrorAllowed() bool

func (*MockAuthenticator) WithConfig

func (m *MockAuthenticator) WithConfig(config map[string]any) (authenticators.Authenticator, error)

type MockAuthorizer

type MockAuthorizer struct {
	mock.Mock
}

func (*MockAuthorizer) Execute

func (m *MockAuthorizer) Execute(ctx heimdall.Context, sub *subject.Subject) error

func (*MockAuthorizer) WithConfig

func (m *MockAuthorizer) WithConfig(config map[string]any) (authorizers.Authorizer, error)

type MockErrorHandler

type MockErrorHandler struct {
	mock.Mock
}

func (*MockErrorHandler) Execute

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

func (*MockErrorHandler) WithConfig

func (m *MockErrorHandler) WithConfig(config map[string]any) (errorhandlers.ErrorHandler, error)

type MockHydrator

type MockHydrator struct {
	mock.Mock
}

func (*MockHydrator) Execute

func (m *MockHydrator) Execute(ctx heimdall.Context, sub *subject.Subject) error

func (*MockHydrator) WithConfig

func (m *MockHydrator) WithConfig(config map[string]any) (hydrators.Hydrator, error)

type MockMutator

type MockMutator struct {
	mock.Mock
}

func (*MockMutator) Execute

func (m *MockMutator) Execute(ctx heimdall.Context, sub *subject.Subject) error

func (*MockMutator) WithConfig

func (m *MockMutator) WithConfig(config map[string]any) (mutators.Mutator, error)

Jump to

Keyboard shortcuts

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