Documentation ¶
Index ¶
- type CiPipelineHistoryRepository
- type CiTemplateHistoryRepository
- type DeploymentTemplateHistoryRepository
- func (_m *DeploymentTemplateHistoryRepository) CreateHistory(chart *repository.DeploymentTemplateHistory) (*repository.DeploymentTemplateHistory, error)
- func (_m *DeploymentTemplateHistoryRepository) CreateHistoryWithTxn(chart *repository.DeploymentTemplateHistory, tx *pg.Tx) (*repository.DeploymentTemplateHistory, error)
- func (_m *DeploymentTemplateHistoryRepository) GetDeployedHistoryList(pipelineId int, baseConfigId int) ([]*repository.DeploymentTemplateHistory, error)
- func (_m *DeploymentTemplateHistoryRepository) GetDeploymentDetailsForDeployedTemplateHistory(pipelineId int, offset int, limit int) ([]*repository.DeploymentTemplateHistory, error)
- func (_m *DeploymentTemplateHistoryRepository) GetHistoryByPipelineIdAndWfrId(pipelineId int, wfrId int) (*repository.DeploymentTemplateHistory, error)
- func (_m *DeploymentTemplateHistoryRepository) GetHistoryForDeployedTemplateById(id int, pipelineId int) (*repository.DeploymentTemplateHistory, error)
- type GitMaterialHistoryRepository
- type PipelineStrategyHistoryRepository
- func (_m *PipelineStrategyHistoryRepository) CreateHistory(model *repository.PipelineStrategyHistory) (*repository.PipelineStrategyHistory, error)
- func (_m *PipelineStrategyHistoryRepository) CreateHistoryWithTxn(model *repository.PipelineStrategyHistory, tx *pg.Tx) (*repository.PipelineStrategyHistory, error)
- func (_m *PipelineStrategyHistoryRepository) GetDeployedHistoryList(pipelineId int, baseConfigId int) ([]*repository.PipelineStrategyHistory, error)
- func (_m *PipelineStrategyHistoryRepository) GetDeploymentDetailsForDeployedStrategyHistory(pipelineId int) ([]*repository.PipelineStrategyHistory, error)
- func (_m *PipelineStrategyHistoryRepository) GetHistoryByPipelineIdAndWfrId(ctx context.Context, pipelineId, wfrId int) (*repository.PipelineStrategyHistory, error)
- func (_m *PipelineStrategyHistoryRepository) GetHistoryForDeployedStrategyById(id int, pipelineId int) (*repository.PipelineStrategyHistory, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CiPipelineHistoryRepository ¶
CiPipelineHistoryRepository is an autogenerated mock type for the CiPipelineHistoryRepository type
func NewCiPipelineHistoryRepository ¶
func NewCiPipelineHistoryRepository(t mockConstructorTestingTNewCiPipelineHistoryRepository) *CiPipelineHistoryRepository
NewCiPipelineHistoryRepository creates a new instance of CiPipelineHistoryRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*CiPipelineHistoryRepository) Save ¶
func (_m *CiPipelineHistoryRepository) Save(ciPipelineHistory *repository.CiPipelineHistory) error
Save provides a mock function with given fields: ciPipelineHistory
func (*CiPipelineHistoryRepository) SaveCiEnvMappingHistory ¶ added in v0.6.21
func (_m *CiPipelineHistoryRepository) SaveCiEnvMappingHistory(CiEnvMappingHistory *repository.CiEnvMappingHistory) error
SaveCiEnvMappingHistory provides a mock function with given fields: CiEnvMappingHistory
type CiTemplateHistoryRepository ¶
CiTemplateHistoryRepository is an autogenerated mock type for the CiTemplateHistoryRepository type
func NewCiTemplateHistoryRepository ¶
func NewCiTemplateHistoryRepository(t mockConstructorTestingTNewCiTemplateHistoryRepository) *CiTemplateHistoryRepository
NewCiTemplateHistoryRepository creates a new instance of CiTemplateHistoryRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*CiTemplateHistoryRepository) Save ¶
func (_m *CiTemplateHistoryRepository) Save(material *repository.CiTemplateHistory) error
Save provides a mock function with given fields: material
type DeploymentTemplateHistoryRepository ¶ added in v0.6.17
DeploymentTemplateHistoryRepository is an autogenerated mock type for the DeploymentTemplateHistoryRepository type
func NewDeploymentTemplateHistoryRepository ¶ added in v0.6.17
func NewDeploymentTemplateHistoryRepository(t mockConstructorTestingTNewDeploymentTemplateHistoryRepository) *DeploymentTemplateHistoryRepository
NewDeploymentTemplateHistoryRepository creates a new instance of DeploymentTemplateHistoryRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*DeploymentTemplateHistoryRepository) CreateHistory ¶ added in v0.6.17
func (_m *DeploymentTemplateHistoryRepository) CreateHistory(chart *repository.DeploymentTemplateHistory) (*repository.DeploymentTemplateHistory, error)
CreateHistory provides a mock function with given fields: chart
func (*DeploymentTemplateHistoryRepository) CreateHistoryWithTxn ¶ added in v0.6.17
func (_m *DeploymentTemplateHistoryRepository) CreateHistoryWithTxn(chart *repository.DeploymentTemplateHistory, tx *pg.Tx) (*repository.DeploymentTemplateHistory, error)
CreateHistoryWithTxn provides a mock function with given fields: chart, tx
func (*DeploymentTemplateHistoryRepository) GetDeployedHistoryList ¶ added in v0.6.17
func (_m *DeploymentTemplateHistoryRepository) GetDeployedHistoryList(pipelineId int, baseConfigId int) ([]*repository.DeploymentTemplateHistory, error)
GetDeployedHistoryList provides a mock function with given fields: pipelineId, baseConfigId
func (*DeploymentTemplateHistoryRepository) GetDeploymentDetailsForDeployedTemplateHistory ¶ added in v0.6.17
func (_m *DeploymentTemplateHistoryRepository) GetDeploymentDetailsForDeployedTemplateHistory(pipelineId int, offset int, limit int) ([]*repository.DeploymentTemplateHistory, error)
GetDeploymentDetailsForDeployedTemplateHistory provides a mock function with given fields: pipelineId, offset, limit
func (*DeploymentTemplateHistoryRepository) GetHistoryByPipelineIdAndWfrId ¶ added in v0.6.17
func (_m *DeploymentTemplateHistoryRepository) GetHistoryByPipelineIdAndWfrId(pipelineId int, wfrId int) (*repository.DeploymentTemplateHistory, error)
GetHistoryByPipelineIdAndWfrId provides a mock function with given fields: pipelineId, wfrId
func (*DeploymentTemplateHistoryRepository) GetHistoryForDeployedTemplateById ¶ added in v0.6.17
func (_m *DeploymentTemplateHistoryRepository) GetHistoryForDeployedTemplateById(id int, pipelineId int) (*repository.DeploymentTemplateHistory, error)
GetHistoryForDeployedTemplateById provides a mock function with given fields: id, pipelineId
type GitMaterialHistoryRepository ¶
GitMaterialHistoryRepository is an autogenerated mock type for the GitMaterialHistoryRepository type
func NewGitMaterialHistoryRepository ¶
func NewGitMaterialHistoryRepository(t mockConstructorTestingTNewGitMaterialHistoryRepository) *GitMaterialHistoryRepository
NewGitMaterialHistoryRepository creates a new instance of GitMaterialHistoryRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*GitMaterialHistoryRepository) SaveDeleteMaterialHistory ¶
func (_m *GitMaterialHistoryRepository) SaveDeleteMaterialHistory(materials []*repository.GitMaterialHistory) error
SaveDeleteMaterialHistory provides a mock function with given fields: materials
func (*GitMaterialHistoryRepository) SaveGitMaterialHistory ¶
func (_m *GitMaterialHistoryRepository) SaveGitMaterialHistory(material *repository.GitMaterialHistory) error
SaveGitMaterialHistory provides a mock function with given fields: material
type PipelineStrategyHistoryRepository ¶ added in v0.6.17
PipelineStrategyHistoryRepository is an autogenerated mock type for the PipelineStrategyHistoryRepository type
func NewPipelineStrategyHistoryRepository ¶ added in v0.6.17
func NewPipelineStrategyHistoryRepository(t mockConstructorTestingTNewPipelineStrategyHistoryRepository) *PipelineStrategyHistoryRepository
NewPipelineStrategyHistoryRepository creates a new instance of PipelineStrategyHistoryRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*PipelineStrategyHistoryRepository) CreateHistory ¶ added in v0.6.17
func (_m *PipelineStrategyHistoryRepository) CreateHistory(model *repository.PipelineStrategyHistory) (*repository.PipelineStrategyHistory, error)
CreateHistory provides a mock function with given fields: model
func (*PipelineStrategyHistoryRepository) CreateHistoryWithTxn ¶ added in v0.6.17
func (_m *PipelineStrategyHistoryRepository) CreateHistoryWithTxn(model *repository.PipelineStrategyHistory, tx *pg.Tx) (*repository.PipelineStrategyHistory, error)
CreateHistoryWithTxn provides a mock function with given fields: model, tx
func (*PipelineStrategyHistoryRepository) GetDeployedHistoryList ¶ added in v0.6.17
func (_m *PipelineStrategyHistoryRepository) GetDeployedHistoryList(pipelineId int, baseConfigId int) ([]*repository.PipelineStrategyHistory, error)
GetDeployedHistoryList provides a mock function with given fields: pipelineId, baseConfigId
func (*PipelineStrategyHistoryRepository) GetDeploymentDetailsForDeployedStrategyHistory ¶ added in v0.6.17
func (_m *PipelineStrategyHistoryRepository) GetDeploymentDetailsForDeployedStrategyHistory(pipelineId int) ([]*repository.PipelineStrategyHistory, error)
GetDeploymentDetailsForDeployedStrategyHistory provides a mock function with given fields: pipelineId
func (*PipelineStrategyHistoryRepository) GetHistoryByPipelineIdAndWfrId ¶ added in v0.6.17
func (_m *PipelineStrategyHistoryRepository) GetHistoryByPipelineIdAndWfrId(ctx context.Context, pipelineId, wfrId int) (*repository.PipelineStrategyHistory, error)
GetHistoryByPipelineIdAndWfrId provides a mock function with given fields: pipelineId, wfrId
func (*PipelineStrategyHistoryRepository) GetHistoryForDeployedStrategyById ¶ added in v0.6.17
func (_m *PipelineStrategyHistoryRepository) GetHistoryForDeployedStrategyById(id int, pipelineId int) (*repository.PipelineStrategyHistory, error)
GetHistoryForDeployedStrategyById provides a mock function with given fields: id, pipelineId