mocks

package
v0.6.18-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvConfigOverrideRepository added in v0.6.17

type EnvConfigOverrideRepository struct {
	mock.Mock
}

EnvConfigOverrideRepository is an autogenerated mock type for the EnvConfigOverrideRepository type

func NewEnvConfigOverrideRepository added in v0.6.17

func NewEnvConfigOverrideRepository(t mockConstructorTestingTNewEnvConfigOverrideRepository) *EnvConfigOverrideRepository

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

func (*EnvConfigOverrideRepository) ActiveEnvConfigOverride added in v0.6.17

func (_m *EnvConfigOverrideRepository) ActiveEnvConfigOverride(appId int, environmentId int) (*chartConfig.EnvConfigOverride, error)

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

func (*EnvConfigOverrideRepository) Delete added in v0.6.17

func (_m *EnvConfigOverrideRepository) Delete(envConfigOverride *chartConfig.EnvConfigOverride) error

Delete provides a mock function with given fields: envConfigOverride

func (*EnvConfigOverrideRepository) FindChartByAppIdAndEnvIdAndChartRefId added in v0.6.17

func (_m *EnvConfigOverrideRepository) FindChartByAppIdAndEnvIdAndChartRefId(appId int, targetEnvironmentId int, chartRefId int) (*chartConfig.EnvConfigOverride, error)

FindChartByAppIdAndEnvIdAndChartRefId provides a mock function with given fields: appId, targetEnvironmentId, chartRefId

func (*EnvConfigOverrideRepository) FindChartForAppByAppIdAndEnvId added in v0.6.17

func (_m *EnvConfigOverrideRepository) FindChartForAppByAppIdAndEnvId(appId int, targetEnvironmentId int) (*chartConfig.EnvConfigOverride, error)

FindChartForAppByAppIdAndEnvId provides a mock function with given fields: appId, targetEnvironmentId

func (*EnvConfigOverrideRepository) FindChartRefIdsForLatestChartForAppByAppIdAndEnvIds added in v0.6.17

func (_m *EnvConfigOverrideRepository) FindChartRefIdsForLatestChartForAppByAppIdAndEnvIds(appId int, targetEnvironmentIds []int) (map[int]int, error)

FindChartRefIdsForLatestChartForAppByAppIdAndEnvIds provides a mock function with given fields: appId, targetEnvironmentIds

func (*EnvConfigOverrideRepository) FindLatestChartForAppByAppIdAndEnvId added in v0.6.17

func (_m *EnvConfigOverrideRepository) FindLatestChartForAppByAppIdAndEnvId(appId int, targetEnvironmentId int) (*chartConfig.EnvConfigOverride, error)

FindLatestChartForAppByAppIdAndEnvId provides a mock function with given fields: appId, targetEnvironmentId

func (*EnvConfigOverrideRepository) Get added in v0.6.17

Get provides a mock function with given fields: id

func (*EnvConfigOverrideRepository) GetByAppIdEnvIdAndChartRefId added in v0.6.17

func (_m *EnvConfigOverrideRepository) GetByAppIdEnvIdAndChartRefId(appId int, envId int, chartRefId int) (*chartConfig.EnvConfigOverride, error)

GetByAppIdEnvIdAndChartRefId provides a mock function with given fields: appId, envId, chartRefId

func (*EnvConfigOverrideRepository) GetByChartAndEnvironment added in v0.6.17

func (_m *EnvConfigOverrideRepository) GetByChartAndEnvironment(chartId int, targetEnvironmentId int) (*chartConfig.EnvConfigOverride, error)

GetByChartAndEnvironment provides a mock function with given fields: chartId, targetEnvironmentId

func (*EnvConfigOverrideRepository) GetByEnvironment added in v0.6.17

func (_m *EnvConfigOverrideRepository) GetByEnvironment(targetEnvironmentId int) ([]chartConfig.EnvConfigOverride, error)

GetByEnvironment provides a mock function with given fields: targetEnvironmentId

func (*EnvConfigOverrideRepository) GetEnvConfigByChartId added in v0.6.17

func (_m *EnvConfigOverrideRepository) GetEnvConfigByChartId(chartId int) ([]chartConfig.EnvConfigOverride, error)

GetEnvConfigByChartId provides a mock function with given fields: chartId

func (*EnvConfigOverrideRepository) Save added in v0.6.17

Save provides a mock function with given fields: _a0

func (*EnvConfigOverrideRepository) SaveWithTxn added in v0.6.17

func (_m *EnvConfigOverrideRepository) SaveWithTxn(model *chartConfig.EnvConfigOverride, tx *pg.Tx) error

SaveWithTxn provides a mock function with given fields: model, tx

func (*EnvConfigOverrideRepository) Update added in v0.6.17

Update provides a mock function with given fields: envConfigOverride

func (*EnvConfigOverrideRepository) UpdateEnvConfigStatus added in v0.6.17

func (_m *EnvConfigOverrideRepository) UpdateEnvConfigStatus(config *chartConfig.EnvConfigOverride) error

UpdateEnvConfigStatus provides a mock function with given fields: config

func (*EnvConfigOverrideRepository) UpdateProperties added in v0.6.17

func (_m *EnvConfigOverrideRepository) UpdateProperties(config *chartConfig.EnvConfigOverride) error

UpdateProperties provides a mock function with given fields: config

func (*EnvConfigOverrideRepository) UpdateWithTxn added in v0.6.17

func (_m *EnvConfigOverrideRepository) UpdateWithTxn(envConfigOverride *chartConfig.EnvConfigOverride, tx *pg.Tx) (*chartConfig.EnvConfigOverride, error)

UpdateWithTxn provides a mock function with given fields: envConfigOverride, tx

type PipelineConfigRepository added in v0.6.17

type PipelineConfigRepository struct {
	mock.Mock
}

PipelineConfigRepository is an autogenerated mock type for the PipelineConfigRepository type

func NewPipelineConfigRepository added in v0.6.17

func NewPipelineConfigRepository(t mockConstructorTestingTNewPipelineConfigRepository) *PipelineConfigRepository

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

func (*PipelineConfigRepository) Delete added in v0.6.17

func (_m *PipelineConfigRepository) Delete(pipelineStrategy *chartConfig.PipelineStrategy, tx *pg.Tx) error

Delete provides a mock function with given fields: pipelineStrategy, tx

func (*PipelineConfigRepository) FindById added in v0.6.17

FindById provides a mock function with given fields: id

func (*PipelineConfigRepository) FindByStrategy added in v0.6.17

FindByStrategy provides a mock function with given fields: strategy

func (*PipelineConfigRepository) FindByStrategyAndPipelineId added in v0.6.17

func (_m *PipelineConfigRepository) FindByStrategyAndPipelineId(strategy chartRepoRepository.DeploymentStrategy, pipelineId int) (*chartConfig.PipelineStrategy, error)

FindByStrategyAndPipelineId provides a mock function with given fields: strategy, pipelineId

func (*PipelineConfigRepository) GetAllStrategyByPipelineId added in v0.6.17

func (_m *PipelineConfigRepository) GetAllStrategyByPipelineId(pipelineId int) ([]*chartConfig.PipelineStrategy, error)

GetAllStrategyByPipelineId provides a mock function with given fields: pipelineId

func (*PipelineConfigRepository) GetAllStrategyByPipelineIds added in v0.6.17

func (_m *PipelineConfigRepository) GetAllStrategyByPipelineIds(pipelineIds []int) ([]*chartConfig.PipelineStrategy, error)

GetAllStrategyByPipelineIds provides a mock function with given fields: pipelineIds

func (*PipelineConfigRepository) GetDefaultStrategyByPipelineId added in v0.6.17

func (_m *PipelineConfigRepository) GetDefaultStrategyByPipelineId(pipelineId int) (*chartConfig.PipelineStrategy, error)

GetDefaultStrategyByPipelineId provides a mock function with given fields: pipelineId

func (*PipelineConfigRepository) Save added in v0.6.17

func (_m *PipelineConfigRepository) Save(pipelineStrategy *chartConfig.PipelineStrategy, tx *pg.Tx) error

Save provides a mock function with given fields: pipelineStrategy, tx

func (*PipelineConfigRepository) Update added in v0.6.17

func (_m *PipelineConfigRepository) Update(pipelineStrategy *chartConfig.PipelineStrategy, tx *pg.Tx) error

Update provides a mock function with given fields: pipelineStrategy, tx

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