mocks_repository_s3

package
v0.0.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type S3RepositoryMock

type S3RepositoryMock struct {
	mock.Mock
}

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

Delete provides a mock function with given fields: ctx, tx, id

func (*S3RepositoryMock) EXPECT

func (*S3RepositoryMock) GetByID

func (_m *S3RepositoryMock) GetByID(ctx context.Context, id uuid.UUID) (*ent.S3, error)

GetByID provides a mock function with given fields: ctx, id

func (*S3RepositoryMock) GetByTeam

func (_m *S3RepositoryMock) GetByTeam(ctx context.Context, teamID uuid.UUID) ([]*ent.S3, error)

GetByTeam provides a mock function with given fields: ctx, teamID

func (*S3RepositoryMock) Update

func (_m *S3RepositoryMock) Update(ctx context.Context, id uuid.UUID, name string) (*ent.S3, error)

Update provides a mock function with given fields: ctx, id, name

type S3RepositoryMock_Create_Call

type S3RepositoryMock_Create_Call struct {
	*mock.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 (*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

type S3RepositoryMock_Delete_Call

type S3RepositoryMock_Delete_Call struct {
	*mock.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 (*S3RepositoryMock_Delete_Call) Run

func (*S3RepositoryMock_Delete_Call) RunAndReturn

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

type S3RepositoryMock_GetByID_Call struct {
	*mock.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 (*S3RepositoryMock_GetByID_Call) Run

func (*S3RepositoryMock_GetByID_Call) RunAndReturn

type S3RepositoryMock_GetByTeam_Call

type S3RepositoryMock_GetByTeam_Call struct {
	*mock.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 (*S3RepositoryMock_GetByTeam_Call) Run

func (*S3RepositoryMock_GetByTeam_Call) RunAndReturn

type S3RepositoryMock_Update_Call

type S3RepositoryMock_Update_Call struct {
	*mock.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 (*S3RepositoryMock_Update_Call) Run

func (*S3RepositoryMock_Update_Call) RunAndReturn

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL