Documentation ¶
Index ¶
- type ChartRefRepository
- func (_m *ChartRefRepository) CheckIfDataExists(name string, version string) (bool, error)
- func (_m *ChartRefRepository) FetchChart(name string) ([]*chartRepoRepository.ChartRef, error)
- func (_m *ChartRefRepository) FetchChartInfoByUploadFlag(userUploaded bool) ([]*chartRepoRepository.ChartRef, error)
- func (_m *ChartRefRepository) FetchInfoOfChartConfiguredInApp(appId int) (*chartRepoRepository.ChartRef, error)
- func (_m *ChartRefRepository) FindById(id int) (*chartRepoRepository.ChartRef, error)
- func (_m *ChartRefRepository) FindByVersionAndName(name string, version string) (*chartRepoRepository.ChartRef, error)
- func (_m *ChartRefRepository) GetAll() ([]*chartRepoRepository.ChartRef, error)
- func (_m *ChartRefRepository) GetAllChartMetadata() ([]*chartRepoRepository.ChartRefMetaData, error)
- func (_m *ChartRefRepository) GetDefault() (*chartRepoRepository.ChartRef, error)
- func (_m *ChartRefRepository) Save(chartRepo *chartRepoRepository.ChartRef) error
- type ChartRepoRepository
- func (_m *ChartRepoRepository) FindAll() ([]*chartRepoRepository.ChartRepo, error)
- func (_m *ChartRepoRepository) FindAllWithDeploymentCount() ([]*chartRepoRepository.ChartRepoWithDeploymentCount, error)
- func (_m *ChartRepoRepository) FindById(id int) (*chartRepoRepository.ChartRepo, error)
- func (_m *ChartRepoRepository) FindByName(name string) (*chartRepoRepository.ChartRepo, error)
- func (_m *ChartRepoRepository) FindDeploymentCountByChartRepoId(chartId int) (int, error)
- func (_m *ChartRepoRepository) GetConnection() *pg.DB
- func (_m *ChartRepoRepository) GetDefault() (*chartRepoRepository.ChartRepo, error)
- func (_m *ChartRepoRepository) MarkChartRepoDeleted(chartRepo *chartRepoRepository.ChartRepo, tx *pg.Tx) error
- func (_m *ChartRepoRepository) Save(chartRepo *chartRepoRepository.ChartRepo, tx *pg.Tx) error
- func (_m *ChartRepoRepository) Update(chartRepo *chartRepoRepository.ChartRepo, tx *pg.Tx) error
- type ChartRepository
- func (_m *ChartRepository) FindActiveChart(appId int) (*chartRepoRepository.Chart, error)
- func (_m *ChartRepository) FindActiveChartsByAppId(appId int) ([]*chartRepoRepository.Chart, error)
- func (_m *ChartRepository) FindById(id int) (*chartRepoRepository.Chart, error)
- func (_m *ChartRepository) FindChartByAppIdAndRefId(appId int, chartRefId int) (*chartRepoRepository.Chart, error)
- func (_m *ChartRepository) FindChartByGitRepoUrl(gitRepoUrl string) (*chartRepoRepository.Chart, error)
- func (_m *ChartRepository) FindChartRefIdForLatestChartForAppByAppId(appId int) (int, error)
- func (_m *ChartRepository) FindCurrentChartVersion(chartRepo string, chartName string, chartVersionPattern string) (string, error)
- func (_m *ChartRepository) FindLatestByAppId(appId int) (*chartRepoRepository.Chart, error)
- func (_m *ChartRepository) FindLatestChartForAppByAppId(appId int) (*chartRepoRepository.Chart, error)
- func (_m *ChartRepository) FindNoLatestChartForAppByAppId(appId int) ([]*chartRepoRepository.Chart, error)
- func (_m *ChartRepository) FindNumberOfAppsWithDeploymentTemplate(appIds []int) (int, error)
- func (_m *ChartRepository) FindOne(chartRepo string, appName string, chartVersion string) (*chartRepoRepository.Chart, error)
- func (_m *ChartRepository) FindPreviousChartByAppId(appId int) (*chartRepoRepository.Chart, error)
- func (_m *ChartRepository) Save(_a0 *chartRepoRepository.Chart) error
- func (_m *ChartRepository) Update(chart *chartRepoRepository.Chart) error
- type GlobalStrategyMetadataRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChartRefRepository ¶ added in v0.6.17
ChartRefRepository is an autogenerated mock type for the ChartRefRepository type
func NewChartRefRepository ¶ added in v0.6.17
func NewChartRefRepository(t mockConstructorTestingTNewChartRefRepository) *ChartRefRepository
NewChartRefRepository creates a new instance of ChartRefRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*ChartRefRepository) CheckIfDataExists ¶ added in v0.6.17
func (_m *ChartRefRepository) CheckIfDataExists(name string, version string) (bool, error)
CheckIfDataExists provides a mock function with given fields: name, version
func (*ChartRefRepository) FetchChart ¶ added in v0.6.17
func (_m *ChartRefRepository) FetchChart(name string) ([]*chartRepoRepository.ChartRef, error)
FetchChart provides a mock function with given fields: name
func (*ChartRefRepository) FetchChartInfoByUploadFlag ¶ added in v0.6.17
func (_m *ChartRefRepository) FetchChartInfoByUploadFlag(userUploaded bool) ([]*chartRepoRepository.ChartRef, error)
FetchChartInfoByUploadFlag provides a mock function with given fields: userUploaded
func (*ChartRefRepository) FetchInfoOfChartConfiguredInApp ¶ added in v0.6.17
func (_m *ChartRefRepository) FetchInfoOfChartConfiguredInApp(appId int) (*chartRepoRepository.ChartRef, error)
FetchInfoOfChartConfiguredInApp provides a mock function with given fields: appId
func (*ChartRefRepository) FindById ¶ added in v0.6.17
func (_m *ChartRefRepository) FindById(id int) (*chartRepoRepository.ChartRef, error)
FindById provides a mock function with given fields: id
func (*ChartRefRepository) FindByVersionAndName ¶ added in v0.6.17
func (_m *ChartRefRepository) FindByVersionAndName(name string, version string) (*chartRepoRepository.ChartRef, error)
FindByVersionAndName provides a mock function with given fields: name, version
func (*ChartRefRepository) GetAll ¶ added in v0.6.17
func (_m *ChartRefRepository) GetAll() ([]*chartRepoRepository.ChartRef, error)
GetAll provides a mock function with given fields:
func (*ChartRefRepository) GetAllChartMetadata ¶ added in v0.6.17
func (_m *ChartRefRepository) GetAllChartMetadata() ([]*chartRepoRepository.ChartRefMetaData, error)
GetAllChartMetadata provides a mock function with given fields:
func (*ChartRefRepository) GetDefault ¶ added in v0.6.17
func (_m *ChartRefRepository) GetDefault() (*chartRepoRepository.ChartRef, error)
GetDefault provides a mock function with given fields:
func (*ChartRefRepository) Save ¶ added in v0.6.17
func (_m *ChartRefRepository) Save(chartRepo *chartRepoRepository.ChartRef) error
Save provides a mock function with given fields: chartRepo
type ChartRepoRepository ¶ added in v0.6.21
ChartRepoRepository is an autogenerated mock type for the ChartRepoRepository type
func NewChartRepoRepository ¶ added in v0.6.21
func NewChartRepoRepository(t interface { mock.TestingT Cleanup(func()) }) *ChartRepoRepository
NewChartRepoRepository creates a new instance of ChartRepoRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*ChartRepoRepository) FindAll ¶ added in v0.6.21
func (_m *ChartRepoRepository) FindAll() ([]*chartRepoRepository.ChartRepo, error)
FindAll provides a mock function with given fields:
func (*ChartRepoRepository) FindAllWithDeploymentCount ¶ added in v0.6.21
func (_m *ChartRepoRepository) FindAllWithDeploymentCount() ([]*chartRepoRepository.ChartRepoWithDeploymentCount, error)
FindAllWithDeploymentCount provides a mock function with given fields:
func (*ChartRepoRepository) FindById ¶ added in v0.6.21
func (_m *ChartRepoRepository) FindById(id int) (*chartRepoRepository.ChartRepo, error)
FindById provides a mock function with given fields: id
func (*ChartRepoRepository) FindByName ¶ added in v0.6.21
func (_m *ChartRepoRepository) FindByName(name string) (*chartRepoRepository.ChartRepo, error)
FindByName provides a mock function with given fields: name
func (*ChartRepoRepository) FindDeploymentCountByChartRepoId ¶ added in v0.6.24
func (_m *ChartRepoRepository) FindDeploymentCountByChartRepoId(chartId int) (int, error)
FindDeploymentCountByChartRepoId provides a mock function with given fields: chartId
func (*ChartRepoRepository) GetConnection ¶ added in v0.6.21
func (_m *ChartRepoRepository) GetConnection() *pg.DB
GetConnection provides a mock function with given fields:
func (*ChartRepoRepository) GetDefault ¶ added in v0.6.21
func (_m *ChartRepoRepository) GetDefault() (*chartRepoRepository.ChartRepo, error)
GetDefault provides a mock function with given fields:
func (*ChartRepoRepository) MarkChartRepoDeleted ¶ added in v0.6.21
func (_m *ChartRepoRepository) MarkChartRepoDeleted(chartRepo *chartRepoRepository.ChartRepo, tx *pg.Tx) error
MarkChartRepoDeleted provides a mock function with given fields: chartRepo, tx
func (*ChartRepoRepository) Save ¶ added in v0.6.21
func (_m *ChartRepoRepository) Save(chartRepo *chartRepoRepository.ChartRepo, tx *pg.Tx) error
Save provides a mock function with given fields: chartRepo, tx
func (*ChartRepoRepository) Update ¶ added in v0.6.21
func (_m *ChartRepoRepository) Update(chartRepo *chartRepoRepository.ChartRepo, tx *pg.Tx) error
Update provides a mock function with given fields: chartRepo, tx
type ChartRepository ¶ added in v0.6.11
ChartRepository is an autogenerated mock type for the ChartRepository type
func NewChartRepository ¶ added in v0.6.11
func NewChartRepository(t interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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) FindChartRefIdForLatestChartForAppByAppId ¶ added in v0.6.17
func (_m *ChartRepository) FindChartRefIdForLatestChartForAppByAppId(appId int) (int, error)
FindChartRefIdForLatestChartForAppByAppId provides a mock function with given fields: appId
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
func (_m *ChartRepository) Save(_a0 *chartRepoRepository.Chart) error
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 ¶
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 ¶
func (_m *GlobalStrategyMetadataRepository) GetByChartRefId(chartRefId int) ([]*chartRepoRepository.GlobalStrategyMetadata, error)
GetByChartRefId provides a mock function with given fields: chartRefId