Documentation ¶
Index ¶
- type MockUserManagement
- func (_m *MockUserManagement) AuthenticateWithCode(ctx context.Context, opts usermanagement.AuthenticateWithCodeOpts) (usermanagement.AuthenticateResponse, error)
- func (_m *MockUserManagement) AuthenticateWithRefreshToken(ctx context.Context, opts usermanagement.AuthenticateWithRefreshTokenOpts) (usermanagement.RefreshAuthenticationResponse, error)
- func (_m *MockUserManagement) EXPECT() *MockUserManagement_Expecter
- func (_m *MockUserManagement) GetAuthorizationURL(opts usermanagement.GetAuthorizationURLOpts) (*url.URL, error)
- func (_m *MockUserManagement) GetLogoutURL(opts usermanagement.GetLogoutURLOpts) (*url.URL, error)
- type MockUserManagement_AuthenticateWithCode_Call
- func (_c *MockUserManagement_AuthenticateWithCode_Call) Return(_a0 usermanagement.AuthenticateResponse, _a1 error) *MockUserManagement_AuthenticateWithCode_Call
- func (_c *MockUserManagement_AuthenticateWithCode_Call) Run(run func(ctx context.Context, opts usermanagement.AuthenticateWithCodeOpts)) *MockUserManagement_AuthenticateWithCode_Call
- func (_c *MockUserManagement_AuthenticateWithCode_Call) RunAndReturn(...) *MockUserManagement_AuthenticateWithCode_Call
- type MockUserManagement_AuthenticateWithRefreshToken_Call
- func (_c *MockUserManagement_AuthenticateWithRefreshToken_Call) Return(_a0 usermanagement.RefreshAuthenticationResponse, _a1 error) *MockUserManagement_AuthenticateWithRefreshToken_Call
- func (_c *MockUserManagement_AuthenticateWithRefreshToken_Call) Run(...) *MockUserManagement_AuthenticateWithRefreshToken_Call
- func (_c *MockUserManagement_AuthenticateWithRefreshToken_Call) RunAndReturn(...) *MockUserManagement_AuthenticateWithRefreshToken_Call
- type MockUserManagement_Expecter
- func (_e *MockUserManagement_Expecter) AuthenticateWithCode(ctx interface{}, opts interface{}) *MockUserManagement_AuthenticateWithCode_Call
- func (_e *MockUserManagement_Expecter) AuthenticateWithRefreshToken(ctx interface{}, opts interface{}) *MockUserManagement_AuthenticateWithRefreshToken_Call
- func (_e *MockUserManagement_Expecter) GetAuthorizationURL(opts interface{}) *MockUserManagement_GetAuthorizationURL_Call
- func (_e *MockUserManagement_Expecter) GetLogoutURL(opts interface{}) *MockUserManagement_GetLogoutURL_Call
- type MockUserManagement_GetAuthorizationURL_Call
- func (_c *MockUserManagement_GetAuthorizationURL_Call) Return(_a0 *url.URL, _a1 error) *MockUserManagement_GetAuthorizationURL_Call
- func (_c *MockUserManagement_GetAuthorizationURL_Call) Run(run func(opts usermanagement.GetAuthorizationURLOpts)) *MockUserManagement_GetAuthorizationURL_Call
- func (_c *MockUserManagement_GetAuthorizationURL_Call) RunAndReturn(run func(usermanagement.GetAuthorizationURLOpts) (*url.URL, error)) *MockUserManagement_GetAuthorizationURL_Call
- type MockUserManagement_GetLogoutURL_Call
- func (_c *MockUserManagement_GetLogoutURL_Call) Return(_a0 *url.URL, _a1 error) *MockUserManagement_GetLogoutURL_Call
- func (_c *MockUserManagement_GetLogoutURL_Call) Run(run func(opts usermanagement.GetLogoutURLOpts)) *MockUserManagement_GetLogoutURL_Call
- func (_c *MockUserManagement_GetLogoutURL_Call) RunAndReturn(run func(usermanagement.GetLogoutURLOpts) (*url.URL, error)) *MockUserManagement_GetLogoutURL_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockUserManagement ¶
MockUserManagement is an autogenerated mock type for the UserManagement type
func NewMockUserManagement ¶
func NewMockUserManagement(t interface { mock.TestingT Cleanup(func()) }) *MockUserManagement
NewMockUserManagement creates a new instance of MockUserManagement. 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 (*MockUserManagement) AuthenticateWithCode ¶
func (_m *MockUserManagement) AuthenticateWithCode(ctx context.Context, opts usermanagement.AuthenticateWithCodeOpts) (usermanagement.AuthenticateResponse, error)
AuthenticateWithCode provides a mock function with given fields: ctx, opts
func (*MockUserManagement) AuthenticateWithRefreshToken ¶
func (_m *MockUserManagement) AuthenticateWithRefreshToken(ctx context.Context, opts usermanagement.AuthenticateWithRefreshTokenOpts) (usermanagement.RefreshAuthenticationResponse, error)
AuthenticateWithRefreshToken provides a mock function with given fields: ctx, opts
func (*MockUserManagement) EXPECT ¶
func (_m *MockUserManagement) EXPECT() *MockUserManagement_Expecter
func (*MockUserManagement) GetAuthorizationURL ¶
func (_m *MockUserManagement) GetAuthorizationURL(opts usermanagement.GetAuthorizationURLOpts) (*url.URL, error)
GetAuthorizationURL provides a mock function with given fields: opts
func (*MockUserManagement) GetLogoutURL ¶
func (_m *MockUserManagement) GetLogoutURL(opts usermanagement.GetLogoutURLOpts) (*url.URL, error)
GetLogoutURL provides a mock function with given fields: opts
type MockUserManagement_AuthenticateWithCode_Call ¶
MockUserManagement_AuthenticateWithCode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AuthenticateWithCode'
func (*MockUserManagement_AuthenticateWithCode_Call) Return ¶
func (_c *MockUserManagement_AuthenticateWithCode_Call) Return(_a0 usermanagement.AuthenticateResponse, _a1 error) *MockUserManagement_AuthenticateWithCode_Call
func (*MockUserManagement_AuthenticateWithCode_Call) Run ¶
func (_c *MockUserManagement_AuthenticateWithCode_Call) Run(run func(ctx context.Context, opts usermanagement.AuthenticateWithCodeOpts)) *MockUserManagement_AuthenticateWithCode_Call
func (*MockUserManagement_AuthenticateWithCode_Call) RunAndReturn ¶
func (_c *MockUserManagement_AuthenticateWithCode_Call) RunAndReturn(run func(context.Context, usermanagement.AuthenticateWithCodeOpts) (usermanagement.AuthenticateResponse, error)) *MockUserManagement_AuthenticateWithCode_Call
type MockUserManagement_AuthenticateWithRefreshToken_Call ¶
MockUserManagement_AuthenticateWithRefreshToken_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AuthenticateWithRefreshToken'
func (*MockUserManagement_AuthenticateWithRefreshToken_Call) Run ¶
func (_c *MockUserManagement_AuthenticateWithRefreshToken_Call) Run(run func(ctx context.Context, opts usermanagement.AuthenticateWithRefreshTokenOpts)) *MockUserManagement_AuthenticateWithRefreshToken_Call
func (*MockUserManagement_AuthenticateWithRefreshToken_Call) RunAndReturn ¶
type MockUserManagement_Expecter ¶
type MockUserManagement_Expecter struct {
// contains filtered or unexported fields
}
func (*MockUserManagement_Expecter) AuthenticateWithCode ¶
func (_e *MockUserManagement_Expecter) AuthenticateWithCode(ctx interface{}, opts interface{}) *MockUserManagement_AuthenticateWithCode_Call
AuthenticateWithCode is a helper method to define mock.On call
- ctx context.Context
- opts usermanagement.AuthenticateWithCodeOpts
func (*MockUserManagement_Expecter) AuthenticateWithRefreshToken ¶
func (_e *MockUserManagement_Expecter) AuthenticateWithRefreshToken(ctx interface{}, opts interface{}) *MockUserManagement_AuthenticateWithRefreshToken_Call
AuthenticateWithRefreshToken is a helper method to define mock.On call
- ctx context.Context
- opts usermanagement.AuthenticateWithRefreshTokenOpts
func (*MockUserManagement_Expecter) GetAuthorizationURL ¶
func (_e *MockUserManagement_Expecter) GetAuthorizationURL(opts interface{}) *MockUserManagement_GetAuthorizationURL_Call
GetAuthorizationURL is a helper method to define mock.On call
- opts usermanagement.GetAuthorizationURLOpts
func (*MockUserManagement_Expecter) GetLogoutURL ¶
func (_e *MockUserManagement_Expecter) GetLogoutURL(opts interface{}) *MockUserManagement_GetLogoutURL_Call
GetLogoutURL is a helper method to define mock.On call
- opts usermanagement.GetLogoutURLOpts
type MockUserManagement_GetAuthorizationURL_Call ¶
MockUserManagement_GetAuthorizationURL_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetAuthorizationURL'
func (*MockUserManagement_GetAuthorizationURL_Call) Return ¶
func (_c *MockUserManagement_GetAuthorizationURL_Call) Return(_a0 *url.URL, _a1 error) *MockUserManagement_GetAuthorizationURL_Call
func (*MockUserManagement_GetAuthorizationURL_Call) Run ¶
func (_c *MockUserManagement_GetAuthorizationURL_Call) Run(run func(opts usermanagement.GetAuthorizationURLOpts)) *MockUserManagement_GetAuthorizationURL_Call
func (*MockUserManagement_GetAuthorizationURL_Call) RunAndReturn ¶
func (_c *MockUserManagement_GetAuthorizationURL_Call) RunAndReturn(run func(usermanagement.GetAuthorizationURLOpts) (*url.URL, error)) *MockUserManagement_GetAuthorizationURL_Call
type MockUserManagement_GetLogoutURL_Call ¶
MockUserManagement_GetLogoutURL_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetLogoutURL'
func (*MockUserManagement_GetLogoutURL_Call) Return ¶
func (_c *MockUserManagement_GetLogoutURL_Call) Return(_a0 *url.URL, _a1 error) *MockUserManagement_GetLogoutURL_Call
func (*MockUserManagement_GetLogoutURL_Call) Run ¶
func (_c *MockUserManagement_GetLogoutURL_Call) Run(run func(opts usermanagement.GetLogoutURLOpts)) *MockUserManagement_GetLogoutURL_Call
func (*MockUserManagement_GetLogoutURL_Call) RunAndReturn ¶
func (_c *MockUserManagement_GetLogoutURL_Call) RunAndReturn(run func(usermanagement.GetLogoutURLOpts) (*url.URL, error)) *MockUserManagement_GetLogoutURL_Call