auth

package
v1.16.4 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2025 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth struct {
	mock.Mock
}

Auth is an autogenerated mock type for the Auth type

func NewAuth

func NewAuth(t interface {
	mock.TestingT
	Cleanup(func())
}) *Auth

NewAuth creates a new instance of Auth. 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 (*Auth) Check added in v1.15.12

func (_m *Auth) Check() bool

Check provides a mock function with no fields

func (*Auth) EXPECT

func (_m *Auth) EXPECT() *Auth_Expecter

func (*Auth) Extend added in v1.15.12

func (_m *Auth) Extend(name string, fn auth.GuardFunc)

Extend provides a mock function with given fields: name, fn

func (*Auth) Guard

func (_m *Auth) Guard(name string) auth.GuardDriver

Guard provides a mock function with given fields: name

func (*Auth) Guest added in v1.15.12

func (_m *Auth) Guest() bool

Guest provides a mock function with no fields

func (*Auth) ID added in v1.15.0

func (_m *Auth) ID() (string, error)

ID provides a mock function with no fields

func (*Auth) Login

func (_m *Auth) Login(user interface{}) (string, error)

Login provides a mock function with given fields: user

func (*Auth) LoginUsingID

func (_m *Auth) LoginUsingID(id interface{}) (string, error)

LoginUsingID provides a mock function with given fields: id

func (*Auth) Logout

func (_m *Auth) Logout() error

Logout provides a mock function with no fields

func (*Auth) Parse

func (_m *Auth) Parse(token string) (*auth.Payload, error)

Parse provides a mock function with given fields: token

func (*Auth) Provider added in v1.15.12

func (_m *Auth) Provider(name string, fn auth.UserProviderFunc)

Provider provides a mock function with given fields: name, fn

func (*Auth) Refresh

func (_m *Auth) Refresh() (string, error)

Refresh provides a mock function with no fields

func (*Auth) User

func (_m *Auth) User(user interface{}) error

User provides a mock function with given fields: user

type Auth_Check_Call added in v1.15.12

type Auth_Check_Call struct {
	*mock.Call
}

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

func (*Auth_Check_Call) Return added in v1.15.12

func (_c *Auth_Check_Call) Return(_a0 bool) *Auth_Check_Call

func (*Auth_Check_Call) Run added in v1.15.12

func (_c *Auth_Check_Call) Run(run func()) *Auth_Check_Call

func (*Auth_Check_Call) RunAndReturn added in v1.15.12

func (_c *Auth_Check_Call) RunAndReturn(run func() bool) *Auth_Check_Call

type Auth_Expecter

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

func (*Auth_Expecter) Check added in v1.15.12

func (_e *Auth_Expecter) Check() *Auth_Check_Call

Check is a helper method to define mock.On call

func (*Auth_Expecter) Extend added in v1.15.12

func (_e *Auth_Expecter) Extend(name interface{}, fn interface{}) *Auth_Extend_Call

Extend is a helper method to define mock.On call

  • name string
  • fn auth.GuardFunc

func (*Auth_Expecter) Guard

func (_e *Auth_Expecter) Guard(name interface{}) *Auth_Guard_Call

Guard is a helper method to define mock.On call

  • name string

func (*Auth_Expecter) Guest added in v1.15.12

func (_e *Auth_Expecter) Guest() *Auth_Guest_Call

Guest is a helper method to define mock.On call

func (*Auth_Expecter) ID added in v1.15.0

func (_e *Auth_Expecter) ID() *Auth_ID_Call

ID is a helper method to define mock.On call

func (*Auth_Expecter) Login

func (_e *Auth_Expecter) Login(user interface{}) *Auth_Login_Call

Login is a helper method to define mock.On call

  • user interface{}

func (*Auth_Expecter) LoginUsingID

func (_e *Auth_Expecter) LoginUsingID(id interface{}) *Auth_LoginUsingID_Call

LoginUsingID is a helper method to define mock.On call

  • id interface{}

func (*Auth_Expecter) Logout

func (_e *Auth_Expecter) Logout() *Auth_Logout_Call

Logout is a helper method to define mock.On call

func (*Auth_Expecter) Parse

func (_e *Auth_Expecter) Parse(token interface{}) *Auth_Parse_Call

Parse is a helper method to define mock.On call

  • token string

func (*Auth_Expecter) Provider added in v1.15.12

func (_e *Auth_Expecter) Provider(name interface{}, fn interface{}) *Auth_Provider_Call

Provider is a helper method to define mock.On call

  • name string
  • fn auth.UserProviderFunc

func (*Auth_Expecter) Refresh

func (_e *Auth_Expecter) Refresh() *Auth_Refresh_Call

Refresh is a helper method to define mock.On call

func (*Auth_Expecter) User

func (_e *Auth_Expecter) User(user interface{}) *Auth_User_Call

User is a helper method to define mock.On call

  • user interface{}

type Auth_Extend_Call added in v1.15.12

type Auth_Extend_Call struct {
	*mock.Call
}

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

func (*Auth_Extend_Call) Return added in v1.15.12

func (_c *Auth_Extend_Call) Return() *Auth_Extend_Call

func (*Auth_Extend_Call) Run added in v1.15.12

func (_c *Auth_Extend_Call) Run(run func(name string, fn auth.GuardFunc)) *Auth_Extend_Call

func (*Auth_Extend_Call) RunAndReturn added in v1.15.12

func (_c *Auth_Extend_Call) RunAndReturn(run func(string, auth.GuardFunc)) *Auth_Extend_Call

type Auth_Guard_Call

type Auth_Guard_Call struct {
	*mock.Call
}

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

func (*Auth_Guard_Call) Return

func (*Auth_Guard_Call) Run

func (_c *Auth_Guard_Call) Run(run func(name string)) *Auth_Guard_Call

func (*Auth_Guard_Call) RunAndReturn

func (_c *Auth_Guard_Call) RunAndReturn(run func(string) auth.GuardDriver) *Auth_Guard_Call

type Auth_Guest_Call added in v1.15.12

type Auth_Guest_Call struct {
	*mock.Call
}

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

func (*Auth_Guest_Call) Return added in v1.15.12

func (_c *Auth_Guest_Call) Return(_a0 bool) *Auth_Guest_Call

func (*Auth_Guest_Call) Run added in v1.15.12

func (_c *Auth_Guest_Call) Run(run func()) *Auth_Guest_Call

func (*Auth_Guest_Call) RunAndReturn added in v1.15.12

func (_c *Auth_Guest_Call) RunAndReturn(run func() bool) *Auth_Guest_Call

type Auth_ID_Call added in v1.15.0

type Auth_ID_Call struct {
	*mock.Call
}

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

func (*Auth_ID_Call) Return added in v1.15.0

func (_c *Auth_ID_Call) Return(token string, err error) *Auth_ID_Call

func (*Auth_ID_Call) Run added in v1.15.0

func (_c *Auth_ID_Call) Run(run func()) *Auth_ID_Call

func (*Auth_ID_Call) RunAndReturn added in v1.15.0

func (_c *Auth_ID_Call) RunAndReturn(run func() (string, error)) *Auth_ID_Call

type Auth_LoginUsingID_Call

type Auth_LoginUsingID_Call struct {
	*mock.Call
}

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

func (*Auth_LoginUsingID_Call) Return

func (*Auth_LoginUsingID_Call) Run

func (_c *Auth_LoginUsingID_Call) Run(run func(id interface{})) *Auth_LoginUsingID_Call

func (*Auth_LoginUsingID_Call) RunAndReturn

func (_c *Auth_LoginUsingID_Call) RunAndReturn(run func(interface{}) (string, error)) *Auth_LoginUsingID_Call

type Auth_Login_Call

type Auth_Login_Call struct {
	*mock.Call
}

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

func (*Auth_Login_Call) Return

func (_c *Auth_Login_Call) Return(token string, err error) *Auth_Login_Call

func (*Auth_Login_Call) Run

func (_c *Auth_Login_Call) Run(run func(user interface{})) *Auth_Login_Call

func (*Auth_Login_Call) RunAndReturn

func (_c *Auth_Login_Call) RunAndReturn(run func(interface{}) (string, error)) *Auth_Login_Call

type Auth_Logout_Call

type Auth_Logout_Call struct {
	*mock.Call
}

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

func (*Auth_Logout_Call) Return

func (_c *Auth_Logout_Call) Return(_a0 error) *Auth_Logout_Call

func (*Auth_Logout_Call) Run

func (_c *Auth_Logout_Call) Run(run func()) *Auth_Logout_Call

func (*Auth_Logout_Call) RunAndReturn

func (_c *Auth_Logout_Call) RunAndReturn(run func() error) *Auth_Logout_Call

type Auth_Parse_Call

type Auth_Parse_Call struct {
	*mock.Call
}

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

func (*Auth_Parse_Call) Return

func (_c *Auth_Parse_Call) Return(_a0 *auth.Payload, _a1 error) *Auth_Parse_Call

func (*Auth_Parse_Call) Run

func (_c *Auth_Parse_Call) Run(run func(token string)) *Auth_Parse_Call

func (*Auth_Parse_Call) RunAndReturn

func (_c *Auth_Parse_Call) RunAndReturn(run func(string) (*auth.Payload, error)) *Auth_Parse_Call

type Auth_Provider_Call added in v1.15.12

type Auth_Provider_Call struct {
	*mock.Call
}

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

func (*Auth_Provider_Call) Return added in v1.15.12

func (_c *Auth_Provider_Call) Return() *Auth_Provider_Call

func (*Auth_Provider_Call) Run added in v1.15.12

func (_c *Auth_Provider_Call) Run(run func(name string, fn auth.UserProviderFunc)) *Auth_Provider_Call

func (*Auth_Provider_Call) RunAndReturn added in v1.15.12

func (_c *Auth_Provider_Call) RunAndReturn(run func(string, auth.UserProviderFunc)) *Auth_Provider_Call

type Auth_Refresh_Call

type Auth_Refresh_Call struct {
	*mock.Call
}

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

func (*Auth_Refresh_Call) Return

func (_c *Auth_Refresh_Call) Return(token string, err error) *Auth_Refresh_Call

func (*Auth_Refresh_Call) Run

func (_c *Auth_Refresh_Call) Run(run func()) *Auth_Refresh_Call

func (*Auth_Refresh_Call) RunAndReturn

func (_c *Auth_Refresh_Call) RunAndReturn(run func() (string, error)) *Auth_Refresh_Call

type Auth_User_Call

type Auth_User_Call struct {
	*mock.Call
}

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

func (*Auth_User_Call) Return

func (_c *Auth_User_Call) Return(_a0 error) *Auth_User_Call

func (*Auth_User_Call) Run

func (_c *Auth_User_Call) Run(run func(user interface{})) *Auth_User_Call

func (*Auth_User_Call) RunAndReturn

func (_c *Auth_User_Call) RunAndReturn(run func(interface{}) error) *Auth_User_Call

type GuardDriver added in v1.15.12

type GuardDriver struct {
	mock.Mock
}

GuardDriver is an autogenerated mock type for the GuardDriver type

func NewGuardDriver added in v1.15.12

func NewGuardDriver(t interface {
	mock.TestingT
	Cleanup(func())
}) *GuardDriver

NewGuardDriver creates a new instance of GuardDriver. 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 (*GuardDriver) Check added in v1.15.12

func (_m *GuardDriver) Check() bool

Check provides a mock function with no fields

func (*GuardDriver) EXPECT added in v1.15.12

func (_m *GuardDriver) EXPECT() *GuardDriver_Expecter

func (*GuardDriver) Guest added in v1.15.12

func (_m *GuardDriver) Guest() bool

Guest provides a mock function with no fields

func (*GuardDriver) ID added in v1.15.12

func (_m *GuardDriver) ID() (string, error)

ID provides a mock function with no fields

func (*GuardDriver) Login added in v1.15.12

func (_m *GuardDriver) Login(user interface{}) (string, error)

Login provides a mock function with given fields: user

func (*GuardDriver) LoginUsingID added in v1.15.12

func (_m *GuardDriver) LoginUsingID(id interface{}) (string, error)

LoginUsingID provides a mock function with given fields: id

func (*GuardDriver) Logout added in v1.15.12

func (_m *GuardDriver) Logout() error

Logout provides a mock function with no fields

func (*GuardDriver) Parse added in v1.15.12

func (_m *GuardDriver) Parse(token string) (*auth.Payload, error)

Parse provides a mock function with given fields: token

func (*GuardDriver) Refresh added in v1.15.12

func (_m *GuardDriver) Refresh() (string, error)

Refresh provides a mock function with no fields

func (*GuardDriver) User added in v1.15.12

func (_m *GuardDriver) User(user interface{}) error

User provides a mock function with given fields: user

type GuardDriver_Check_Call added in v1.15.12

type GuardDriver_Check_Call struct {
	*mock.Call
}

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

func (*GuardDriver_Check_Call) Return added in v1.15.12

func (*GuardDriver_Check_Call) Run added in v1.15.12

func (_c *GuardDriver_Check_Call) Run(run func()) *GuardDriver_Check_Call

func (*GuardDriver_Check_Call) RunAndReturn added in v1.15.12

func (_c *GuardDriver_Check_Call) RunAndReturn(run func() bool) *GuardDriver_Check_Call

type GuardDriver_Expecter added in v1.15.12

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

func (*GuardDriver_Expecter) Check added in v1.15.12

Check is a helper method to define mock.On call

func (*GuardDriver_Expecter) Guest added in v1.15.12

Guest is a helper method to define mock.On call

func (*GuardDriver_Expecter) ID added in v1.15.12

ID is a helper method to define mock.On call

func (*GuardDriver_Expecter) Login added in v1.15.12

func (_e *GuardDriver_Expecter) Login(user interface{}) *GuardDriver_Login_Call

Login is a helper method to define mock.On call

  • user interface{}

func (*GuardDriver_Expecter) LoginUsingID added in v1.15.12

func (_e *GuardDriver_Expecter) LoginUsingID(id interface{}) *GuardDriver_LoginUsingID_Call

LoginUsingID is a helper method to define mock.On call

  • id interface{}

func (*GuardDriver_Expecter) Logout added in v1.15.12

Logout is a helper method to define mock.On call

func (*GuardDriver_Expecter) Parse added in v1.15.12

func (_e *GuardDriver_Expecter) Parse(token interface{}) *GuardDriver_Parse_Call

Parse is a helper method to define mock.On call

  • token string

func (*GuardDriver_Expecter) Refresh added in v1.15.12

Refresh is a helper method to define mock.On call

func (*GuardDriver_Expecter) User added in v1.15.12

func (_e *GuardDriver_Expecter) User(user interface{}) *GuardDriver_User_Call

User is a helper method to define mock.On call

  • user interface{}

type GuardDriver_Guest_Call added in v1.15.12

type GuardDriver_Guest_Call struct {
	*mock.Call
}

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

func (*GuardDriver_Guest_Call) Return added in v1.15.12

func (*GuardDriver_Guest_Call) Run added in v1.15.12

func (_c *GuardDriver_Guest_Call) Run(run func()) *GuardDriver_Guest_Call

func (*GuardDriver_Guest_Call) RunAndReturn added in v1.15.12

func (_c *GuardDriver_Guest_Call) RunAndReturn(run func() bool) *GuardDriver_Guest_Call

type GuardDriver_ID_Call added in v1.15.12

type GuardDriver_ID_Call struct {
	*mock.Call
}

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

func (*GuardDriver_ID_Call) Return added in v1.15.12

func (_c *GuardDriver_ID_Call) Return(token string, err error) *GuardDriver_ID_Call

func (*GuardDriver_ID_Call) Run added in v1.15.12

func (_c *GuardDriver_ID_Call) Run(run func()) *GuardDriver_ID_Call

func (*GuardDriver_ID_Call) RunAndReturn added in v1.15.12

func (_c *GuardDriver_ID_Call) RunAndReturn(run func() (string, error)) *GuardDriver_ID_Call

type GuardDriver_LoginUsingID_Call added in v1.15.12

type GuardDriver_LoginUsingID_Call struct {
	*mock.Call
}

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

func (*GuardDriver_LoginUsingID_Call) Return added in v1.15.12

func (*GuardDriver_LoginUsingID_Call) Run added in v1.15.12

func (_c *GuardDriver_LoginUsingID_Call) Run(run func(id interface{})) *GuardDriver_LoginUsingID_Call

func (*GuardDriver_LoginUsingID_Call) RunAndReturn added in v1.15.12

func (_c *GuardDriver_LoginUsingID_Call) RunAndReturn(run func(interface{}) (string, error)) *GuardDriver_LoginUsingID_Call

type GuardDriver_Login_Call added in v1.15.12

type GuardDriver_Login_Call struct {
	*mock.Call
}

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

func (*GuardDriver_Login_Call) Return added in v1.15.12

func (*GuardDriver_Login_Call) Run added in v1.15.12

func (_c *GuardDriver_Login_Call) Run(run func(user interface{})) *GuardDriver_Login_Call

func (*GuardDriver_Login_Call) RunAndReturn added in v1.15.12

func (_c *GuardDriver_Login_Call) RunAndReturn(run func(interface{}) (string, error)) *GuardDriver_Login_Call

type GuardDriver_Logout_Call added in v1.15.12

type GuardDriver_Logout_Call struct {
	*mock.Call
}

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

func (*GuardDriver_Logout_Call) Return added in v1.15.12

func (*GuardDriver_Logout_Call) Run added in v1.15.12

func (_c *GuardDriver_Logout_Call) Run(run func()) *GuardDriver_Logout_Call

func (*GuardDriver_Logout_Call) RunAndReturn added in v1.15.12

func (_c *GuardDriver_Logout_Call) RunAndReturn(run func() error) *GuardDriver_Logout_Call

type GuardDriver_Parse_Call added in v1.15.12

type GuardDriver_Parse_Call struct {
	*mock.Call
}

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

func (*GuardDriver_Parse_Call) Return added in v1.15.12

func (*GuardDriver_Parse_Call) Run added in v1.15.12

func (_c *GuardDriver_Parse_Call) Run(run func(token string)) *GuardDriver_Parse_Call

func (*GuardDriver_Parse_Call) RunAndReturn added in v1.15.12

func (_c *GuardDriver_Parse_Call) RunAndReturn(run func(string) (*auth.Payload, error)) *GuardDriver_Parse_Call

type GuardDriver_Refresh_Call added in v1.15.12

type GuardDriver_Refresh_Call struct {
	*mock.Call
}

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

func (*GuardDriver_Refresh_Call) Return added in v1.15.12

func (*GuardDriver_Refresh_Call) Run added in v1.15.12

func (*GuardDriver_Refresh_Call) RunAndReturn added in v1.15.12

func (_c *GuardDriver_Refresh_Call) RunAndReturn(run func() (string, error)) *GuardDriver_Refresh_Call

type GuardDriver_User_Call added in v1.15.12

type GuardDriver_User_Call struct {
	*mock.Call
}

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

func (*GuardDriver_User_Call) Return added in v1.15.12

func (*GuardDriver_User_Call) Run added in v1.15.12

func (_c *GuardDriver_User_Call) Run(run func(user interface{})) *GuardDriver_User_Call

func (*GuardDriver_User_Call) RunAndReturn added in v1.15.12

func (_c *GuardDriver_User_Call) RunAndReturn(run func(interface{}) error) *GuardDriver_User_Call

type GuardFunc added in v1.15.12

type GuardFunc struct {
	mock.Mock
}

GuardFunc is an autogenerated mock type for the GuardFunc type

func NewGuardFunc added in v1.15.12

func NewGuardFunc(t interface {
	mock.TestingT
	Cleanup(func())
}) *GuardFunc

NewGuardFunc creates a new instance of GuardFunc. 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 (*GuardFunc) EXPECT added in v1.15.12

func (_m *GuardFunc) EXPECT() *GuardFunc_Expecter

func (*GuardFunc) Execute added in v1.15.12

func (_m *GuardFunc) Execute(ctx http.Context, name string, userProvider auth.UserProvider) (auth.GuardDriver, error)

Execute provides a mock function with given fields: ctx, name, userProvider

type GuardFunc_Execute_Call added in v1.15.12

type GuardFunc_Execute_Call struct {
	*mock.Call
}

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

func (*GuardFunc_Execute_Call) Return added in v1.15.12

func (*GuardFunc_Execute_Call) Run added in v1.15.12

func (_c *GuardFunc_Execute_Call) Run(run func(ctx http.Context, name string, userProvider auth.UserProvider)) *GuardFunc_Execute_Call

func (*GuardFunc_Execute_Call) RunAndReturn added in v1.15.12

type GuardFunc_Expecter added in v1.15.12

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

func (*GuardFunc_Expecter) Execute added in v1.15.12

func (_e *GuardFunc_Expecter) Execute(ctx interface{}, name interface{}, userProvider interface{}) *GuardFunc_Execute_Call

Execute is a helper method to define mock.On call

  • ctx http.Context
  • name string
  • userProvider auth.UserProvider

type UserProvider added in v1.15.12

type UserProvider struct {
	mock.Mock
}

UserProvider is an autogenerated mock type for the UserProvider type

func NewUserProvider added in v1.15.12

func NewUserProvider(t interface {
	mock.TestingT
	Cleanup(func())
}) *UserProvider

NewUserProvider creates a new instance of UserProvider. 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 (*UserProvider) EXPECT added in v1.15.12

func (_m *UserProvider) EXPECT() *UserProvider_Expecter

func (*UserProvider) GetID added in v1.15.12

func (_m *UserProvider) GetID(user interface{}) (interface{}, error)

GetID provides a mock function with given fields: user

func (*UserProvider) RetriveByID added in v1.15.12

func (_m *UserProvider) RetriveByID(user interface{}, id interface{}) error

RetriveByID provides a mock function with given fields: user, id

type UserProviderFunc added in v1.15.12

type UserProviderFunc struct {
	mock.Mock
}

UserProviderFunc is an autogenerated mock type for the UserProviderFunc type

func NewUserProviderFunc added in v1.15.12

func NewUserProviderFunc(t interface {
	mock.TestingT
	Cleanup(func())
}) *UserProviderFunc

NewUserProviderFunc creates a new instance of UserProviderFunc. 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 (*UserProviderFunc) EXPECT added in v1.15.12

func (*UserProviderFunc) Execute added in v1.15.12

func (_m *UserProviderFunc) Execute(ctx http.Context) (auth.UserProvider, error)

Execute provides a mock function with given fields: ctx

type UserProviderFunc_Execute_Call added in v1.15.12

type UserProviderFunc_Execute_Call struct {
	*mock.Call
}

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

func (*UserProviderFunc_Execute_Call) Return added in v1.15.12

func (*UserProviderFunc_Execute_Call) Run added in v1.15.12

func (*UserProviderFunc_Execute_Call) RunAndReturn added in v1.15.12

type UserProviderFunc_Expecter added in v1.15.12

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

func (*UserProviderFunc_Expecter) Execute added in v1.15.12

func (_e *UserProviderFunc_Expecter) Execute(ctx interface{}) *UserProviderFunc_Execute_Call

Execute is a helper method to define mock.On call

  • ctx http.Context

type UserProvider_Expecter added in v1.15.12

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

func (*UserProvider_Expecter) GetID added in v1.15.12

func (_e *UserProvider_Expecter) GetID(user interface{}) *UserProvider_GetID_Call

GetID is a helper method to define mock.On call

  • user interface{}

func (*UserProvider_Expecter) RetriveByID added in v1.15.12

func (_e *UserProvider_Expecter) RetriveByID(user interface{}, id interface{}) *UserProvider_RetriveByID_Call

RetriveByID is a helper method to define mock.On call

  • user interface{}
  • id interface{}

type UserProvider_GetID_Call added in v1.15.12

type UserProvider_GetID_Call struct {
	*mock.Call
}

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

func (*UserProvider_GetID_Call) Return added in v1.15.12

func (_c *UserProvider_GetID_Call) Return(_a0 interface{}, _a1 error) *UserProvider_GetID_Call

func (*UserProvider_GetID_Call) Run added in v1.15.12

func (_c *UserProvider_GetID_Call) Run(run func(user interface{})) *UserProvider_GetID_Call

func (*UserProvider_GetID_Call) RunAndReturn added in v1.15.12

func (_c *UserProvider_GetID_Call) RunAndReturn(run func(interface{}) (interface{}, error)) *UserProvider_GetID_Call

type UserProvider_RetriveByID_Call added in v1.15.12

type UserProvider_RetriveByID_Call struct {
	*mock.Call
}

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

func (*UserProvider_RetriveByID_Call) Return added in v1.15.12

func (*UserProvider_RetriveByID_Call) Run added in v1.15.12

func (_c *UserProvider_RetriveByID_Call) Run(run func(user interface{}, id interface{})) *UserProvider_RetriveByID_Call

func (*UserProvider_RetriveByID_Call) RunAndReturn added in v1.15.12

func (_c *UserProvider_RetriveByID_Call) RunAndReturn(run func(interface{}, interface{}) error) *UserProvider_RetriveByID_Call

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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