Documentation
¶
Index ¶
- type UserRoleAssigner
- func (_m *UserRoleAssigner) ApplyUserRole(ctx context.Context, user *userv1beta1.User) (*userv1beta1.User, error)
- func (_m *UserRoleAssigner) EXPECT() *UserRoleAssigner_Expecter
- func (_m *UserRoleAssigner) UpdateUserRoleAssignment(ctx context.Context, user *userv1beta1.User, claims map[string]interface{}) (*userv1beta1.User, error)
- type UserRoleAssigner_ApplyUserRole_Call
- func (_c *UserRoleAssigner_ApplyUserRole_Call) Return(_a0 *userv1beta1.User, _a1 error) *UserRoleAssigner_ApplyUserRole_Call
- func (_c *UserRoleAssigner_ApplyUserRole_Call) Run(run func(ctx context.Context, user *userv1beta1.User)) *UserRoleAssigner_ApplyUserRole_Call
- func (_c *UserRoleAssigner_ApplyUserRole_Call) RunAndReturn(run func(context.Context, *userv1beta1.User) (*userv1beta1.User, error)) *UserRoleAssigner_ApplyUserRole_Call
- type UserRoleAssigner_Expecter
- type UserRoleAssigner_UpdateUserRoleAssignment_Call
- func (_c *UserRoleAssigner_UpdateUserRoleAssignment_Call) Return(_a0 *userv1beta1.User, _a1 error) *UserRoleAssigner_UpdateUserRoleAssignment_Call
- func (_c *UserRoleAssigner_UpdateUserRoleAssignment_Call) Run(...) *UserRoleAssigner_UpdateUserRoleAssignment_Call
- func (_c *UserRoleAssigner_UpdateUserRoleAssignment_Call) RunAndReturn(...) *UserRoleAssigner_UpdateUserRoleAssignment_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserRoleAssigner ¶
UserRoleAssigner is an autogenerated mock type for the UserRoleAssigner type
func NewUserRoleAssigner ¶
func NewUserRoleAssigner(t interface {
mock.TestingT
Cleanup(func())
}) *UserRoleAssigner
NewUserRoleAssigner creates a new instance of UserRoleAssigner. 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 (*UserRoleAssigner) ApplyUserRole ¶
func (_m *UserRoleAssigner) ApplyUserRole(ctx context.Context, user *userv1beta1.User) (*userv1beta1.User, error)
ApplyUserRole provides a mock function with given fields: ctx, user
func (*UserRoleAssigner) EXPECT ¶
func (_m *UserRoleAssigner) EXPECT() *UserRoleAssigner_Expecter
func (*UserRoleAssigner) UpdateUserRoleAssignment ¶
func (_m *UserRoleAssigner) UpdateUserRoleAssignment(ctx context.Context, user *userv1beta1.User, claims map[string]interface{}) (*userv1beta1.User, error)
UpdateUserRoleAssignment provides a mock function with given fields: ctx, user, claims
type UserRoleAssigner_ApplyUserRole_Call ¶
UserRoleAssigner_ApplyUserRole_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ApplyUserRole'
func (*UserRoleAssigner_ApplyUserRole_Call) Return ¶
func (_c *UserRoleAssigner_ApplyUserRole_Call) Return(_a0 *userv1beta1.User, _a1 error) *UserRoleAssigner_ApplyUserRole_Call
func (*UserRoleAssigner_ApplyUserRole_Call) Run ¶
func (_c *UserRoleAssigner_ApplyUserRole_Call) Run(run func(ctx context.Context, user *userv1beta1.User)) *UserRoleAssigner_ApplyUserRole_Call
func (*UserRoleAssigner_ApplyUserRole_Call) RunAndReturn ¶
func (_c *UserRoleAssigner_ApplyUserRole_Call) RunAndReturn(run func(context.Context, *userv1beta1.User) (*userv1beta1.User, error)) *UserRoleAssigner_ApplyUserRole_Call
type UserRoleAssigner_Expecter ¶
type UserRoleAssigner_Expecter struct {
// contains filtered or unexported fields
}
func (*UserRoleAssigner_Expecter) ApplyUserRole ¶
func (_e *UserRoleAssigner_Expecter) ApplyUserRole(ctx interface{}, user interface{}) *UserRoleAssigner_ApplyUserRole_Call
ApplyUserRole is a helper method to define mock.On call
- ctx context.Context
- user *userv1beta1.User
func (*UserRoleAssigner_Expecter) UpdateUserRoleAssignment ¶
func (_e *UserRoleAssigner_Expecter) UpdateUserRoleAssignment(ctx interface{}, user interface{}, claims interface{}) *UserRoleAssigner_UpdateUserRoleAssignment_Call
UpdateUserRoleAssignment is a helper method to define mock.On call
- ctx context.Context
- user *userv1beta1.User
- claims map[string]interface{}
type UserRoleAssigner_UpdateUserRoleAssignment_Call ¶
UserRoleAssigner_UpdateUserRoleAssignment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateUserRoleAssignment'
func (*UserRoleAssigner_UpdateUserRoleAssignment_Call) Return ¶
func (_c *UserRoleAssigner_UpdateUserRoleAssignment_Call) Return(_a0 *userv1beta1.User, _a1 error) *UserRoleAssigner_UpdateUserRoleAssignment_Call
func (*UserRoleAssigner_UpdateUserRoleAssignment_Call) Run ¶
func (_c *UserRoleAssigner_UpdateUserRoleAssignment_Call) Run(run func(ctx context.Context, user *userv1beta1.User, claims map[string]interface{})) *UserRoleAssigner_UpdateUserRoleAssignment_Call
func (*UserRoleAssigner_UpdateUserRoleAssignment_Call) RunAndReturn ¶
func (_c *UserRoleAssigner_UpdateUserRoleAssignment_Call) RunAndReturn(run func(context.Context, *userv1beta1.User, map[string]interface{}) (*userv1beta1.User, error)) *UserRoleAssigner_UpdateUserRoleAssignment_Call