mocks_repository_deployment

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2025 License: MIT Imports: 8 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 DeploymentRepositoryMock

type DeploymentRepositoryMock struct {
	mock.Mock
}

DeploymentRepositoryMock is an autogenerated mock type for the DeploymentRepositoryInterface type

func NewDeploymentRepositoryMock

func NewDeploymentRepositoryMock(t interface {
	mock.TestingT
	Cleanup(func())
}) *DeploymentRepositoryMock

NewDeploymentRepositoryMock creates a new instance of DeploymentRepositoryMock. 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 (*DeploymentRepositoryMock) AssignKubernetesJobName

func (_m *DeploymentRepositoryMock) AssignKubernetesJobName(ctx context.Context, deploymentID uuid.UUID, jobName string) (*ent.Deployment, error)

AssignKubernetesJobName provides a mock function with given fields: ctx, deploymentID, jobName

func (*DeploymentRepositoryMock) AttachDeploymentMetadata

func (_m *DeploymentRepositoryMock) AttachDeploymentMetadata(ctx context.Context, tx repository.TxInterface, deploymentID uuid.UUID, imageName string, resourceDefinition *v1.Service) (*ent.Deployment, error)

AttachDeploymentMetadata provides a mock function with given fields: ctx, tx, deploymentID, imageName, resourceDefinition

func (*DeploymentRepositoryMock) Create

func (_m *DeploymentRepositoryMock) Create(ctx context.Context, tx repository.TxInterface, serviceID uuid.UUID, CommitSHA string, CommitMessage string, committer *schema.GitCommitter, source schema.DeploymentSource) (*ent.Deployment, error)

Create provides a mock function with given fields: ctx, tx, serviceID, CommitSHA, CommitMessage, committer, source

func (*DeploymentRepositoryMock) CreateCopy

CreateCopy provides a mock function with given fields: ctx, tx, deployment

func (*DeploymentRepositoryMock) EXPECT

func (*DeploymentRepositoryMock) ExistsInEnvironment

func (_m *DeploymentRepositoryMock) ExistsInEnvironment(ctx context.Context, deploymentID uuid.UUID, environmentID uuid.UUID) (bool, error)

ExistsInEnvironment provides a mock function with given fields: ctx, deploymentID, environmentID

func (*DeploymentRepositoryMock) ExistsInProject

func (_m *DeploymentRepositoryMock) ExistsInProject(ctx context.Context, deploymentID uuid.UUID, projectID uuid.UUID) (bool, error)

ExistsInProject provides a mock function with given fields: ctx, deploymentID, projectID

func (*DeploymentRepositoryMock) ExistsInTeam

func (_m *DeploymentRepositoryMock) ExistsInTeam(ctx context.Context, deploymentID uuid.UUID, teamID uuid.UUID) (bool, error)

ExistsInTeam provides a mock function with given fields: ctx, deploymentID, teamID

func (*DeploymentRepositoryMock) GetByID

func (_m *DeploymentRepositoryMock) GetByID(ctx context.Context, deploymentID uuid.UUID) (*ent.Deployment, error)

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

func (*DeploymentRepositoryMock) GetByServiceIDPaginated

func (_m *DeploymentRepositoryMock) GetByServiceIDPaginated(ctx context.Context, serviceID uuid.UUID, perPage int, cursor *time.Time, statusFilter []schema.DeploymentStatus) ([]*ent.Deployment, *time.Time, error)

GetByServiceIDPaginated provides a mock function with given fields: ctx, serviceID, perPage, cursor, statusFilter

func (*DeploymentRepositoryMock) GetJobsByStatus

func (_m *DeploymentRepositoryMock) GetJobsByStatus(ctx context.Context, status schema.DeploymentStatus) ([]*ent.Deployment, error)

GetJobsByStatus provides a mock function with given fields: ctx, status

func (*DeploymentRepositoryMock) GetLastSuccessfulDeployment

func (_m *DeploymentRepositoryMock) GetLastSuccessfulDeployment(ctx context.Context, serviceID uuid.UUID) (*ent.Deployment, error)

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

func (*DeploymentRepositoryMock) MarkAsCancelled

func (_m *DeploymentRepositoryMock) MarkAsCancelled(ctx context.Context, jobIDs []uuid.UUID) error

MarkAsCancelled provides a mock function with given fields: ctx, jobIDs

func (*DeploymentRepositoryMock) MarkCancelledExcept

func (_m *DeploymentRepositoryMock) MarkCancelledExcept(ctx context.Context, serviceID uuid.UUID, deploymentID uuid.UUID) error

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

func (*DeploymentRepositoryMock) MarkFailed

func (_m *DeploymentRepositoryMock) MarkFailed(ctx context.Context, tx repository.TxInterface, deploymentID uuid.UUID, message string, failedAt time.Time) (*ent.Deployment, error)

MarkFailed provides a mock function with given fields: ctx, tx, deploymentID, message, failedAt

func (*DeploymentRepositoryMock) MarkStarted

func (_m *DeploymentRepositoryMock) MarkStarted(ctx context.Context, tx repository.TxInterface, deploymentID uuid.UUID, startedAt time.Time) (*ent.Deployment, error)

MarkStarted provides a mock function with given fields: ctx, tx, deploymentID, startedAt

func (*DeploymentRepositoryMock) MarkSucceeded

func (_m *DeploymentRepositoryMock) MarkSucceeded(ctx context.Context, tx repository.TxInterface, deploymentID uuid.UUID, completedAt time.Time) (*ent.Deployment, error)

MarkSucceeded provides a mock function with given fields: ctx, tx, deploymentID, completedAt

func (*DeploymentRepositoryMock) SetKubernetesJobStatus

func (_m *DeploymentRepositoryMock) SetKubernetesJobStatus(ctx context.Context, deploymentID uuid.UUID, status string) (*ent.Deployment, error)

SetKubernetesJobStatus provides a mock function with given fields: ctx, deploymentID, status

type DeploymentRepositoryMock_AssignKubernetesJobName_Call

type DeploymentRepositoryMock_AssignKubernetesJobName_Call struct {
	*mock.Call
}

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

func (*DeploymentRepositoryMock_AssignKubernetesJobName_Call) Return

func (*DeploymentRepositoryMock_AssignKubernetesJobName_Call) Run

func (*DeploymentRepositoryMock_AssignKubernetesJobName_Call) RunAndReturn

type DeploymentRepositoryMock_AttachDeploymentMetadata_Call

type DeploymentRepositoryMock_AttachDeploymentMetadata_Call struct {
	*mock.Call
}

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

func (*DeploymentRepositoryMock_AttachDeploymentMetadata_Call) Return

func (*DeploymentRepositoryMock_AttachDeploymentMetadata_Call) Run

type DeploymentRepositoryMock_CreateCopy_Call

type DeploymentRepositoryMock_CreateCopy_Call struct {
	*mock.Call
}

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

func (*DeploymentRepositoryMock_CreateCopy_Call) Return

func (*DeploymentRepositoryMock_CreateCopy_Call) Run

type DeploymentRepositoryMock_Create_Call

type DeploymentRepositoryMock_Create_Call struct {
	*mock.Call
}

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

func (*DeploymentRepositoryMock_Create_Call) Return

func (*DeploymentRepositoryMock_Create_Call) Run

type DeploymentRepositoryMock_ExistsInEnvironment_Call

type DeploymentRepositoryMock_ExistsInEnvironment_Call struct {
	*mock.Call
}

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

func (*DeploymentRepositoryMock_ExistsInEnvironment_Call) Return

func (*DeploymentRepositoryMock_ExistsInEnvironment_Call) Run

func (*DeploymentRepositoryMock_ExistsInEnvironment_Call) RunAndReturn

type DeploymentRepositoryMock_ExistsInProject_Call

type DeploymentRepositoryMock_ExistsInProject_Call struct {
	*mock.Call
}

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

func (*DeploymentRepositoryMock_ExistsInProject_Call) Return

func (*DeploymentRepositoryMock_ExistsInProject_Call) Run

func (*DeploymentRepositoryMock_ExistsInProject_Call) RunAndReturn

type DeploymentRepositoryMock_ExistsInTeam_Call

type DeploymentRepositoryMock_ExistsInTeam_Call struct {
	*mock.Call
}

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

func (*DeploymentRepositoryMock_ExistsInTeam_Call) Return

func (*DeploymentRepositoryMock_ExistsInTeam_Call) Run

func (*DeploymentRepositoryMock_ExistsInTeam_Call) RunAndReturn

type DeploymentRepositoryMock_Expecter

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

func (*DeploymentRepositoryMock_Expecter) AssignKubernetesJobName

func (_e *DeploymentRepositoryMock_Expecter) AssignKubernetesJobName(ctx interface{}, deploymentID interface{}, jobName interface{}) *DeploymentRepositoryMock_AssignKubernetesJobName_Call

AssignKubernetesJobName is a helper method to define mock.On call

  • ctx context.Context
  • deploymentID uuid.UUID
  • jobName string

func (*DeploymentRepositoryMock_Expecter) AttachDeploymentMetadata

func (_e *DeploymentRepositoryMock_Expecter) AttachDeploymentMetadata(ctx interface{}, tx interface{}, deploymentID interface{}, imageName interface{}, resourceDefinition interface{}) *DeploymentRepositoryMock_AttachDeploymentMetadata_Call

AttachDeploymentMetadata is a helper method to define mock.On call

  • ctx context.Context
  • tx repository.TxInterface
  • deploymentID uuid.UUID
  • imageName string
  • resourceDefinition *v1.Service

func (*DeploymentRepositoryMock_Expecter) Create

func (_e *DeploymentRepositoryMock_Expecter) Create(ctx interface{}, tx interface{}, serviceID interface{}, CommitSHA interface{}, CommitMessage interface{}, committer interface{}, source interface{}) *DeploymentRepositoryMock_Create_Call

Create is a helper method to define mock.On call

  • ctx context.Context
  • tx repository.TxInterface
  • serviceID uuid.UUID
  • CommitSHA string
  • CommitMessage string
  • committer *schema.GitCommitter
  • source schema.DeploymentSource

func (*DeploymentRepositoryMock_Expecter) CreateCopy

func (_e *DeploymentRepositoryMock_Expecter) CreateCopy(ctx interface{}, tx interface{}, deployment interface{}) *DeploymentRepositoryMock_CreateCopy_Call

CreateCopy is a helper method to define mock.On call

  • ctx context.Context
  • tx repository.TxInterface
  • deployment *ent.Deployment

func (*DeploymentRepositoryMock_Expecter) ExistsInEnvironment

func (_e *DeploymentRepositoryMock_Expecter) ExistsInEnvironment(ctx interface{}, deploymentID interface{}, environmentID interface{}) *DeploymentRepositoryMock_ExistsInEnvironment_Call

ExistsInEnvironment is a helper method to define mock.On call

  • ctx context.Context
  • deploymentID uuid.UUID
  • environmentID uuid.UUID

func (*DeploymentRepositoryMock_Expecter) ExistsInProject

func (_e *DeploymentRepositoryMock_Expecter) ExistsInProject(ctx interface{}, deploymentID interface{}, projectID interface{}) *DeploymentRepositoryMock_ExistsInProject_Call

ExistsInProject is a helper method to define mock.On call

  • ctx context.Context
  • deploymentID uuid.UUID
  • projectID uuid.UUID

func (*DeploymentRepositoryMock_Expecter) ExistsInTeam

func (_e *DeploymentRepositoryMock_Expecter) ExistsInTeam(ctx interface{}, deploymentID interface{}, teamID interface{}) *DeploymentRepositoryMock_ExistsInTeam_Call

ExistsInTeam is a helper method to define mock.On call

  • ctx context.Context
  • deploymentID uuid.UUID
  • teamID uuid.UUID

func (*DeploymentRepositoryMock_Expecter) GetByID

func (_e *DeploymentRepositoryMock_Expecter) GetByID(ctx interface{}, deploymentID interface{}) *DeploymentRepositoryMock_GetByID_Call

GetByID is a helper method to define mock.On call

  • ctx context.Context
  • deploymentID uuid.UUID

func (*DeploymentRepositoryMock_Expecter) GetByServiceIDPaginated

func (_e *DeploymentRepositoryMock_Expecter) GetByServiceIDPaginated(ctx interface{}, serviceID interface{}, perPage interface{}, cursor interface{}, statusFilter interface{}) *DeploymentRepositoryMock_GetByServiceIDPaginated_Call

GetByServiceIDPaginated is a helper method to define mock.On call

  • ctx context.Context
  • serviceID uuid.UUID
  • perPage int
  • cursor *time.Time
  • statusFilter []schema.DeploymentStatus

func (*DeploymentRepositoryMock_Expecter) GetJobsByStatus

func (_e *DeploymentRepositoryMock_Expecter) GetJobsByStatus(ctx interface{}, status interface{}) *DeploymentRepositoryMock_GetJobsByStatus_Call

GetJobsByStatus is a helper method to define mock.On call

  • ctx context.Context
  • status schema.DeploymentStatus

func (*DeploymentRepositoryMock_Expecter) GetLastSuccessfulDeployment

func (_e *DeploymentRepositoryMock_Expecter) GetLastSuccessfulDeployment(ctx interface{}, serviceID interface{}) *DeploymentRepositoryMock_GetLastSuccessfulDeployment_Call

GetLastSuccessfulDeployment is a helper method to define mock.On call

  • ctx context.Context
  • serviceID uuid.UUID

func (*DeploymentRepositoryMock_Expecter) MarkAsCancelled

func (_e *DeploymentRepositoryMock_Expecter) MarkAsCancelled(ctx interface{}, jobIDs interface{}) *DeploymentRepositoryMock_MarkAsCancelled_Call

MarkAsCancelled is a helper method to define mock.On call

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

func (*DeploymentRepositoryMock_Expecter) MarkCancelledExcept

func (_e *DeploymentRepositoryMock_Expecter) MarkCancelledExcept(ctx interface{}, serviceID interface{}, deploymentID interface{}) *DeploymentRepositoryMock_MarkCancelledExcept_Call

MarkCancelledExcept is a helper method to define mock.On call

  • ctx context.Context
  • serviceID uuid.UUID
  • deploymentID uuid.UUID

func (*DeploymentRepositoryMock_Expecter) MarkFailed

func (_e *DeploymentRepositoryMock_Expecter) MarkFailed(ctx interface{}, tx interface{}, deploymentID interface{}, message interface{}, failedAt interface{}) *DeploymentRepositoryMock_MarkFailed_Call

MarkFailed is a helper method to define mock.On call

  • ctx context.Context
  • tx repository.TxInterface
  • deploymentID uuid.UUID
  • message string
  • failedAt time.Time

func (*DeploymentRepositoryMock_Expecter) MarkStarted

func (_e *DeploymentRepositoryMock_Expecter) MarkStarted(ctx interface{}, tx interface{}, deploymentID interface{}, startedAt interface{}) *DeploymentRepositoryMock_MarkStarted_Call

MarkStarted is a helper method to define mock.On call

  • ctx context.Context
  • tx repository.TxInterface
  • deploymentID uuid.UUID
  • startedAt time.Time

func (*DeploymentRepositoryMock_Expecter) MarkSucceeded

func (_e *DeploymentRepositoryMock_Expecter) MarkSucceeded(ctx interface{}, tx interface{}, deploymentID interface{}, completedAt interface{}) *DeploymentRepositoryMock_MarkSucceeded_Call

MarkSucceeded is a helper method to define mock.On call

  • ctx context.Context
  • tx repository.TxInterface
  • deploymentID uuid.UUID
  • completedAt time.Time

func (*DeploymentRepositoryMock_Expecter) SetKubernetesJobStatus

func (_e *DeploymentRepositoryMock_Expecter) SetKubernetesJobStatus(ctx interface{}, deploymentID interface{}, status interface{}) *DeploymentRepositoryMock_SetKubernetesJobStatus_Call

SetKubernetesJobStatus is a helper method to define mock.On call

  • ctx context.Context
  • deploymentID uuid.UUID
  • status string

type DeploymentRepositoryMock_GetByID_Call

type DeploymentRepositoryMock_GetByID_Call struct {
	*mock.Call
}

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

func (*DeploymentRepositoryMock_GetByID_Call) Return

func (*DeploymentRepositoryMock_GetByID_Call) Run

func (*DeploymentRepositoryMock_GetByID_Call) RunAndReturn

type DeploymentRepositoryMock_GetByServiceIDPaginated_Call

type DeploymentRepositoryMock_GetByServiceIDPaginated_Call struct {
	*mock.Call
}

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

func (*DeploymentRepositoryMock_GetByServiceIDPaginated_Call) Return

func (*DeploymentRepositoryMock_GetByServiceIDPaginated_Call) Run

type DeploymentRepositoryMock_GetJobsByStatus_Call

type DeploymentRepositoryMock_GetJobsByStatus_Call struct {
	*mock.Call
}

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

func (*DeploymentRepositoryMock_GetJobsByStatus_Call) Return

func (*DeploymentRepositoryMock_GetJobsByStatus_Call) Run

func (*DeploymentRepositoryMock_GetJobsByStatus_Call) RunAndReturn

type DeploymentRepositoryMock_GetLastSuccessfulDeployment_Call

type DeploymentRepositoryMock_GetLastSuccessfulDeployment_Call struct {
	*mock.Call
}

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

func (*DeploymentRepositoryMock_GetLastSuccessfulDeployment_Call) Return

func (*DeploymentRepositoryMock_GetLastSuccessfulDeployment_Call) Run

func (*DeploymentRepositoryMock_GetLastSuccessfulDeployment_Call) RunAndReturn

type DeploymentRepositoryMock_MarkAsCancelled_Call

type DeploymentRepositoryMock_MarkAsCancelled_Call struct {
	*mock.Call
}

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

func (*DeploymentRepositoryMock_MarkAsCancelled_Call) Return

func (*DeploymentRepositoryMock_MarkAsCancelled_Call) Run

func (*DeploymentRepositoryMock_MarkAsCancelled_Call) RunAndReturn

type DeploymentRepositoryMock_MarkCancelledExcept_Call

type DeploymentRepositoryMock_MarkCancelledExcept_Call struct {
	*mock.Call
}

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

func (*DeploymentRepositoryMock_MarkCancelledExcept_Call) Return

func (*DeploymentRepositoryMock_MarkCancelledExcept_Call) Run

func (*DeploymentRepositoryMock_MarkCancelledExcept_Call) RunAndReturn

type DeploymentRepositoryMock_MarkFailed_Call

type DeploymentRepositoryMock_MarkFailed_Call struct {
	*mock.Call
}

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

func (*DeploymentRepositoryMock_MarkFailed_Call) Return

func (*DeploymentRepositoryMock_MarkFailed_Call) Run

type DeploymentRepositoryMock_MarkStarted_Call

type DeploymentRepositoryMock_MarkStarted_Call struct {
	*mock.Call
}

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

func (*DeploymentRepositoryMock_MarkStarted_Call) Return

func (*DeploymentRepositoryMock_MarkStarted_Call) Run

type DeploymentRepositoryMock_MarkSucceeded_Call

type DeploymentRepositoryMock_MarkSucceeded_Call struct {
	*mock.Call
}

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

func (*DeploymentRepositoryMock_MarkSucceeded_Call) Return

func (*DeploymentRepositoryMock_MarkSucceeded_Call) Run

type DeploymentRepositoryMock_SetKubernetesJobStatus_Call

type DeploymentRepositoryMock_SetKubernetesJobStatus_Call struct {
	*mock.Call
}

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

func (*DeploymentRepositoryMock_SetKubernetesJobStatus_Call) Return

func (*DeploymentRepositoryMock_SetKubernetesJobStatus_Call) Run

func (*DeploymentRepositoryMock_SetKubernetesJobStatus_Call) RunAndReturn

Jump to

Keyboard shortcuts

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