Documentation ¶
Index ¶
- type Auth0MgmtClient
- type MockAuth0MgmtClientInterface
- type MockAuth0MgmtClientInterface_Expecter
- type MockAuth0MgmtClientInterface_GetUserById_Call
- func (_c *MockAuth0MgmtClientInterface_GetUserById_Call) Return(_a0 *management.User, _a1 error) *MockAuth0MgmtClientInterface_GetUserById_Call
- func (_c *MockAuth0MgmtClientInterface_GetUserById_Call) Run(run func(ctx context.Context, id string)) *MockAuth0MgmtClientInterface_GetUserById_Call
- func (_c *MockAuth0MgmtClientInterface_GetUserById_Call) RunAndReturn(run func(context.Context, string) (*management.User, error)) *MockAuth0MgmtClientInterface_GetUserById_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth0MgmtClient ¶
type Auth0MgmtClient struct {
// contains filtered or unexported fields
}
func New ¶
func New(domain, clientId, clientSecret string) (*Auth0MgmtClient, error)
func (*Auth0MgmtClient) GetUserBySub ¶
type MockAuth0MgmtClientInterface ¶
MockAuth0MgmtClientInterface is an autogenerated mock type for the Auth0MgmtClientInterface type
func NewMockAuth0MgmtClientInterface ¶
func NewMockAuth0MgmtClientInterface(t interface { mock.TestingT Cleanup(func()) }) *MockAuth0MgmtClientInterface
NewMockAuth0MgmtClientInterface creates a new instance of MockAuth0MgmtClientInterface. 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 (*MockAuth0MgmtClientInterface) EXPECT ¶
func (_m *MockAuth0MgmtClientInterface) EXPECT() *MockAuth0MgmtClientInterface_Expecter
func (*MockAuth0MgmtClientInterface) GetUserById ¶
func (_m *MockAuth0MgmtClientInterface) GetUserById(ctx context.Context, id string) (*management.User, error)
GetUserById provides a mock function with given fields: ctx, id
type MockAuth0MgmtClientInterface_Expecter ¶
type MockAuth0MgmtClientInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*MockAuth0MgmtClientInterface_Expecter) GetUserById ¶
func (_e *MockAuth0MgmtClientInterface_Expecter) GetUserById(ctx interface{}, id interface{}) *MockAuth0MgmtClientInterface_GetUserById_Call
GetUserById is a helper method to define mock.On call
- ctx context.Context
- id string
type MockAuth0MgmtClientInterface_GetUserById_Call ¶
MockAuth0MgmtClientInterface_GetUserById_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserById'
func (*MockAuth0MgmtClientInterface_GetUserById_Call) Return ¶
func (_c *MockAuth0MgmtClientInterface_GetUserById_Call) Return(_a0 *management.User, _a1 error) *MockAuth0MgmtClientInterface_GetUserById_Call
func (*MockAuth0MgmtClientInterface_GetUserById_Call) Run ¶
func (_c *MockAuth0MgmtClientInterface_GetUserById_Call) Run(run func(ctx context.Context, id string)) *MockAuth0MgmtClientInterface_GetUserById_Call
func (*MockAuth0MgmtClientInterface_GetUserById_Call) RunAndReturn ¶
func (_c *MockAuth0MgmtClientInterface_GetUserById_Call) RunAndReturn(run func(context.Context, string) (*management.User, error)) *MockAuth0MgmtClientInterface_GetUserById_Call
Click to show internal directories.
Click to hide internal directories.