mocks

package
v0.6.28 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 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 CiPipelineHistoryRepository

type CiPipelineHistoryRepository struct {
	mock.Mock
}

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

type CiTemplateHistoryRepository struct {
	mock.Mock
}

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

Save provides a mock function with given fields: material

type DeploymentTemplateHistoryRepository added in v0.6.17

type DeploymentTemplateHistoryRepository struct {
	mock.Mock
}

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

CreateHistory provides a mock function with given fields: chart

func (*DeploymentTemplateHistoryRepository) CreateHistoryWithTxn added in v0.6.17

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

type GitMaterialHistoryRepository struct {
	mock.Mock
}

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

type PipelineStrategyHistoryRepository struct {
	mock.Mock
}

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

CreateHistory provides a mock function with given fields: model

func (*PipelineStrategyHistoryRepository) CreateHistoryWithTxn added in v0.6.17

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(pipelineId int, 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

Jump to

Keyboard shortcuts

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