Documentation ¶
Index ¶
- type MockCreateCredentials
- type MockCreateCredentials_Exec_Call
- func (_c *MockCreateCredentials_Exec_Call) Return(_a0 *entities.Credential, _a1 error) *MockCreateCredentials_Exec_Call
- func (_c *MockCreateCredentials_Exec_Call) Run(run func(ctx context.Context, id uuid.UUID, now time.Time, ...)) *MockCreateCredentials_Exec_Call
- func (_c *MockCreateCredentials_Exec_Call) RunAndReturn(...) *MockCreateCredentials_Exec_Call
- type MockCreateCredentials_Expecter
- type MockExistsCredentials
- type MockExistsCredentials_Exec_Call
- func (_c *MockExistsCredentials_Exec_Call) Return(_a0 bool, _a1 error) *MockExistsCredentials_Exec_Call
- func (_c *MockExistsCredentials_Exec_Call) Run(run func(ctx context.Context, request *dao.ExistsCredentialsRequest)) *MockExistsCredentials_Exec_Call
- func (_c *MockExistsCredentials_Exec_Call) RunAndReturn(run func(context.Context, *dao.ExistsCredentialsRequest) (bool, error)) *MockExistsCredentials_Exec_Call
- type MockExistsCredentials_Expecter
- type MockGetCredentials
- type MockGetCredentials_Exec_Call
- func (_c *MockGetCredentials_Exec_Call) Return(_a0 *entities.Credential, _a1 error) *MockGetCredentials_Exec_Call
- func (_c *MockGetCredentials_Exec_Call) Run(run func(ctx context.Context, request *dao.GetCredentialsRequest)) *MockGetCredentials_Exec_Call
- func (_c *MockGetCredentials_Exec_Call) RunAndReturn(...) *MockGetCredentials_Exec_Call
- type MockGetCredentials_Expecter
- type MockListCredentials
- type MockListCredentials_Exec_Call
- func (_c *MockListCredentials_Exec_Call) Return(_a0 []*entities.Credential, _a1 error) *MockListCredentials_Exec_Call
- func (_c *MockListCredentials_Exec_Call) Run(run func(ctx context.Context, ids []uuid.UUID)) *MockListCredentials_Exec_Call
- func (_c *MockListCredentials_Exec_Call) RunAndReturn(run func(context.Context, []uuid.UUID) ([]*entities.Credential, error)) *MockListCredentials_Exec_Call
- type MockListCredentials_Expecter
- type MockSearchCredentials
- type MockSearchCredentials_Exec_Call
- func (_c *MockSearchCredentials_Exec_Call) Return(_a0 uuid.UUIDs, _a1 error) *MockSearchCredentials_Exec_Call
- func (_c *MockSearchCredentials_Exec_Call) Run(run func(ctx context.Context, request *dao.SearchCredentialsRequest)) *MockSearchCredentials_Exec_Call
- func (_c *MockSearchCredentials_Exec_Call) RunAndReturn(run func(context.Context, *dao.SearchCredentialsRequest) (uuid.UUIDs, error)) *MockSearchCredentials_Exec_Call
- type MockSearchCredentials_Expecter
- type MockUpdateCredentials
- type MockUpdateCredentials_Exec_Call
- func (_c *MockUpdateCredentials_Exec_Call) Return(_a0 *entities.Credential, _a1 error) *MockUpdateCredentials_Exec_Call
- func (_c *MockUpdateCredentials_Exec_Call) Run(run func(ctx context.Context, id uuid.UUID, now time.Time, ...)) *MockUpdateCredentials_Exec_Call
- func (_c *MockUpdateCredentials_Exec_Call) RunAndReturn(...) *MockUpdateCredentials_Exec_Call
- type MockUpdateCredentials_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCreateCredentials ¶
MockCreateCredentials is an autogenerated mock type for the CreateCredentials type
func NewMockCreateCredentials ¶
func NewMockCreateCredentials(t interface { mock.TestingT Cleanup(func()) }) *MockCreateCredentials
NewMockCreateCredentials creates a new instance of MockCreateCredentials. 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 (*MockCreateCredentials) EXPECT ¶
func (_m *MockCreateCredentials) EXPECT() *MockCreateCredentials_Expecter
func (*MockCreateCredentials) Exec ¶
func (_m *MockCreateCredentials) Exec(ctx context.Context, id uuid.UUID, now time.Time, request *dao.CreateCredentialsRequest) (*entities.Credential, error)
Exec provides a mock function with given fields: ctx, id, now, request
type MockCreateCredentials_Exec_Call ¶
MockCreateCredentials_Exec_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exec'
func (*MockCreateCredentials_Exec_Call) Return ¶
func (_c *MockCreateCredentials_Exec_Call) Return(_a0 *entities.Credential, _a1 error) *MockCreateCredentials_Exec_Call
func (*MockCreateCredentials_Exec_Call) Run ¶
func (_c *MockCreateCredentials_Exec_Call) Run(run func(ctx context.Context, id uuid.UUID, now time.Time, request *dao.CreateCredentialsRequest)) *MockCreateCredentials_Exec_Call
func (*MockCreateCredentials_Exec_Call) RunAndReturn ¶
func (_c *MockCreateCredentials_Exec_Call) RunAndReturn(run func(context.Context, uuid.UUID, time.Time, *dao.CreateCredentialsRequest) (*entities.Credential, error)) *MockCreateCredentials_Exec_Call
type MockCreateCredentials_Expecter ¶
type MockCreateCredentials_Expecter struct {
// contains filtered or unexported fields
}
func (*MockCreateCredentials_Expecter) Exec ¶
func (_e *MockCreateCredentials_Expecter) Exec(ctx interface{}, id interface{}, now interface{}, request interface{}) *MockCreateCredentials_Exec_Call
Exec is a helper method to define mock.On call
- ctx context.Context
- id uuid.UUID
- now time.Time
- request *dao.CreateCredentialsRequest
type MockExistsCredentials ¶
MockExistsCredentials is an autogenerated mock type for the ExistsCredentials type
func NewMockExistsCredentials ¶
func NewMockExistsCredentials(t interface { mock.TestingT Cleanup(func()) }) *MockExistsCredentials
NewMockExistsCredentials creates a new instance of MockExistsCredentials. 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 (*MockExistsCredentials) EXPECT ¶
func (_m *MockExistsCredentials) EXPECT() *MockExistsCredentials_Expecter
func (*MockExistsCredentials) Exec ¶
func (_m *MockExistsCredentials) Exec(ctx context.Context, request *dao.ExistsCredentialsRequest) (bool, error)
Exec provides a mock function with given fields: ctx, request
type MockExistsCredentials_Exec_Call ¶
MockExistsCredentials_Exec_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exec'
func (*MockExistsCredentials_Exec_Call) Return ¶
func (_c *MockExistsCredentials_Exec_Call) Return(_a0 bool, _a1 error) *MockExistsCredentials_Exec_Call
func (*MockExistsCredentials_Exec_Call) Run ¶
func (_c *MockExistsCredentials_Exec_Call) Run(run func(ctx context.Context, request *dao.ExistsCredentialsRequest)) *MockExistsCredentials_Exec_Call
func (*MockExistsCredentials_Exec_Call) RunAndReturn ¶
func (_c *MockExistsCredentials_Exec_Call) RunAndReturn(run func(context.Context, *dao.ExistsCredentialsRequest) (bool, error)) *MockExistsCredentials_Exec_Call
type MockExistsCredentials_Expecter ¶
type MockExistsCredentials_Expecter struct {
// contains filtered or unexported fields
}
func (*MockExistsCredentials_Expecter) Exec ¶
func (_e *MockExistsCredentials_Expecter) Exec(ctx interface{}, request interface{}) *MockExistsCredentials_Exec_Call
Exec is a helper method to define mock.On call
- ctx context.Context
- request *dao.ExistsCredentialsRequest
type MockGetCredentials ¶
MockGetCredentials is an autogenerated mock type for the GetCredentials type
func NewMockGetCredentials ¶
func NewMockGetCredentials(t interface { mock.TestingT Cleanup(func()) }) *MockGetCredentials
NewMockGetCredentials creates a new instance of MockGetCredentials. 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 (*MockGetCredentials) EXPECT ¶
func (_m *MockGetCredentials) EXPECT() *MockGetCredentials_Expecter
func (*MockGetCredentials) Exec ¶
func (_m *MockGetCredentials) Exec(ctx context.Context, request *dao.GetCredentialsRequest) (*entities.Credential, error)
Exec provides a mock function with given fields: ctx, request
type MockGetCredentials_Exec_Call ¶
MockGetCredentials_Exec_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exec'
func (*MockGetCredentials_Exec_Call) Return ¶
func (_c *MockGetCredentials_Exec_Call) Return(_a0 *entities.Credential, _a1 error) *MockGetCredentials_Exec_Call
func (*MockGetCredentials_Exec_Call) Run ¶
func (_c *MockGetCredentials_Exec_Call) Run(run func(ctx context.Context, request *dao.GetCredentialsRequest)) *MockGetCredentials_Exec_Call
func (*MockGetCredentials_Exec_Call) RunAndReturn ¶
func (_c *MockGetCredentials_Exec_Call) RunAndReturn(run func(context.Context, *dao.GetCredentialsRequest) (*entities.Credential, error)) *MockGetCredentials_Exec_Call
type MockGetCredentials_Expecter ¶
type MockGetCredentials_Expecter struct {
// contains filtered or unexported fields
}
func (*MockGetCredentials_Expecter) Exec ¶
func (_e *MockGetCredentials_Expecter) Exec(ctx interface{}, request interface{}) *MockGetCredentials_Exec_Call
Exec is a helper method to define mock.On call
- ctx context.Context
- request *dao.GetCredentialsRequest
type MockListCredentials ¶
MockListCredentials is an autogenerated mock type for the ListCredentials type
func NewMockListCredentials ¶
func NewMockListCredentials(t interface { mock.TestingT Cleanup(func()) }) *MockListCredentials
NewMockListCredentials creates a new instance of MockListCredentials. 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 (*MockListCredentials) EXPECT ¶
func (_m *MockListCredentials) EXPECT() *MockListCredentials_Expecter
func (*MockListCredentials) Exec ¶
func (_m *MockListCredentials) Exec(ctx context.Context, ids []uuid.UUID) ([]*entities.Credential, error)
Exec provides a mock function with given fields: ctx, ids
type MockListCredentials_Exec_Call ¶
MockListCredentials_Exec_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exec'
func (*MockListCredentials_Exec_Call) Return ¶
func (_c *MockListCredentials_Exec_Call) Return(_a0 []*entities.Credential, _a1 error) *MockListCredentials_Exec_Call
func (*MockListCredentials_Exec_Call) Run ¶
func (_c *MockListCredentials_Exec_Call) Run(run func(ctx context.Context, ids []uuid.UUID)) *MockListCredentials_Exec_Call
func (*MockListCredentials_Exec_Call) RunAndReturn ¶
func (_c *MockListCredentials_Exec_Call) RunAndReturn(run func(context.Context, []uuid.UUID) ([]*entities.Credential, error)) *MockListCredentials_Exec_Call
type MockListCredentials_Expecter ¶
type MockListCredentials_Expecter struct {
// contains filtered or unexported fields
}
func (*MockListCredentials_Expecter) Exec ¶
func (_e *MockListCredentials_Expecter) Exec(ctx interface{}, ids interface{}) *MockListCredentials_Exec_Call
Exec is a helper method to define mock.On call
- ctx context.Context
- ids []uuid.UUID
type MockSearchCredentials ¶
MockSearchCredentials is an autogenerated mock type for the SearchCredentials type
func NewMockSearchCredentials ¶
func NewMockSearchCredentials(t interface { mock.TestingT Cleanup(func()) }) *MockSearchCredentials
NewMockSearchCredentials creates a new instance of MockSearchCredentials. 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 (*MockSearchCredentials) EXPECT ¶
func (_m *MockSearchCredentials) EXPECT() *MockSearchCredentials_Expecter
func (*MockSearchCredentials) Exec ¶
func (_m *MockSearchCredentials) Exec(ctx context.Context, request *dao.SearchCredentialsRequest) (uuid.UUIDs, error)
Exec provides a mock function with given fields: ctx, request
type MockSearchCredentials_Exec_Call ¶
MockSearchCredentials_Exec_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exec'
func (*MockSearchCredentials_Exec_Call) Return ¶
func (_c *MockSearchCredentials_Exec_Call) Return(_a0 uuid.UUIDs, _a1 error) *MockSearchCredentials_Exec_Call
func (*MockSearchCredentials_Exec_Call) Run ¶
func (_c *MockSearchCredentials_Exec_Call) Run(run func(ctx context.Context, request *dao.SearchCredentialsRequest)) *MockSearchCredentials_Exec_Call
func (*MockSearchCredentials_Exec_Call) RunAndReturn ¶
func (_c *MockSearchCredentials_Exec_Call) RunAndReturn(run func(context.Context, *dao.SearchCredentialsRequest) (uuid.UUIDs, error)) *MockSearchCredentials_Exec_Call
type MockSearchCredentials_Expecter ¶
type MockSearchCredentials_Expecter struct {
// contains filtered or unexported fields
}
func (*MockSearchCredentials_Expecter) Exec ¶
func (_e *MockSearchCredentials_Expecter) Exec(ctx interface{}, request interface{}) *MockSearchCredentials_Exec_Call
Exec is a helper method to define mock.On call
- ctx context.Context
- request *dao.SearchCredentialsRequest
type MockUpdateCredentials ¶
MockUpdateCredentials is an autogenerated mock type for the UpdateCredentials type
func NewMockUpdateCredentials ¶
func NewMockUpdateCredentials(t interface { mock.TestingT Cleanup(func()) }) *MockUpdateCredentials
NewMockUpdateCredentials creates a new instance of MockUpdateCredentials. 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 (*MockUpdateCredentials) EXPECT ¶
func (_m *MockUpdateCredentials) EXPECT() *MockUpdateCredentials_Expecter
func (*MockUpdateCredentials) Exec ¶
func (_m *MockUpdateCredentials) Exec(ctx context.Context, id uuid.UUID, now time.Time, data *dao.UpdateCredentialsRequest) (*entities.Credential, error)
Exec provides a mock function with given fields: ctx, id, now, data
type MockUpdateCredentials_Exec_Call ¶
MockUpdateCredentials_Exec_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Exec'
func (*MockUpdateCredentials_Exec_Call) Return ¶
func (_c *MockUpdateCredentials_Exec_Call) Return(_a0 *entities.Credential, _a1 error) *MockUpdateCredentials_Exec_Call
func (*MockUpdateCredentials_Exec_Call) Run ¶
func (_c *MockUpdateCredentials_Exec_Call) Run(run func(ctx context.Context, id uuid.UUID, now time.Time, data *dao.UpdateCredentialsRequest)) *MockUpdateCredentials_Exec_Call
func (*MockUpdateCredentials_Exec_Call) RunAndReturn ¶
func (_c *MockUpdateCredentials_Exec_Call) RunAndReturn(run func(context.Context, uuid.UUID, time.Time, *dao.UpdateCredentialsRequest) (*entities.Credential, error)) *MockUpdateCredentials_Exec_Call
type MockUpdateCredentials_Expecter ¶
type MockUpdateCredentials_Expecter struct {
// contains filtered or unexported fields
}
func (*MockUpdateCredentials_Expecter) Exec ¶
func (_e *MockUpdateCredentials_Expecter) Exec(ctx interface{}, id interface{}, now interface{}, data interface{}) *MockUpdateCredentials_Exec_Call
Exec is a helper method to define mock.On call
- ctx context.Context
- id uuid.UUID
- now time.Time
- data *dao.UpdateCredentialsRequest