Documentation ¶
Index ¶
- type UserConverter
- func (_m *UserConverter) EXPECT() *UserConverter_Expecter
- func (_m *UserConverter) GetUser(userid *userv1beta1.UserId) (*userv1beta1.User, error)
- func (_m *UserConverter) UserIDToUserName(ctx context.Context, userid *userv1beta1.UserId) (string, error)
- func (_m *UserConverter) UserNameToUserID(ctx context.Context, username string) (*userv1beta1.UserId, error)
- type UserConverter_Expecter
- func (_e *UserConverter_Expecter) GetUser(userid interface{}) *UserConverter_GetUser_Call
- func (_e *UserConverter_Expecter) UserIDToUserName(ctx interface{}, userid interface{}) *UserConverter_UserIDToUserName_Call
- func (_e *UserConverter_Expecter) UserNameToUserID(ctx interface{}, username interface{}) *UserConverter_UserNameToUserID_Call
- type UserConverter_GetUser_Call
- func (_c *UserConverter_GetUser_Call) Return(_a0 *userv1beta1.User, _a1 error) *UserConverter_GetUser_Call
- func (_c *UserConverter_GetUser_Call) Run(run func(userid *userv1beta1.UserId)) *UserConverter_GetUser_Call
- func (_c *UserConverter_GetUser_Call) RunAndReturn(run func(*userv1beta1.UserId) (*userv1beta1.User, error)) *UserConverter_GetUser_Call
- type UserConverter_UserIDToUserName_Call
- func (_c *UserConverter_UserIDToUserName_Call) Return(_a0 string, _a1 error) *UserConverter_UserIDToUserName_Call
- func (_c *UserConverter_UserIDToUserName_Call) Run(run func(ctx context.Context, userid *userv1beta1.UserId)) *UserConverter_UserIDToUserName_Call
- func (_c *UserConverter_UserIDToUserName_Call) RunAndReturn(run func(context.Context, *userv1beta1.UserId) (string, error)) *UserConverter_UserIDToUserName_Call
- type UserConverter_UserNameToUserID_Call
- func (_c *UserConverter_UserNameToUserID_Call) Return(_a0 *userv1beta1.UserId, _a1 error) *UserConverter_UserNameToUserID_Call
- func (_c *UserConverter_UserNameToUserID_Call) Run(run func(ctx context.Context, username string)) *UserConverter_UserNameToUserID_Call
- func (_c *UserConverter_UserNameToUserID_Call) RunAndReturn(run func(context.Context, string) (*userv1beta1.UserId, error)) *UserConverter_UserNameToUserID_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserConverter ¶
UserConverter is an autogenerated mock type for the UserConverter type
func NewUserConverter ¶
func NewUserConverter(t interface { mock.TestingT Cleanup(func()) }) *UserConverter
NewUserConverter creates a new instance of UserConverter. 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 (*UserConverter) EXPECT ¶ added in v2.19.6
func (_m *UserConverter) EXPECT() *UserConverter_Expecter
func (*UserConverter) GetUser ¶ added in v2.17.0
func (_m *UserConverter) GetUser(userid *userv1beta1.UserId) (*userv1beta1.User, error)
GetUser provides a mock function with given fields: userid
func (*UserConverter) UserIDToUserName ¶
func (_m *UserConverter) UserIDToUserName(ctx context.Context, userid *userv1beta1.UserId) (string, error)
UserIDToUserName provides a mock function with given fields: ctx, userid
func (*UserConverter) UserNameToUserID ¶
func (_m *UserConverter) UserNameToUserID(ctx context.Context, username string) (*userv1beta1.UserId, error)
UserNameToUserID provides a mock function with given fields: ctx, username
type UserConverter_Expecter ¶ added in v2.19.6
type UserConverter_Expecter struct {
// contains filtered or unexported fields
}
func (*UserConverter_Expecter) GetUser ¶ added in v2.19.6
func (_e *UserConverter_Expecter) GetUser(userid interface{}) *UserConverter_GetUser_Call
GetUser is a helper method to define mock.On call
- userid *userv1beta1.UserId
func (*UserConverter_Expecter) UserIDToUserName ¶ added in v2.19.6
func (_e *UserConverter_Expecter) UserIDToUserName(ctx interface{}, userid interface{}) *UserConverter_UserIDToUserName_Call
UserIDToUserName is a helper method to define mock.On call
- ctx context.Context
- userid *userv1beta1.UserId
func (*UserConverter_Expecter) UserNameToUserID ¶ added in v2.19.6
func (_e *UserConverter_Expecter) UserNameToUserID(ctx interface{}, username interface{}) *UserConverter_UserNameToUserID_Call
UserNameToUserID is a helper method to define mock.On call
- ctx context.Context
- username string
type UserConverter_GetUser_Call ¶ added in v2.19.6
UserConverter_GetUser_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetUser'
func (*UserConverter_GetUser_Call) Return ¶ added in v2.19.6
func (_c *UserConverter_GetUser_Call) Return(_a0 *userv1beta1.User, _a1 error) *UserConverter_GetUser_Call
func (*UserConverter_GetUser_Call) Run ¶ added in v2.19.6
func (_c *UserConverter_GetUser_Call) Run(run func(userid *userv1beta1.UserId)) *UserConverter_GetUser_Call
func (*UserConverter_GetUser_Call) RunAndReturn ¶ added in v2.19.6
func (_c *UserConverter_GetUser_Call) RunAndReturn(run func(*userv1beta1.UserId) (*userv1beta1.User, error)) *UserConverter_GetUser_Call
type UserConverter_UserIDToUserName_Call ¶ added in v2.19.6
UserConverter_UserIDToUserName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UserIDToUserName'
func (*UserConverter_UserIDToUserName_Call) Return ¶ added in v2.19.6
func (_c *UserConverter_UserIDToUserName_Call) Return(_a0 string, _a1 error) *UserConverter_UserIDToUserName_Call
func (*UserConverter_UserIDToUserName_Call) Run ¶ added in v2.19.6
func (_c *UserConverter_UserIDToUserName_Call) Run(run func(ctx context.Context, userid *userv1beta1.UserId)) *UserConverter_UserIDToUserName_Call
func (*UserConverter_UserIDToUserName_Call) RunAndReturn ¶ added in v2.19.6
func (_c *UserConverter_UserIDToUserName_Call) RunAndReturn(run func(context.Context, *userv1beta1.UserId) (string, error)) *UserConverter_UserIDToUserName_Call
type UserConverter_UserNameToUserID_Call ¶ added in v2.19.6
UserConverter_UserNameToUserID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UserNameToUserID'
func (*UserConverter_UserNameToUserID_Call) Return ¶ added in v2.19.6
func (_c *UserConverter_UserNameToUserID_Call) Return(_a0 *userv1beta1.UserId, _a1 error) *UserConverter_UserNameToUserID_Call
func (*UserConverter_UserNameToUserID_Call) Run ¶ added in v2.19.6
func (_c *UserConverter_UserNameToUserID_Call) Run(run func(ctx context.Context, username string)) *UserConverter_UserNameToUserID_Call
func (*UserConverter_UserNameToUserID_Call) RunAndReturn ¶ added in v2.19.6
func (_c *UserConverter_UserNameToUserID_Call) RunAndReturn(run func(context.Context, string) (*userv1beta1.UserId, error)) *UserConverter_UserNameToUserID_Call