Documentation ¶
Index ¶
- type CiTemplateOverrideRepository
- func (_m *CiTemplateOverrideRepository) FindByAppId(appId int) ([]*pipelineConfig.CiTemplateOverride, error)
- func (_m *CiTemplateOverrideRepository) FindByCiPipelineId(ciPipelineId int) (*pipelineConfig.CiTemplateOverride, error)
- func (_m *CiTemplateOverrideRepository) Save(templateOverrideConfig *pipelineConfig.CiTemplateOverride) (*pipelineConfig.CiTemplateOverride, error)
- func (_m *CiTemplateOverrideRepository) Update(templateOverrideConfig *pipelineConfig.CiTemplateOverride) (*pipelineConfig.CiTemplateOverride, error)
- type CiTemplateRepository
- func (_m *CiTemplateRepository) FindByAppId(appId int) (*pipelineConfig.CiTemplate, error)
- func (_m *CiTemplateRepository) FindByDockerRegistryId(dockerRegistryId string) ([]*pipelineConfig.CiTemplate, error)
- func (_m *CiTemplateRepository) FindNumberOfAppsWithDockerConfigured(appIds []int) (int, error)
- func (_m *CiTemplateRepository) Save(material *pipelineConfig.CiTemplate) error
- func (_m *CiTemplateRepository) Update(material *pipelineConfig.CiTemplate) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CiTemplateOverrideRepository ¶
CiTemplateOverrideRepository is an autogenerated mock type for the CiTemplateOverrideRepository type
func NewCiTemplateOverrideRepository ¶
func NewCiTemplateOverrideRepository(t mockConstructorTestingTNewCiTemplateOverrideRepository) *CiTemplateOverrideRepository
NewCiTemplateOverrideRepository creates a new instance of CiTemplateOverrideRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*CiTemplateOverrideRepository) FindByAppId ¶
func (_m *CiTemplateOverrideRepository) FindByAppId(appId int) ([]*pipelineConfig.CiTemplateOverride, error)
FindByAppId provides a mock function with given fields: appId
func (*CiTemplateOverrideRepository) FindByCiPipelineId ¶
func (_m *CiTemplateOverrideRepository) FindByCiPipelineId(ciPipelineId int) (*pipelineConfig.CiTemplateOverride, error)
FindByCiPipelineId provides a mock function with given fields: ciPipelineId
func (*CiTemplateOverrideRepository) Save ¶
func (_m *CiTemplateOverrideRepository) Save(templateOverrideConfig *pipelineConfig.CiTemplateOverride) (*pipelineConfig.CiTemplateOverride, error)
Save provides a mock function with given fields: templateOverrideConfig
func (*CiTemplateOverrideRepository) Update ¶
func (_m *CiTemplateOverrideRepository) Update(templateOverrideConfig *pipelineConfig.CiTemplateOverride) (*pipelineConfig.CiTemplateOverride, error)
Update provides a mock function with given fields: templateOverrideConfig
type CiTemplateRepository ¶
CiTemplateRepository is an autogenerated mock type for the CiTemplateRepository type
func NewCiTemplateRepository ¶
func NewCiTemplateRepository(t mockConstructorTestingTNewCiTemplateRepository) *CiTemplateRepository
NewCiTemplateRepository creates a new instance of CiTemplateRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*CiTemplateRepository) FindByAppId ¶
func (_m *CiTemplateRepository) FindByAppId(appId int) (*pipelineConfig.CiTemplate, error)
FindByAppId provides a mock function with given fields: appId
func (*CiTemplateRepository) FindByDockerRegistryId ¶
func (_m *CiTemplateRepository) FindByDockerRegistryId(dockerRegistryId string) ([]*pipelineConfig.CiTemplate, error)
FindByDockerRegistryId provides a mock function with given fields: dockerRegistryId
func (*CiTemplateRepository) FindNumberOfAppsWithDockerConfigured ¶
func (_m *CiTemplateRepository) FindNumberOfAppsWithDockerConfigured(appIds []int) (int, error)
FindNumberOfAppsWithDockerConfigured provides a mock function with given fields: appIds
func (*CiTemplateRepository) Save ¶
func (_m *CiTemplateRepository) Save(material *pipelineConfig.CiTemplate) error
Save provides a mock function with given fields: material
func (*CiTemplateRepository) Update ¶
func (_m *CiTemplateRepository) Update(material *pipelineConfig.CiTemplate) error
Update provides a mock function with given fields: material