mocks

package
v0.6.13 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 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 PipelineOverrideRepository

type PipelineOverrideRepository struct {
	mock.Mock
}

PipelineOverrideRepository is an autogenerated mock type for the PipelineOverrideRepository type

func NewPipelineOverrideRepository

func NewPipelineOverrideRepository(t mockConstructorTestingTNewPipelineOverrideRepository) *PipelineOverrideRepository

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

func (*PipelineOverrideRepository) FetchHelmTypePipelineOverridesForStatusUpdate

func (_m *PipelineOverrideRepository) FetchHelmTypePipelineOverridesForStatusUpdate() ([]*chartConfig.PipelineOverride, error)

FetchHelmTypePipelineOverridesForStatusUpdate provides a mock function with given fields:

func (*PipelineOverrideRepository) FindById

FindById provides a mock function with given fields: id

func (*PipelineOverrideRepository) FindByPipelineTriggerGitHash

func (_m *PipelineOverrideRepository) FindByPipelineTriggerGitHash(gitHash string) (*chartConfig.PipelineOverride, error)

FindByPipelineTriggerGitHash provides a mock function with given fields: gitHash

func (*PipelineOverrideRepository) FindLatestByAppIdAndEnvId

func (_m *PipelineOverrideRepository) FindLatestByAppIdAndEnvId(appId int, environmentId int) (*chartConfig.PipelineOverride, error)

FindLatestByAppIdAndEnvId provides a mock function with given fields: appId, environmentId

func (*PipelineOverrideRepository) GetAllRelease

func (_m *PipelineOverrideRepository) GetAllRelease(appId int, environmentId int) ([]*chartConfig.PipelineOverride, error)

GetAllRelease provides a mock function with given fields: appId, environmentId

func (*PipelineOverrideRepository) GetByDeployedImage

func (_m *PipelineOverrideRepository) GetByDeployedImage(appId int, environmentId int, images []string) (*chartConfig.PipelineOverride, error)

GetByDeployedImage provides a mock function with given fields: appId, environmentId, images

func (*PipelineOverrideRepository) GetByPipelineIdAndReleaseNo

func (_m *PipelineOverrideRepository) GetByPipelineIdAndReleaseNo(pipelineId int, releaseNo int) ([]*chartConfig.PipelineOverride, error)

GetByPipelineIdAndReleaseNo provides a mock function with given fields: pipelineId, releaseNo

func (*PipelineOverrideRepository) GetCurrentPipelineReleaseCounter

func (_m *PipelineOverrideRepository) GetCurrentPipelineReleaseCounter(pipelineId int) (int, error)

GetCurrentPipelineReleaseCounter provides a mock function with given fields: pipelineId

func (*PipelineOverrideRepository) GetLatestConfigByEnvironmentConfigOverrideId

func (_m *PipelineOverrideRepository) GetLatestConfigByEnvironmentConfigOverrideId(envConfigOverrideId int) (*chartConfig.PipelineOverride, error)

GetLatestConfigByEnvironmentConfigOverrideId provides a mock function with given fields: envConfigOverrideId

func (*PipelineOverrideRepository) GetLatestConfigByRequestIdentifier

func (_m *PipelineOverrideRepository) GetLatestConfigByRequestIdentifier(requestIdentifier string) (*chartConfig.PipelineOverride, error)

GetLatestConfigByRequestIdentifier provides a mock function with given fields: requestIdentifier

func (*PipelineOverrideRepository) GetLatestRelease

func (_m *PipelineOverrideRepository) GetLatestRelease(appId int, environmentId int) (*chartConfig.PipelineOverride, error)

GetLatestRelease provides a mock function with given fields: appId, environmentId

func (*PipelineOverrideRepository) GetLatestReleaseByPipelineIds

func (_m *PipelineOverrideRepository) GetLatestReleaseByPipelineIds(pipelineIds []int) ([]*chartConfig.PipelineOverride, error)

GetLatestReleaseByPipelineIds provides a mock function with given fields: pipelineIds

func (*PipelineOverrideRepository) GetLatestReleaseDeploymentType

func (_m *PipelineOverrideRepository) GetLatestReleaseDeploymentType(pipelineIds []int) ([]*chartConfig.PipelineOverride, error)

GetLatestReleaseDeploymentType provides a mock function with given fields: pipelineIds

func (*PipelineOverrideRepository) Save

Save provides a mock function with given fields: _a0

func (*PipelineOverrideRepository) Update

func (_m *PipelineOverrideRepository) Update(pipelineOverride *chartConfig.PipelineOverride) error

Update provides a mock function with given fields: pipelineOverride

func (*PipelineOverrideRepository) UpdateStatusByRequestIdentifier

func (_m *PipelineOverrideRepository) UpdateStatusByRequestIdentifier(requestId string, newStatus models.ChartStatus) (int, error)

UpdateStatusByRequestIdentifier provides a mock function with given fields: requestId, newStatus

Jump to

Keyboard shortcuts

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