mocks_repository_service

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: 6 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServiceRepositoryMock

type ServiceRepositoryMock struct {
	mock.Mock
}

ServiceRepositoryMock is an autogenerated mock type for the ServiceRepositoryInterface type

func NewServiceRepositoryMock

func NewServiceRepositoryMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *ServiceRepositoryMock

NewServiceRepositoryMock creates a new instance of ServiceRepositoryMock. 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 (*ServiceRepositoryMock) CountDomainCollisons

func (_m *ServiceRepositoryMock) CountDomainCollisons(ctx context.Context, tx repository.TxInterface, domain string) (int, error)

CountDomainCollisons provides a mock function with given fields: ctx, tx, domain

func (*ServiceRepositoryMock) Create

Create provides a mock function with given fields: ctx, tx, input

func (*ServiceRepositoryMock) CreateConfig

CreateConfig provides a mock function with given fields: ctx, tx, input

func (*ServiceRepositoryMock) Delete

func (_m *ServiceRepositoryMock) Delete(ctx context.Context, tx repository.TxInterface, serviceID uuid.UUID) error

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

func (*ServiceRepositoryMock) EXPECT

func (*ServiceRepositoryMock) GetByEnvironmentID

func (_m *ServiceRepositoryMock) GetByEnvironmentID(ctx context.Context, environmentID uuid.UUID, withLatestDeployment bool) ([]*ent.Service, error)

GetByEnvironmentID provides a mock function with given fields: ctx, environmentID, withLatestDeployment

func (*ServiceRepositoryMock) GetByID

func (_m *ServiceRepositoryMock) GetByID(ctx context.Context, serviceID uuid.UUID) (*ent.Service, error)

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

func (*ServiceRepositoryMock) GetByInstallationIDAndRepoName

func (_m *ServiceRepositoryMock) GetByInstallationIDAndRepoName(ctx context.Context, installationID int64, repoName string) ([]*ent.Service, error)

GetByInstallationIDAndRepoName provides a mock function with given fields: ctx, installationID, repoName

func (*ServiceRepositoryMock) GetByName

func (_m *ServiceRepositoryMock) GetByName(ctx context.Context, name string) (*ent.Service, error)

GetByName provides a mock function with given fields: ctx, name

func (*ServiceRepositoryMock) GetDatabaseType

func (_m *ServiceRepositoryMock) GetDatabaseType(ctx context.Context, serviceID uuid.UUID) (string, error)

GetDatabaseType provides a mock function with given fields: ctx, serviceID

func (*ServiceRepositoryMock) GetDeploymentNamespace

func (_m *ServiceRepositoryMock) GetDeploymentNamespace(ctx context.Context, serviceID uuid.UUID) (string, error)

GetDeploymentNamespace provides a mock function with given fields: ctx, serviceID

func (*ServiceRepositoryMock) GetGithubPrivateKey

func (_m *ServiceRepositoryMock) GetGithubPrivateKey(ctx context.Context, serviceID uuid.UUID) (string, error)

GetGithubPrivateKey provides a mock function with given fields: ctx, serviceID

func (*ServiceRepositoryMock) NeedsDeployment

NeedsDeployment provides a mock function with given fields: ctx, service

func (*ServiceRepositoryMock) SetCurrentDeployment

func (_m *ServiceRepositoryMock) SetCurrentDeployment(ctx context.Context, tx repository.TxInterface, serviceID uuid.UUID, deploymentID uuid.UUID) error

SetCurrentDeployment provides a mock function with given fields: ctx, tx, serviceID, deploymentID

func (*ServiceRepositoryMock) SummarizeServices

func (_m *ServiceRepositoryMock) SummarizeServices(ctx context.Context, environmentIDs []uuid.UUID) (map[uuid.UUID]int, map[uuid.UUID][]string, error)

SummarizeServices provides a mock function with given fields: ctx, environmentIDs

func (*ServiceRepositoryMock) Update

func (_m *ServiceRepositoryMock) Update(ctx context.Context, tx repository.TxInterface, serviceID uuid.UUID, name *string, description *string) error

Update provides a mock function with given fields: ctx, tx, serviceID, name, description

func (*ServiceRepositoryMock) UpdateConfig

UpdateConfig provides a mock function with given fields: ctx, tx, input

type ServiceRepositoryMock_CountDomainCollisons_Call

type ServiceRepositoryMock_CountDomainCollisons_Call struct {
	*mock.Call
}

ServiceRepositoryMock_CountDomainCollisons_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CountDomainCollisons'

func (*ServiceRepositoryMock_CountDomainCollisons_Call) Return

func (*ServiceRepositoryMock_CountDomainCollisons_Call) Run

func (*ServiceRepositoryMock_CountDomainCollisons_Call) RunAndReturn

type ServiceRepositoryMock_CreateConfig_Call

type ServiceRepositoryMock_CreateConfig_Call struct {
	*mock.Call
}

ServiceRepositoryMock_CreateConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateConfig'

func (*ServiceRepositoryMock_CreateConfig_Call) Return

func (*ServiceRepositoryMock_CreateConfig_Call) Run

type ServiceRepositoryMock_Create_Call

type ServiceRepositoryMock_Create_Call struct {
	*mock.Call
}

ServiceRepositoryMock_Create_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Create'

func (*ServiceRepositoryMock_Create_Call) Return

func (*ServiceRepositoryMock_Create_Call) Run

type ServiceRepositoryMock_Delete_Call

type ServiceRepositoryMock_Delete_Call struct {
	*mock.Call
}

ServiceRepositoryMock_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*ServiceRepositoryMock_Delete_Call) Return

func (*ServiceRepositoryMock_Delete_Call) Run

func (*ServiceRepositoryMock_Delete_Call) RunAndReturn

type ServiceRepositoryMock_Expecter

type ServiceRepositoryMock_Expecter struct {
	// contains filtered or unexported fields
}

func (*ServiceRepositoryMock_Expecter) CountDomainCollisons

func (_e *ServiceRepositoryMock_Expecter) CountDomainCollisons(ctx interface{}, tx interface{}, domain interface{}) *ServiceRepositoryMock_CountDomainCollisons_Call

CountDomainCollisons is a helper method to define mock.On call

  • ctx context.Context
  • tx repository.TxInterface
  • domain string

func (*ServiceRepositoryMock_Expecter) Create

func (_e *ServiceRepositoryMock_Expecter) Create(ctx interface{}, tx interface{}, input interface{}) *ServiceRepositoryMock_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • tx repository.TxInterface
  • input *service_repo.CreateServiceInput

func (*ServiceRepositoryMock_Expecter) CreateConfig

func (_e *ServiceRepositoryMock_Expecter) CreateConfig(ctx interface{}, tx interface{}, input interface{}) *ServiceRepositoryMock_CreateConfig_Call

CreateConfig is a helper method to define mock.On call

  • ctx context.Context
  • tx repository.TxInterface
  • input *service_repo.MutateConfigInput

func (*ServiceRepositoryMock_Expecter) Delete

func (_e *ServiceRepositoryMock_Expecter) Delete(ctx interface{}, tx interface{}, serviceID interface{}) *ServiceRepositoryMock_Delete_Call

Delete is a helper method to define mock.On call

  • ctx context.Context
  • tx repository.TxInterface
  • serviceID uuid.UUID

func (*ServiceRepositoryMock_Expecter) GetByEnvironmentID

func (_e *ServiceRepositoryMock_Expecter) GetByEnvironmentID(ctx interface{}, environmentID interface{}, withLatestDeployment interface{}) *ServiceRepositoryMock_GetByEnvironmentID_Call

GetByEnvironmentID is a helper method to define mock.On call

  • ctx context.Context
  • environmentID uuid.UUID
  • withLatestDeployment bool

func (*ServiceRepositoryMock_Expecter) GetByID

func (_e *ServiceRepositoryMock_Expecter) GetByID(ctx interface{}, serviceID interface{}) *ServiceRepositoryMock_GetByID_Call

GetByID is a helper method to define mock.On call

  • ctx context.Context
  • serviceID uuid.UUID

func (*ServiceRepositoryMock_Expecter) GetByInstallationIDAndRepoName

func (_e *ServiceRepositoryMock_Expecter) GetByInstallationIDAndRepoName(ctx interface{}, installationID interface{}, repoName interface{}) *ServiceRepositoryMock_GetByInstallationIDAndRepoName_Call

GetByInstallationIDAndRepoName is a helper method to define mock.On call

  • ctx context.Context
  • installationID int64
  • repoName string

func (*ServiceRepositoryMock_Expecter) GetByName

func (_e *ServiceRepositoryMock_Expecter) GetByName(ctx interface{}, name interface{}) *ServiceRepositoryMock_GetByName_Call

GetByName is a helper method to define mock.On call

  • ctx context.Context
  • name string

func (*ServiceRepositoryMock_Expecter) GetDatabaseType

func (_e *ServiceRepositoryMock_Expecter) GetDatabaseType(ctx interface{}, serviceID interface{}) *ServiceRepositoryMock_GetDatabaseType_Call

GetDatabaseType is a helper method to define mock.On call

  • ctx context.Context
  • serviceID uuid.UUID

func (*ServiceRepositoryMock_Expecter) GetDeploymentNamespace

func (_e *ServiceRepositoryMock_Expecter) GetDeploymentNamespace(ctx interface{}, serviceID interface{}) *ServiceRepositoryMock_GetDeploymentNamespace_Call

GetDeploymentNamespace is a helper method to define mock.On call

  • ctx context.Context
  • serviceID uuid.UUID

func (*ServiceRepositoryMock_Expecter) GetGithubPrivateKey

func (_e *ServiceRepositoryMock_Expecter) GetGithubPrivateKey(ctx interface{}, serviceID interface{}) *ServiceRepositoryMock_GetGithubPrivateKey_Call

GetGithubPrivateKey is a helper method to define mock.On call

  • ctx context.Context
  • serviceID uuid.UUID

func (*ServiceRepositoryMock_Expecter) NeedsDeployment

func (_e *ServiceRepositoryMock_Expecter) NeedsDeployment(ctx interface{}, service interface{}) *ServiceRepositoryMock_NeedsDeployment_Call

NeedsDeployment is a helper method to define mock.On call

  • ctx context.Context
  • service *ent.Service

func (*ServiceRepositoryMock_Expecter) SetCurrentDeployment

func (_e *ServiceRepositoryMock_Expecter) SetCurrentDeployment(ctx interface{}, tx interface{}, serviceID interface{}, deploymentID interface{}) *ServiceRepositoryMock_SetCurrentDeployment_Call

SetCurrentDeployment is a helper method to define mock.On call

  • ctx context.Context
  • tx repository.TxInterface
  • serviceID uuid.UUID
  • deploymentID uuid.UUID

func (*ServiceRepositoryMock_Expecter) SummarizeServices

func (_e *ServiceRepositoryMock_Expecter) SummarizeServices(ctx interface{}, environmentIDs interface{}) *ServiceRepositoryMock_SummarizeServices_Call

SummarizeServices is a helper method to define mock.On call

  • ctx context.Context
  • environmentIDs []uuid.UUID

func (*ServiceRepositoryMock_Expecter) Update

func (_e *ServiceRepositoryMock_Expecter) Update(ctx interface{}, tx interface{}, serviceID interface{}, name interface{}, description interface{}) *ServiceRepositoryMock_Update_Call

Update is a helper method to define mock.On call

  • ctx context.Context
  • tx repository.TxInterface
  • serviceID uuid.UUID
  • name *string
  • description *string

func (*ServiceRepositoryMock_Expecter) UpdateConfig

func (_e *ServiceRepositoryMock_Expecter) UpdateConfig(ctx interface{}, tx interface{}, input interface{}) *ServiceRepositoryMock_UpdateConfig_Call

UpdateConfig is a helper method to define mock.On call

  • ctx context.Context
  • tx repository.TxInterface
  • input *service_repo.MutateConfigInput

type ServiceRepositoryMock_GetByEnvironmentID_Call

type ServiceRepositoryMock_GetByEnvironmentID_Call struct {
	*mock.Call
}

ServiceRepositoryMock_GetByEnvironmentID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByEnvironmentID'

func (*ServiceRepositoryMock_GetByEnvironmentID_Call) Return

func (*ServiceRepositoryMock_GetByEnvironmentID_Call) Run

func (*ServiceRepositoryMock_GetByEnvironmentID_Call) RunAndReturn

type ServiceRepositoryMock_GetByID_Call

type ServiceRepositoryMock_GetByID_Call struct {
	*mock.Call
}

ServiceRepositoryMock_GetByID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByID'

func (*ServiceRepositoryMock_GetByID_Call) Return

func (*ServiceRepositoryMock_GetByID_Call) Run

func (*ServiceRepositoryMock_GetByID_Call) RunAndReturn

type ServiceRepositoryMock_GetByInstallationIDAndRepoName_Call

type ServiceRepositoryMock_GetByInstallationIDAndRepoName_Call struct {
	*mock.Call
}

ServiceRepositoryMock_GetByInstallationIDAndRepoName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByInstallationIDAndRepoName'

func (*ServiceRepositoryMock_GetByInstallationIDAndRepoName_Call) Return

func (*ServiceRepositoryMock_GetByInstallationIDAndRepoName_Call) Run

func (*ServiceRepositoryMock_GetByInstallationIDAndRepoName_Call) RunAndReturn

type ServiceRepositoryMock_GetByName_Call

type ServiceRepositoryMock_GetByName_Call struct {
	*mock.Call
}

ServiceRepositoryMock_GetByName_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetByName'

func (*ServiceRepositoryMock_GetByName_Call) Return

func (*ServiceRepositoryMock_GetByName_Call) Run

func (*ServiceRepositoryMock_GetByName_Call) RunAndReturn

type ServiceRepositoryMock_GetDatabaseType_Call

type ServiceRepositoryMock_GetDatabaseType_Call struct {
	*mock.Call
}

ServiceRepositoryMock_GetDatabaseType_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDatabaseType'

func (*ServiceRepositoryMock_GetDatabaseType_Call) Return

func (*ServiceRepositoryMock_GetDatabaseType_Call) Run

func (*ServiceRepositoryMock_GetDatabaseType_Call) RunAndReturn

type ServiceRepositoryMock_GetDeploymentNamespace_Call

type ServiceRepositoryMock_GetDeploymentNamespace_Call struct {
	*mock.Call
}

ServiceRepositoryMock_GetDeploymentNamespace_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetDeploymentNamespace'

func (*ServiceRepositoryMock_GetDeploymentNamespace_Call) Return

func (*ServiceRepositoryMock_GetDeploymentNamespace_Call) Run

func (*ServiceRepositoryMock_GetDeploymentNamespace_Call) RunAndReturn

type ServiceRepositoryMock_GetGithubPrivateKey_Call

type ServiceRepositoryMock_GetGithubPrivateKey_Call struct {
	*mock.Call
}

ServiceRepositoryMock_GetGithubPrivateKey_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetGithubPrivateKey'

func (*ServiceRepositoryMock_GetGithubPrivateKey_Call) Return

func (*ServiceRepositoryMock_GetGithubPrivateKey_Call) Run

func (*ServiceRepositoryMock_GetGithubPrivateKey_Call) RunAndReturn

type ServiceRepositoryMock_NeedsDeployment_Call

type ServiceRepositoryMock_NeedsDeployment_Call struct {
	*mock.Call
}

ServiceRepositoryMock_NeedsDeployment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'NeedsDeployment'

func (*ServiceRepositoryMock_NeedsDeployment_Call) Return

func (*ServiceRepositoryMock_NeedsDeployment_Call) Run

type ServiceRepositoryMock_SetCurrentDeployment_Call

type ServiceRepositoryMock_SetCurrentDeployment_Call struct {
	*mock.Call
}

ServiceRepositoryMock_SetCurrentDeployment_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetCurrentDeployment'

func (*ServiceRepositoryMock_SetCurrentDeployment_Call) Return

func (*ServiceRepositoryMock_SetCurrentDeployment_Call) Run

type ServiceRepositoryMock_SummarizeServices_Call

type ServiceRepositoryMock_SummarizeServices_Call struct {
	*mock.Call
}

ServiceRepositoryMock_SummarizeServices_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SummarizeServices'

func (*ServiceRepositoryMock_SummarizeServices_Call) Return

func (*ServiceRepositoryMock_SummarizeServices_Call) Run

func (*ServiceRepositoryMock_SummarizeServices_Call) RunAndReturn

type ServiceRepositoryMock_UpdateConfig_Call

type ServiceRepositoryMock_UpdateConfig_Call struct {
	*mock.Call
}

ServiceRepositoryMock_UpdateConfig_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpdateConfig'

func (*ServiceRepositoryMock_UpdateConfig_Call) Return

func (*ServiceRepositoryMock_UpdateConfig_Call) Run

type ServiceRepositoryMock_Update_Call

type ServiceRepositoryMock_Update_Call struct {
	*mock.Call
}

ServiceRepositoryMock_Update_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Update'

func (*ServiceRepositoryMock_Update_Call) Return

func (*ServiceRepositoryMock_Update_Call) Run

func (*ServiceRepositoryMock_Update_Call) RunAndReturn

Jump to

Keyboard shortcuts

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