Help us shape the future of Go! Take the 2026 Go Developer Survey

mocks

package
v0.6.14 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChartRepository added in v0.6.11

type ChartRepository struct {
	mock.Mock
}

ChartRepository is an autogenerated mock type for the ChartRepository type

func NewChartRepository added in v0.6.11

func NewChartRepository(t mockConstructorTestingTNewChartRepository) *ChartRepository

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

func (*ChartRepository) FindActiveChart added in v0.6.11

func (_m *ChartRepository) FindActiveChart(appId int) (*chartRepoRepository.Chart, error)

FindActiveChart provides a mock function with given fields: appId

func (*ChartRepository) FindActiveChartsByAppId added in v0.6.11

func (_m *ChartRepository) FindActiveChartsByAppId(appId int) ([]*chartRepoRepository.Chart, error)

FindActiveChartsByAppId provides a mock function with given fields: appId

func (*ChartRepository) FindById added in v0.6.11

func (_m *ChartRepository) FindById(id int) (*chartRepoRepository.Chart, error)

FindById provides a mock function with given fields: id

func (*ChartRepository) FindChartByAppIdAndRefId added in v0.6.11

func (_m *ChartRepository) FindChartByAppIdAndRefId(appId int, chartRefId int) (*chartRepoRepository.Chart, error)

FindChartByAppIdAndRefId provides a mock function with given fields: appId, chartRefId

func (*ChartRepository) FindChartByGitRepoUrl added in v0.6.11

func (_m *ChartRepository) FindChartByGitRepoUrl(gitRepoUrl string) (*chartRepoRepository.Chart, error)

FindChartByGitRepoUrl provides a mock function with given fields: gitRepoUrl

func (*ChartRepository) FindCurrentChartVersion added in v0.6.11

func (_m *ChartRepository) FindCurrentChartVersion(chartRepo string, chartName string, chartVersionPattern string) (string, error)

FindCurrentChartVersion provides a mock function with given fields: chartRepo, chartName, chartVersionPattern

func (*ChartRepository) FindLatestByAppId added in v0.6.11

func (_m *ChartRepository) FindLatestByAppId(appId int) (*chartRepoRepository.Chart, error)

FindLatestByAppId provides a mock function with given fields: appId

func (*ChartRepository) FindLatestChartForAppByAppId added in v0.6.11

func (_m *ChartRepository) FindLatestChartForAppByAppId(appId int) (*chartRepoRepository.Chart, error)

FindLatestChartForAppByAppId provides a mock function with given fields: appId

func (*ChartRepository) FindNoLatestChartForAppByAppId added in v0.6.11

func (_m *ChartRepository) FindNoLatestChartForAppByAppId(appId int) ([]*chartRepoRepository.Chart, error)

FindNoLatestChartForAppByAppId provides a mock function with given fields: appId

func (*ChartRepository) FindNumberOfAppsWithDeploymentTemplate added in v0.6.11

func (_m *ChartRepository) FindNumberOfAppsWithDeploymentTemplate(appIds []int) (int, error)

FindNumberOfAppsWithDeploymentTemplate provides a mock function with given fields: appIds

func (*ChartRepository) FindOne added in v0.6.11

func (_m *ChartRepository) FindOne(chartRepo string, appName string, chartVersion string) (*chartRepoRepository.Chart, error)

FindOne provides a mock function with given fields: chartRepo, appName, chartVersion

func (*ChartRepository) FindPreviousChartByAppId added in v0.6.11

func (_m *ChartRepository) FindPreviousChartByAppId(appId int) (*chartRepoRepository.Chart, error)

FindPreviousChartByAppId provides a mock function with given fields: appId

func (*ChartRepository) Save added in v0.6.11

Save provides a mock function with given fields: _a0

func (*ChartRepository) Update added in v0.6.11

func (_m *ChartRepository) Update(chart *chartRepoRepository.Chart) error

Update provides a mock function with given fields: chart

type GlobalStrategyMetadataRepository

type GlobalStrategyMetadataRepository struct {
	mock.Mock
}

GlobalStrategyMetadataRepository is an autogenerated mock type for the GlobalStrategyMetadataRepository type

func NewGlobalStrategyMetadataRepository

func NewGlobalStrategyMetadataRepository(t mockConstructorTestingTNewGlobalStrategyMetadataRepository) *GlobalStrategyMetadataRepository

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

func (*GlobalStrategyMetadataRepository) GetByChartRefId

GetByChartRefId provides a mock function with given fields: chartRefId

Jump to

Keyboard shortcuts

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