auth0

package
v0.4.78 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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

func (c *Auth0MgmtClient) GetUserBySub(ctx context.Context, id string) (*authmgmt.User, error)

type MockAuth0MgmtClientInterface

type MockAuth0MgmtClientInterface struct {
	mock.Mock
}

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 (*MockAuth0MgmtClientInterface) GetUserById

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

type MockAuth0MgmtClientInterface_GetUserById_Call struct {
	*mock.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 (*MockAuth0MgmtClientInterface_GetUserById_Call) Run

func (*MockAuth0MgmtClientInterface_GetUserById_Call) RunAndReturn

Jump to

Keyboard shortcuts

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