mocks

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MechanismFactoryMock

type MechanismFactoryMock struct {
	mock.Mock
}

MechanismFactoryMock is an autogenerated mock type for the MechanismFactory type

func NewMechanismFactoryMock

func NewMechanismFactoryMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *MechanismFactoryMock

NewMechanismFactoryMock creates a new instance of MechanismFactoryMock. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MechanismFactoryMock) CreateAuthenticator

func (_m *MechanismFactoryMock) CreateAuthenticator(version string, id string, conf config.MechanismConfig) (authenticators.Authenticator, error)

CreateAuthenticator provides a mock function with given fields: version, id, conf

func (*MechanismFactoryMock) CreateAuthorizer

func (_m *MechanismFactoryMock) CreateAuthorizer(version string, id string, conf config.MechanismConfig) (authorizers.Authorizer, error)

CreateAuthorizer provides a mock function with given fields: version, id, conf

func (*MechanismFactoryMock) CreateContextualizer

func (_m *MechanismFactoryMock) CreateContextualizer(version string, id string, conf config.MechanismConfig) (contextualizers.Contextualizer, error)

CreateContextualizer provides a mock function with given fields: version, id, conf

func (*MechanismFactoryMock) CreateErrorHandler

func (_m *MechanismFactoryMock) CreateErrorHandler(version string, id string, conf config.MechanismConfig) (errorhandlers.ErrorHandler, error)

CreateErrorHandler provides a mock function with given fields: version, id, conf

func (*MechanismFactoryMock) CreateFinalizer

func (_m *MechanismFactoryMock) CreateFinalizer(version string, id string, conf config.MechanismConfig) (finalizers.Finalizer, error)

CreateFinalizer provides a mock function with given fields: version, id, conf

func (*MechanismFactoryMock) EXPECT

type MechanismFactoryMock_CreateAuthenticator_Call

type MechanismFactoryMock_CreateAuthenticator_Call struct {
	*mock.Call
}

MechanismFactoryMock_CreateAuthenticator_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateAuthenticator'

func (*MechanismFactoryMock_CreateAuthenticator_Call) Return

func (*MechanismFactoryMock_CreateAuthenticator_Call) Run

type MechanismFactoryMock_CreateAuthorizer_Call

type MechanismFactoryMock_CreateAuthorizer_Call struct {
	*mock.Call
}

MechanismFactoryMock_CreateAuthorizer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateAuthorizer'

func (*MechanismFactoryMock_CreateAuthorizer_Call) Return

func (*MechanismFactoryMock_CreateAuthorizer_Call) Run

type MechanismFactoryMock_CreateContextualizer_Call

type MechanismFactoryMock_CreateContextualizer_Call struct {
	*mock.Call
}

MechanismFactoryMock_CreateContextualizer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateContextualizer'

func (*MechanismFactoryMock_CreateContextualizer_Call) Return

func (*MechanismFactoryMock_CreateContextualizer_Call) Run

type MechanismFactoryMock_CreateErrorHandler_Call

type MechanismFactoryMock_CreateErrorHandler_Call struct {
	*mock.Call
}

MechanismFactoryMock_CreateErrorHandler_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateErrorHandler'

func (*MechanismFactoryMock_CreateErrorHandler_Call) Return

func (*MechanismFactoryMock_CreateErrorHandler_Call) Run

type MechanismFactoryMock_CreateFinalizer_Call

type MechanismFactoryMock_CreateFinalizer_Call struct {
	*mock.Call
}

MechanismFactoryMock_CreateFinalizer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateFinalizer'

func (*MechanismFactoryMock_CreateFinalizer_Call) Return

func (*MechanismFactoryMock_CreateFinalizer_Call) Run

func (*MechanismFactoryMock_CreateFinalizer_Call) RunAndReturn

type MechanismFactoryMock_Expecter

type MechanismFactoryMock_Expecter struct {
	// contains filtered or unexported fields
}

func (*MechanismFactoryMock_Expecter) CreateAuthenticator

func (_e *MechanismFactoryMock_Expecter) CreateAuthenticator(version interface{}, id interface{}, conf interface{}) *MechanismFactoryMock_CreateAuthenticator_Call

CreateAuthenticator is a helper method to define mock.On call

  • version string
  • id string
  • conf config.MechanismConfig

func (*MechanismFactoryMock_Expecter) CreateAuthorizer

func (_e *MechanismFactoryMock_Expecter) CreateAuthorizer(version interface{}, id interface{}, conf interface{}) *MechanismFactoryMock_CreateAuthorizer_Call

CreateAuthorizer is a helper method to define mock.On call

  • version string
  • id string
  • conf config.MechanismConfig

func (*MechanismFactoryMock_Expecter) CreateContextualizer

func (_e *MechanismFactoryMock_Expecter) CreateContextualizer(version interface{}, id interface{}, conf interface{}) *MechanismFactoryMock_CreateContextualizer_Call

CreateContextualizer is a helper method to define mock.On call

  • version string
  • id string
  • conf config.MechanismConfig

func (*MechanismFactoryMock_Expecter) CreateErrorHandler

func (_e *MechanismFactoryMock_Expecter) CreateErrorHandler(version interface{}, id interface{}, conf interface{}) *MechanismFactoryMock_CreateErrorHandler_Call

CreateErrorHandler is a helper method to define mock.On call

  • version string
  • id string
  • conf config.MechanismConfig

func (*MechanismFactoryMock_Expecter) CreateFinalizer

func (_e *MechanismFactoryMock_Expecter) CreateFinalizer(version interface{}, id interface{}, conf interface{}) *MechanismFactoryMock_CreateFinalizer_Call

CreateFinalizer is a helper method to define mock.On call

  • version string
  • id string
  • conf config.MechanismConfig

Jump to

Keyboard shortcuts

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