mocks

package
v0.7.2-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppWorkflowRepository

type AppWorkflowRepository struct {
	mock.Mock
}

AppWorkflowRepository is an autogenerated mock type for the AppWorkflowRepository type

func NewAppWorkflowRepository added in v0.6.17

func NewAppWorkflowRepository(t mockConstructorTestingTNewAppWorkflowRepository) *AppWorkflowRepository

NewAppWorkflowRepository creates a new instance of AppWorkflowRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*AppWorkflowRepository) DeleteAppWorkflow

func (_m *AppWorkflowRepository) DeleteAppWorkflow(_a0 *appWorkflow.AppWorkflow, tx *pg.Tx) error

DeleteAppWorkflow provides a mock function with given fields: _a0, tx

func (*AppWorkflowRepository) DeleteAppWorkflowMapping

func (_m *AppWorkflowRepository) DeleteAppWorkflowMapping(_a0 *appWorkflow.AppWorkflowMapping, tx *pg.Tx) error

DeleteAppWorkflowMapping provides a mock function with given fields: _a0, tx

func (*AppWorkflowRepository) DeleteAppWorkflowMappingsByCdPipelineId

func (_m *AppWorkflowRepository) DeleteAppWorkflowMappingsByCdPipelineId(pipelineId int, tx *pg.Tx) error

DeleteAppWorkflowMappingsByCdPipelineId provides a mock function with given fields: pipelineId, tx

func (*AppWorkflowRepository) FindAllWFMappingsByAppId

func (_m *AppWorkflowRepository) FindAllWFMappingsByAppId(appId int) ([]*appWorkflow.AppWorkflowMapping, error)

FindAllWFMappingsByAppId provides a mock function with given fields: appId

func (*AppWorkflowRepository) FindAllWfsHavingCdPipelinesFromSpecificEnvsOnly

func (_m *AppWorkflowRepository) FindAllWfsHavingCdPipelinesFromSpecificEnvsOnly(envIds []int, appIds []int) ([]*appWorkflow.AppWorkflowMapping, error)

FindAllWfsHavingCdPipelinesFromSpecificEnvsOnly provides a mock function with given fields: envIds, appIds

func (*AppWorkflowRepository) FindByAppId

func (_m *AppWorkflowRepository) FindByAppId(appId int) ([]*appWorkflow.AppWorkflow, error)

FindByAppId provides a mock function with given fields: appId

func (*AppWorkflowRepository) FindByAppIds added in v0.6.17

func (_m *AppWorkflowRepository) FindByAppIds(appIds []int) ([]*appWorkflow.AppWorkflow, error)

FindByAppIds provides a mock function with given fields: appIds

func (*AppWorkflowRepository) FindByCDPipelineIds added in v0.6.17

func (_m *AppWorkflowRepository) FindByCDPipelineIds(cdPipelineIds []int) ([]*appWorkflow.AppWorkflowMapping, error)

FindByCDPipelineIds provides a mock function with given fields: cdPipelineIds

func (*AppWorkflowRepository) FindByComponent

func (_m *AppWorkflowRepository) FindByComponent(id int, componentType string) ([]*appWorkflow.AppWorkflowMapping, error)

FindByComponent provides a mock function with given fields: id, componentType

func (*AppWorkflowRepository) FindById

func (_m *AppWorkflowRepository) FindById(id int) (*appWorkflow.AppWorkflow, error)

FindById provides a mock function with given fields: id

func (*AppWorkflowRepository) FindByIdAndAppId

func (_m *AppWorkflowRepository) FindByIdAndAppId(id int, appId int) (*appWorkflow.AppWorkflow, error)

FindByIdAndAppId provides a mock function with given fields: id, appId

func (*AppWorkflowRepository) FindByIds

func (_m *AppWorkflowRepository) FindByIds(ids []int) (*appWorkflow.AppWorkflow, error)

FindByIds provides a mock function with given fields: ids

func (*AppWorkflowRepository) FindByNameAndAppId

func (_m *AppWorkflowRepository) FindByNameAndAppId(name string, appId int) (*appWorkflow.AppWorkflow, error)

FindByNameAndAppId provides a mock function with given fields: name, appId

func (*AppWorkflowRepository) FindByTypeAndComponentId

func (_m *AppWorkflowRepository) FindByTypeAndComponentId(wfId int, componentId int, componentType string) (*appWorkflow.AppWorkflowMapping, error)

FindByTypeAndComponentId provides a mock function with given fields: wfId, componentId, componentType

func (*AppWorkflowRepository) FindByWorkflowId

func (_m *AppWorkflowRepository) FindByWorkflowId(workflowId int) ([]*appWorkflow.AppWorkflowMapping, error)

FindByWorkflowId provides a mock function with given fields: workflowId

func (*AppWorkflowRepository) FindByWorkflowIds added in v0.6.17

func (_m *AppWorkflowRepository) FindByWorkflowIds(workflowIds []int) ([]*appWorkflow.AppWorkflowMapping, error)

FindByWorkflowIds provides a mock function with given fields: workflowIds

func (*AppWorkflowRepository) FindChildCDIdsByParentCDPipelineId added in v0.6.17

func (_m *AppWorkflowRepository) FindChildCDIdsByParentCDPipelineId(cdPipelineId int) ([]int, error)

FindChildCDIdsByParentCDPipelineId provides a mock function with given fields: cdPipelineId

func (*AppWorkflowRepository) FindCiPipelineIdsFromAppWfIds added in v0.6.17

func (_m *AppWorkflowRepository) FindCiPipelineIdsFromAppWfIds(appWfIds []int) ([]int, error)

FindCiPipelineIdsFromAppWfIds provides a mock function with given fields: appWfIds

func (*AppWorkflowRepository) FindMappingByAppIds added in v0.6.17

func (_m *AppWorkflowRepository) FindMappingByAppIds(appIds []int) ([]*appWorkflow.AppWorkflowMapping, error)

FindMappingByAppIds provides a mock function with given fields: appIds

func (*AppWorkflowRepository) FindWFAllMappingByWorkflowId

func (_m *AppWorkflowRepository) FindWFAllMappingByWorkflowId(workflowId int) ([]*appWorkflow.AppWorkflowMapping, error)

FindWFAllMappingByWorkflowId provides a mock function with given fields: workflowId

func (*AppWorkflowRepository) FindWFCDMappingByCDPipelineId

func (_m *AppWorkflowRepository) FindWFCDMappingByCDPipelineId(cdPipelineId int) (*appWorkflow.AppWorkflowMapping, error)

FindWFCDMappingByCDPipelineId provides a mock function with given fields: cdPipelineId

func (*AppWorkflowRepository) FindWFCDMappingByCIPipelineId

func (_m *AppWorkflowRepository) FindWFCDMappingByCIPipelineId(ciPipelineId int) ([]*appWorkflow.AppWorkflowMapping, error)

FindWFCDMappingByCIPipelineId provides a mock function with given fields: ciPipelineId

func (*AppWorkflowRepository) FindWFCDMappingByCIPipelineIds

func (_m *AppWorkflowRepository) FindWFCDMappingByCIPipelineIds(ciPipelineIds []int) ([]*appWorkflow.AppWorkflowMapping, error)

FindWFCDMappingByCIPipelineIds provides a mock function with given fields: ciPipelineIds

func (*AppWorkflowRepository) FindWFCDMappingByExternalCiId

func (_m *AppWorkflowRepository) FindWFCDMappingByExternalCiId(externalCiId int) ([]*appWorkflow.AppWorkflowMapping, error)

FindWFCDMappingByExternalCiId provides a mock function with given fields: externalCiId

func (*AppWorkflowRepository) FindWFCDMappingByParentCDPipelineId

func (_m *AppWorkflowRepository) FindWFCDMappingByParentCDPipelineId(cdPipelineId int) ([]*appWorkflow.AppWorkflowMapping, error)

FindWFCDMappingByParentCDPipelineId provides a mock function with given fields: cdPipelineId

func (*AppWorkflowRepository) FindWFCIMappingByCIPipelineId

func (_m *AppWorkflowRepository) FindWFCIMappingByCIPipelineId(ciPipelineId int) ([]*appWorkflow.AppWorkflowMapping, error)

FindWFCIMappingByCIPipelineId provides a mock function with given fields: ciPipelineId

func (*AppWorkflowRepository) FindWFCIMappingByWorkflowId

func (_m *AppWorkflowRepository) FindWFCIMappingByWorkflowId(workflowId int) ([]*appWorkflow.AppWorkflowMapping, error)

FindWFCIMappingByWorkflowId provides a mock function with given fields: workflowId

func (*AppWorkflowRepository) GetParentDetailsByPipelineId added in v0.6.17

func (_m *AppWorkflowRepository) GetParentDetailsByPipelineId(pipelineId int) (*appWorkflow.AppWorkflowMapping, error)

GetParentDetailsByPipelineId provides a mock function with given fields: pipelineId

func (*AppWorkflowRepository) SaveAppWorkflow

SaveAppWorkflow provides a mock function with given fields: wf

func (*AppWorkflowRepository) SaveAppWorkflowMapping

SaveAppWorkflowMapping provides a mock function with given fields: wf, tx

func (*AppWorkflowRepository) SaveAppWorkflowWithTx

func (_m *AppWorkflowRepository) SaveAppWorkflowWithTx(wf *appWorkflow.AppWorkflow, tx *pg.Tx) (*appWorkflow.AppWorkflow, error)

SaveAppWorkflowWithTx provides a mock function with given fields: wf, tx

func (*AppWorkflowRepository) UpdateAppWorkflow

UpdateAppWorkflow provides a mock function with given fields: wf

Jump to

Keyboard shortcuts

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