Documentation
¶
Index ¶
- type S3RepositoryMock
- func (_m *S3RepositoryMock) Create(ctx context.Context, tx repository.TxInterface, teamID uuid.UUID, name string, ...) (*ent.S3, error)
- func (_m *S3RepositoryMock) Delete(ctx context.Context, tx repository.TxInterface, id uuid.UUID) error
- func (_m *S3RepositoryMock) EXPECT() *S3RepositoryMock_Expecter
- func (_m *S3RepositoryMock) GetByID(ctx context.Context, id uuid.UUID) (*ent.S3, error)
- func (_m *S3RepositoryMock) GetByTeam(ctx context.Context, teamID uuid.UUID) ([]*ent.S3, error)
- func (_m *S3RepositoryMock) Update(ctx context.Context, id uuid.UUID, name string) (*ent.S3, error)
- type S3RepositoryMock_Create_Call
- type S3RepositoryMock_Delete_Call
- func (_c *S3RepositoryMock_Delete_Call) Return(_a0 error) *S3RepositoryMock_Delete_Call
- func (_c *S3RepositoryMock_Delete_Call) Run(run func(ctx context.Context, tx repository.TxInterface, id uuid.UUID)) *S3RepositoryMock_Delete_Call
- func (_c *S3RepositoryMock_Delete_Call) RunAndReturn(run func(context.Context, repository.TxInterface, uuid.UUID) error) *S3RepositoryMock_Delete_Call
- type S3RepositoryMock_Expecter
- func (_e *S3RepositoryMock_Expecter) Create(ctx interface{}, tx interface{}, teamID interface{}, name interface{}, ...) *S3RepositoryMock_Create_Call
- func (_e *S3RepositoryMock_Expecter) Delete(ctx interface{}, tx interface{}, id interface{}) *S3RepositoryMock_Delete_Call
- func (_e *S3RepositoryMock_Expecter) GetByID(ctx interface{}, id interface{}) *S3RepositoryMock_GetByID_Call
- func (_e *S3RepositoryMock_Expecter) GetByTeam(ctx interface{}, teamID interface{}) *S3RepositoryMock_GetByTeam_Call
- func (_e *S3RepositoryMock_Expecter) Update(ctx interface{}, id interface{}, name interface{}) *S3RepositoryMock_Update_Call
- type S3RepositoryMock_GetByID_Call
- func (_c *S3RepositoryMock_GetByID_Call) Return(_a0 *ent.S3, _a1 error) *S3RepositoryMock_GetByID_Call
- func (_c *S3RepositoryMock_GetByID_Call) Run(run func(ctx context.Context, id uuid.UUID)) *S3RepositoryMock_GetByID_Call
- func (_c *S3RepositoryMock_GetByID_Call) RunAndReturn(run func(context.Context, uuid.UUID) (*ent.S3, error)) *S3RepositoryMock_GetByID_Call
- type S3RepositoryMock_GetByTeam_Call
- func (_c *S3RepositoryMock_GetByTeam_Call) Return(_a0 []*ent.S3, _a1 error) *S3RepositoryMock_GetByTeam_Call
- func (_c *S3RepositoryMock_GetByTeam_Call) Run(run func(ctx context.Context, teamID uuid.UUID)) *S3RepositoryMock_GetByTeam_Call
- func (_c *S3RepositoryMock_GetByTeam_Call) RunAndReturn(run func(context.Context, uuid.UUID) ([]*ent.S3, error)) *S3RepositoryMock_GetByTeam_Call
- type S3RepositoryMock_Update_Call
- func (_c *S3RepositoryMock_Update_Call) Return(_a0 *ent.S3, _a1 error) *S3RepositoryMock_Update_Call
- func (_c *S3RepositoryMock_Update_Call) Run(run func(ctx context.Context, id uuid.UUID, name string)) *S3RepositoryMock_Update_Call
- func (_c *S3RepositoryMock_Update_Call) RunAndReturn(run func(context.Context, uuid.UUID, string) (*ent.S3, error)) *S3RepositoryMock_Update_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type S3RepositoryMock ¶
S3RepositoryMock is an autogenerated mock type for the S3RepositoryInterface type
func NewS3RepositoryMock ¶
func NewS3RepositoryMock(t interface {
mock.TestingT
Cleanup(func())
}) *S3RepositoryMock
NewS3RepositoryMock creates a new instance of S3RepositoryMock. 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 (*S3RepositoryMock) Create ¶
func (_m *S3RepositoryMock) Create(ctx context.Context, tx repository.TxInterface, teamID uuid.UUID, name string, endpoint string, region string, kubernetesSecret string) (*ent.S3, error)
Create provides a mock function with given fields: ctx, tx, teamID, name, endpoint, region, kubernetesSecret
func (*S3RepositoryMock) Delete ¶
func (_m *S3RepositoryMock) Delete(ctx context.Context, tx repository.TxInterface, id uuid.UUID) error
Delete provides a mock function with given fields: ctx, tx, id
func (*S3RepositoryMock) EXPECT ¶
func (_m *S3RepositoryMock) EXPECT() *S3RepositoryMock_Expecter
type S3RepositoryMock_Create_Call ¶
S3RepositoryMock_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'
func (*S3RepositoryMock_Create_Call) Return ¶
func (_c *S3RepositoryMock_Create_Call) Return(_a0 *ent.S3, _a1 error) *S3RepositoryMock_Create_Call
func (*S3RepositoryMock_Create_Call) Run ¶
func (_c *S3RepositoryMock_Create_Call) Run(run func(ctx context.Context, tx repository.TxInterface, teamID uuid.UUID, name string, endpoint string, region string, kubernetesSecret string)) *S3RepositoryMock_Create_Call
func (*S3RepositoryMock_Create_Call) RunAndReturn ¶
func (_c *S3RepositoryMock_Create_Call) RunAndReturn(run func(context.Context, repository.TxInterface, uuid.UUID, string, string, string, string) (*ent.S3, error)) *S3RepositoryMock_Create_Call
type S3RepositoryMock_Delete_Call ¶
S3RepositoryMock_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'
func (*S3RepositoryMock_Delete_Call) Return ¶
func (_c *S3RepositoryMock_Delete_Call) Return(_a0 error) *S3RepositoryMock_Delete_Call
func (*S3RepositoryMock_Delete_Call) Run ¶
func (_c *S3RepositoryMock_Delete_Call) Run(run func(ctx context.Context, tx repository.TxInterface, id uuid.UUID)) *S3RepositoryMock_Delete_Call
func (*S3RepositoryMock_Delete_Call) RunAndReturn ¶
func (_c *S3RepositoryMock_Delete_Call) RunAndReturn(run func(context.Context, repository.TxInterface, uuid.UUID) error) *S3RepositoryMock_Delete_Call
type S3RepositoryMock_Expecter ¶
type S3RepositoryMock_Expecter struct {
// contains filtered or unexported fields
}
func (*S3RepositoryMock_Expecter) Create ¶
func (_e *S3RepositoryMock_Expecter) Create(ctx interface{}, tx interface{}, teamID interface{}, name interface{}, endpoint interface{}, region interface{}, kubernetesSecret interface{}) *S3RepositoryMock_Create_Call
Create is a helper method to define mock.On call
- ctx context.Context
- tx repository.TxInterface
- teamID uuid.UUID
- name string
- endpoint string
- region string
- kubernetesSecret string
func (*S3RepositoryMock_Expecter) Delete ¶
func (_e *S3RepositoryMock_Expecter) Delete(ctx interface{}, tx interface{}, id interface{}) *S3RepositoryMock_Delete_Call
Delete is a helper method to define mock.On call
- ctx context.Context
- tx repository.TxInterface
- id uuid.UUID
func (*S3RepositoryMock_Expecter) GetByID ¶
func (_e *S3RepositoryMock_Expecter) GetByID(ctx interface{}, id interface{}) *S3RepositoryMock_GetByID_Call
GetByID is a helper method to define mock.On call
- ctx context.Context
- id uuid.UUID
func (*S3RepositoryMock_Expecter) GetByTeam ¶
func (_e *S3RepositoryMock_Expecter) GetByTeam(ctx interface{}, teamID interface{}) *S3RepositoryMock_GetByTeam_Call
GetByTeam is a helper method to define mock.On call
- ctx context.Context
- teamID uuid.UUID
func (*S3RepositoryMock_Expecter) Update ¶
func (_e *S3RepositoryMock_Expecter) Update(ctx interface{}, id interface{}, name interface{}) *S3RepositoryMock_Update_Call
Update is a helper method to define mock.On call
- ctx context.Context
- id uuid.UUID
- name string
type S3RepositoryMock_GetByID_Call ¶
S3RepositoryMock_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'
func (*S3RepositoryMock_GetByID_Call) Return ¶
func (_c *S3RepositoryMock_GetByID_Call) Return(_a0 *ent.S3, _a1 error) *S3RepositoryMock_GetByID_Call
func (*S3RepositoryMock_GetByID_Call) Run ¶
func (_c *S3RepositoryMock_GetByID_Call) Run(run func(ctx context.Context, id uuid.UUID)) *S3RepositoryMock_GetByID_Call
func (*S3RepositoryMock_GetByID_Call) RunAndReturn ¶
func (_c *S3RepositoryMock_GetByID_Call) RunAndReturn(run func(context.Context, uuid.UUID) (*ent.S3, error)) *S3RepositoryMock_GetByID_Call
type S3RepositoryMock_GetByTeam_Call ¶
S3RepositoryMock_GetByTeam_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByTeam'
func (*S3RepositoryMock_GetByTeam_Call) Return ¶
func (_c *S3RepositoryMock_GetByTeam_Call) Return(_a0 []*ent.S3, _a1 error) *S3RepositoryMock_GetByTeam_Call
func (*S3RepositoryMock_GetByTeam_Call) Run ¶
func (_c *S3RepositoryMock_GetByTeam_Call) Run(run func(ctx context.Context, teamID uuid.UUID)) *S3RepositoryMock_GetByTeam_Call
func (*S3RepositoryMock_GetByTeam_Call) RunAndReturn ¶
func (_c *S3RepositoryMock_GetByTeam_Call) RunAndReturn(run func(context.Context, uuid.UUID) ([]*ent.S3, error)) *S3RepositoryMock_GetByTeam_Call
type S3RepositoryMock_Update_Call ¶
S3RepositoryMock_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'
func (*S3RepositoryMock_Update_Call) Return ¶
func (_c *S3RepositoryMock_Update_Call) Return(_a0 *ent.S3, _a1 error) *S3RepositoryMock_Update_Call
func (*S3RepositoryMock_Update_Call) Run ¶
func (_c *S3RepositoryMock_Update_Call) Run(run func(ctx context.Context, id uuid.UUID, name string)) *S3RepositoryMock_Update_Call
func (*S3RepositoryMock_Update_Call) RunAndReturn ¶
func (_c *S3RepositoryMock_Update_Call) RunAndReturn(run func(context.Context, uuid.UUID, string) (*ent.S3, error)) *S3RepositoryMock_Update_Call