Documentation
¶
Index ¶
- type Client
- func (_m *Client) CreateUser(ctx context.Context, realm string, user *libregraph.User, ...) (string, error)
- func (_m *Client) EXPECT() *Client_Expecter
- func (_m *Client) GetPIIReport(ctx context.Context, realm string, username string) (*keycloak.PIIReport, error)
- func (_m *Client) GetUserByUsername(ctx context.Context, realm string, username string) (*libregraph.User, error)
- func (_m *Client) SendActionsMail(ctx context.Context, realm string, userID string, ...) error
- type Client_CreateUser_Call
- type Client_Expecter
- func (_e *Client_Expecter) CreateUser(ctx interface{}, realm interface{}, user interface{}, userActions interface{}) *Client_CreateUser_Call
- func (_e *Client_Expecter) GetPIIReport(ctx interface{}, realm interface{}, username interface{}) *Client_GetPIIReport_Call
- func (_e *Client_Expecter) GetUserByUsername(ctx interface{}, realm interface{}, username interface{}) *Client_GetUserByUsername_Call
- func (_e *Client_Expecter) SendActionsMail(ctx interface{}, realm interface{}, userID interface{}, ...) *Client_SendActionsMail_Call
- type Client_GetPIIReport_Call
- func (_c *Client_GetPIIReport_Call) Return(_a0 *keycloak.PIIReport, _a1 error) *Client_GetPIIReport_Call
- func (_c *Client_GetPIIReport_Call) Run(run func(ctx context.Context, realm string, username string)) *Client_GetPIIReport_Call
- func (_c *Client_GetPIIReport_Call) RunAndReturn(run func(context.Context, string, string) (*keycloak.PIIReport, error)) *Client_GetPIIReport_Call
- type Client_GetUserByUsername_Call
- func (_c *Client_GetUserByUsername_Call) Return(_a0 *libregraph.User, _a1 error) *Client_GetUserByUsername_Call
- func (_c *Client_GetUserByUsername_Call) Run(run func(ctx context.Context, realm string, username string)) *Client_GetUserByUsername_Call
- func (_c *Client_GetUserByUsername_Call) RunAndReturn(run func(context.Context, string, string) (*libregraph.User, error)) *Client_GetUserByUsername_Call
- type Client_SendActionsMail_Call
- func (_c *Client_SendActionsMail_Call) Return(_a0 error) *Client_SendActionsMail_Call
- func (_c *Client_SendActionsMail_Call) Run(run func(ctx context.Context, realm string, userID string, ...)) *Client_SendActionsMail_Call
- func (_c *Client_SendActionsMail_Call) RunAndReturn(run func(context.Context, string, string, []keycloak.UserAction) error) *Client_SendActionsMail_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is an autogenerated mock type for the Client type
func NewClient ¶
NewClient creates a new instance of Client. 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 (*Client) CreateUser ¶
func (_m *Client) CreateUser(ctx context.Context, realm string, user *libregraph.User, userActions []keycloak.UserAction) (string, error)
CreateUser provides a mock function with given fields: ctx, realm, user, userActions
func (*Client) EXPECT ¶
func (_m *Client) EXPECT() *Client_Expecter
func (*Client) GetPIIReport ¶
func (_m *Client) GetPIIReport(ctx context.Context, realm string, username string) (*keycloak.PIIReport, error)
GetPIIReport provides a mock function with given fields: ctx, realm, username
func (*Client) GetUserByUsername ¶
func (_m *Client) GetUserByUsername(ctx context.Context, realm string, username string) (*libregraph.User, error)
GetUserByUsername provides a mock function with given fields: ctx, realm, username
func (*Client) SendActionsMail ¶
func (_m *Client) SendActionsMail(ctx context.Context, realm string, userID string, userActions []keycloak.UserAction) error
SendActionsMail provides a mock function with given fields: ctx, realm, userID, userActions
type Client_CreateUser_Call ¶
Client_CreateUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateUser'
func (*Client_CreateUser_Call) Return ¶
func (_c *Client_CreateUser_Call) Return(_a0 string, _a1 error) *Client_CreateUser_Call
func (*Client_CreateUser_Call) Run ¶
func (_c *Client_CreateUser_Call) Run(run func(ctx context.Context, realm string, user *libregraph.User, userActions []keycloak.UserAction)) *Client_CreateUser_Call
func (*Client_CreateUser_Call) RunAndReturn ¶
func (_c *Client_CreateUser_Call) RunAndReturn(run func(context.Context, string, *libregraph.User, []keycloak.UserAction) (string, error)) *Client_CreateUser_Call
type Client_Expecter ¶
type Client_Expecter struct {
// contains filtered or unexported fields
}
func (*Client_Expecter) CreateUser ¶
func (_e *Client_Expecter) CreateUser(ctx interface{}, realm interface{}, user interface{}, userActions interface{}) *Client_CreateUser_Call
CreateUser is a helper method to define mock.On call
- ctx context.Context
- realm string
- user *libregraph.User
- userActions []keycloak.UserAction
func (*Client_Expecter) GetPIIReport ¶
func (_e *Client_Expecter) GetPIIReport(ctx interface{}, realm interface{}, username interface{}) *Client_GetPIIReport_Call
GetPIIReport is a helper method to define mock.On call
- ctx context.Context
- realm string
- username string
func (*Client_Expecter) GetUserByUsername ¶
func (_e *Client_Expecter) GetUserByUsername(ctx interface{}, realm interface{}, username interface{}) *Client_GetUserByUsername_Call
GetUserByUsername is a helper method to define mock.On call
- ctx context.Context
- realm string
- username string
func (*Client_Expecter) SendActionsMail ¶
func (_e *Client_Expecter) SendActionsMail(ctx interface{}, realm interface{}, userID interface{}, userActions interface{}) *Client_SendActionsMail_Call
SendActionsMail is a helper method to define mock.On call
- ctx context.Context
- realm string
- userID string
- userActions []keycloak.UserAction
type Client_GetPIIReport_Call ¶
Client_GetPIIReport_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetPIIReport'
func (*Client_GetPIIReport_Call) Return ¶
func (_c *Client_GetPIIReport_Call) Return(_a0 *keycloak.PIIReport, _a1 error) *Client_GetPIIReport_Call
func (*Client_GetPIIReport_Call) Run ¶
func (_c *Client_GetPIIReport_Call) Run(run func(ctx context.Context, realm string, username string)) *Client_GetPIIReport_Call
func (*Client_GetPIIReport_Call) RunAndReturn ¶
func (_c *Client_GetPIIReport_Call) RunAndReturn(run func(context.Context, string, string) (*keycloak.PIIReport, error)) *Client_GetPIIReport_Call
type Client_GetUserByUsername_Call ¶
Client_GetUserByUsername_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUserByUsername'
func (*Client_GetUserByUsername_Call) Return ¶
func (_c *Client_GetUserByUsername_Call) Return(_a0 *libregraph.User, _a1 error) *Client_GetUserByUsername_Call
func (*Client_GetUserByUsername_Call) Run ¶
func (_c *Client_GetUserByUsername_Call) Run(run func(ctx context.Context, realm string, username string)) *Client_GetUserByUsername_Call
func (*Client_GetUserByUsername_Call) RunAndReturn ¶
func (_c *Client_GetUserByUsername_Call) RunAndReturn(run func(context.Context, string, string) (*libregraph.User, error)) *Client_GetUserByUsername_Call
type Client_SendActionsMail_Call ¶
Client_SendActionsMail_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SendActionsMail'
func (*Client_SendActionsMail_Call) Return ¶
func (_c *Client_SendActionsMail_Call) Return(_a0 error) *Client_SendActionsMail_Call
func (*Client_SendActionsMail_Call) Run ¶
func (_c *Client_SendActionsMail_Call) Run(run func(ctx context.Context, realm string, userID string, userActions []keycloak.UserAction)) *Client_SendActionsMail_Call
func (*Client_SendActionsMail_Call) RunAndReturn ¶
func (_c *Client_SendActionsMail_Call) RunAndReturn(run func(context.Context, string, string, []keycloak.UserAction) error) *Client_SendActionsMail_Call