Documentation ¶
Index ¶
- type AppRepository
- func (_m *AppRepository) CheckAppExists(appNames []string) ([]*app.App, error)
- func (_m *AppRepository) FetchAppsByFilterV2(appNameIncludes string, appNameExcludes string, environmentId int) ([]*app.App, error)
- func (_m *AppRepository) FindActiveByName(appName string) (*app.App, error)
- func (_m *AppRepository) FindActiveListByName(appName string) ([]*app.App, error)
- func (_m *AppRepository) FindAll() ([]*app.App, error)
- func (_m *AppRepository) FindAllActiveAppsWithTeam() ([]*app.App, error)
- func (_m *AppRepository) FindAllMatchesByAppName(appName string) ([]*app.App, error)
- func (_m *AppRepository) FindAppAndProjectByAppId(appId int) (*app.App, error)
- func (_m *AppRepository) FindAppAndProjectByAppName(appName string) (*app.App, error)
- func (_m *AppRepository) FindAppsByEnvironmentId(environmentId int) ([]app.App, error)
- func (_m *AppRepository) FindAppsByTeamId(teamId int) ([]*app.App, error)
- func (_m *AppRepository) FindAppsByTeamIds(teamId []int, appType string) ([]app.App, error)
- func (_m *AppRepository) FindAppsByTeamName(teamName string) ([]app.App, error)
- func (_m *AppRepository) FindById(id int) (*app.App, error)
- func (_m *AppRepository) FindByIds(ids []*int) ([]*app.App, error)
- func (_m *AppRepository) FindIdsByTeamIds(teamIds []int) ([]int, error)
- func (_m *AppRepository) GetConnection() *pg.DB
- func (_m *AppRepository) Save(pipelineGroup *app.App) error
- func (_m *AppRepository) SaveWithTxn(pipelineGroup *app.App, tx *pg.Tx) error
- func (_m *AppRepository) Update(_a0 *app.App) error
- func (_m *AppRepository) UpdateWithTxn(_a0 *app.App, tx *pg.Tx) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppRepository ¶
AppRepository is an autogenerated mock type for the AppRepository type
func NewAppRepository ¶
func NewAppRepository(t mockConstructorTestingTNewAppRepository) *AppRepository
NewAppRepository creates a new instance of AppRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*AppRepository) CheckAppExists ¶
func (_m *AppRepository) CheckAppExists(appNames []string) ([]*app.App, error)
CheckAppExists provides a mock function with given fields: appNames
func (*AppRepository) FetchAppsByFilterV2 ¶
func (_m *AppRepository) FetchAppsByFilterV2(appNameIncludes string, appNameExcludes string, environmentId int) ([]*app.App, error)
FetchAppsByFilterV2 provides a mock function with given fields: appNameIncludes, appNameExcludes, environmentId
func (*AppRepository) FindActiveByName ¶
func (_m *AppRepository) FindActiveByName(appName string) (*app.App, error)
FindActiveByName provides a mock function with given fields: appName
func (*AppRepository) FindActiveListByName ¶
func (_m *AppRepository) FindActiveListByName(appName string) ([]*app.App, error)
FindActiveListByName provides a mock function with given fields: appName
func (*AppRepository) FindAll ¶
func (_m *AppRepository) FindAll() ([]*app.App, error)
FindAll provides a mock function with given fields:
func (*AppRepository) FindAllActiveAppsWithTeam ¶
func (_m *AppRepository) FindAllActiveAppsWithTeam() ([]*app.App, error)
FindAllActiveAppsWithTeam provides a mock function with given fields:
func (*AppRepository) FindAllMatchesByAppName ¶
func (_m *AppRepository) FindAllMatchesByAppName(appName string) ([]*app.App, error)
FindAllMatchesByAppName provides a mock function with given fields: appName
func (*AppRepository) FindAppAndProjectByAppId ¶
func (_m *AppRepository) FindAppAndProjectByAppId(appId int) (*app.App, error)
FindAppAndProjectByAppId provides a mock function with given fields: appId
func (*AppRepository) FindAppAndProjectByAppName ¶
func (_m *AppRepository) FindAppAndProjectByAppName(appName string) (*app.App, error)
FindAppAndProjectByAppName provides a mock function with given fields: appName
func (*AppRepository) FindAppsByEnvironmentId ¶
func (_m *AppRepository) FindAppsByEnvironmentId(environmentId int) ([]app.App, error)
FindAppsByEnvironmentId provides a mock function with given fields: environmentId
func (*AppRepository) FindAppsByTeamId ¶
func (_m *AppRepository) FindAppsByTeamId(teamId int) ([]*app.App, error)
FindAppsByTeamId provides a mock function with given fields: teamId
func (*AppRepository) FindAppsByTeamIds ¶
FindAppsByTeamIds provides a mock function with given fields: teamId, appType
func (*AppRepository) FindAppsByTeamName ¶
func (_m *AppRepository) FindAppsByTeamName(teamName string) ([]app.App, error)
FindAppsByTeamName provides a mock function with given fields: teamName
func (*AppRepository) FindById ¶
func (_m *AppRepository) FindById(id int) (*app.App, error)
FindById provides a mock function with given fields: id
func (*AppRepository) FindByIds ¶
func (_m *AppRepository) FindByIds(ids []*int) ([]*app.App, error)
FindByIds provides a mock function with given fields: ids
func (*AppRepository) FindIdsByTeamIds ¶
func (_m *AppRepository) FindIdsByTeamIds(teamIds []int) ([]int, error)
FindIdsByTeamIds provides a mock function with given fields: teamIds
func (*AppRepository) GetConnection ¶
func (_m *AppRepository) GetConnection() *pg.DB
GetConnection provides a mock function with given fields:
func (*AppRepository) Save ¶
func (_m *AppRepository) Save(pipelineGroup *app.App) error
Save provides a mock function with given fields: pipelineGroup
func (*AppRepository) SaveWithTxn ¶
SaveWithTxn provides a mock function with given fields: pipelineGroup, tx
func (*AppRepository) Update ¶
func (_m *AppRepository) Update(_a0 *app.App) error
Update provides a mock function with given fields: _a0
func (*AppRepository) UpdateWithTxn ¶
UpdateWithTxn provides a mock function with given fields: _a0, tx