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
- type TerminalAccessRepository
- func (_m *TerminalAccessRepository) FetchAllTemplates() ([]*models.TerminalAccessTemplates, error)
- func (_m *TerminalAccessRepository) FetchTerminalAccessTemplate(templateName string) (*models.TerminalAccessTemplates, error)
- func (_m *TerminalAccessRepository) GetAllRunningUserTerminalData() ([]*models.UserTerminalAccessData, error)
- func (_m *TerminalAccessRepository) GetUserTerminalAccessData(id int) (*models.UserTerminalAccessData, error)
- func (_m *TerminalAccessRepository) GetUserTerminalAccessDataByUser(userId int32) ([]*models.UserTerminalAccessData, error)
- func (_m *TerminalAccessRepository) SaveUserTerminalAccessData(data *models.UserTerminalAccessData) error
- func (_m *TerminalAccessRepository) UpdateUserTerminalAccessData(data *models.UserTerminalAccessData) error
- func (_m *TerminalAccessRepository) UpdateUserTerminalStatus(id int, status string) 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
type TerminalAccessRepository ¶ added in v0.6.10
TerminalAccessRepository is an autogenerated mock type for the TerminalAccessRepository type
func NewTerminalAccessRepository ¶ added in v0.6.10
func NewTerminalAccessRepository(t mockConstructorTestingTNewTerminalAccessRepository) *TerminalAccessRepository
NewTerminalAccessRepository creates a new instance of TerminalAccessRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*TerminalAccessRepository) FetchAllTemplates ¶ added in v0.6.10
func (_m *TerminalAccessRepository) FetchAllTemplates() ([]*models.TerminalAccessTemplates, error)
FetchAllTemplates provides a mock function with given fields:
func (*TerminalAccessRepository) FetchTerminalAccessTemplate ¶ added in v0.6.10
func (_m *TerminalAccessRepository) FetchTerminalAccessTemplate(templateName string) (*models.TerminalAccessTemplates, error)
FetchTerminalAccessTemplate provides a mock function with given fields: templateName
func (*TerminalAccessRepository) GetAllRunningUserTerminalData ¶ added in v0.6.10
func (_m *TerminalAccessRepository) GetAllRunningUserTerminalData() ([]*models.UserTerminalAccessData, error)
GetAllRunningUserTerminalData provides a mock function with given fields:
func (*TerminalAccessRepository) GetUserTerminalAccessData ¶ added in v0.6.10
func (_m *TerminalAccessRepository) GetUserTerminalAccessData(id int) (*models.UserTerminalAccessData, error)
GetUserTerminalAccessData provides a mock function with given fields: id
func (*TerminalAccessRepository) GetUserTerminalAccessDataByUser ¶ added in v0.6.10
func (_m *TerminalAccessRepository) GetUserTerminalAccessDataByUser(userId int32) ([]*models.UserTerminalAccessData, error)
GetUserTerminalAccessDataByUser provides a mock function with given fields: userId
func (*TerminalAccessRepository) SaveUserTerminalAccessData ¶ added in v0.6.10
func (_m *TerminalAccessRepository) SaveUserTerminalAccessData(data *models.UserTerminalAccessData) error
SaveUserTerminalAccessData provides a mock function with given fields: data
func (*TerminalAccessRepository) UpdateUserTerminalAccessData ¶ added in v0.6.10
func (_m *TerminalAccessRepository) UpdateUserTerminalAccessData(data *models.UserTerminalAccessData) error
UpdateUserTerminalAccessData provides a mock function with given fields: data
func (*TerminalAccessRepository) UpdateUserTerminalStatus ¶ added in v0.6.10
func (_m *TerminalAccessRepository) UpdateUserTerminalStatus(id int, status string) error
UpdateUserTerminalStatus provides a mock function with given fields: id, status