mocks

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppRepository

type AppRepository struct {
	mock.Mock
}

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) FetchAllActiveDevtronAppsWithAppIdAndName added in v0.6.21

func (_m *AppRepository) FetchAllActiveDevtronAppsWithAppIdAndName() ([]*app.App, error)

FetchAllActiveDevtronAppsWithAppIdAndName provides a mock function with given fields:

func (*AppRepository) FetchAllActiveInstalledAppsWithAppIdAndName added in v0.6.21

func (_m *AppRepository) FetchAllActiveInstalledAppsWithAppIdAndName() ([]*app.App, error)

FetchAllActiveInstalledAppsWithAppIdAndName provides a mock function with given fields:

func (*AppRepository) FetchAppIdsWithFilter added in v0.6.21

func (_m *AppRepository) FetchAppIdsWithFilter(jobListingFilter helper.AppListingFilter) ([]int, error)

FetchAppIdsWithFilter provides a mock function with given fields: jobListingFilter

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) FindActiveById added in v0.6.21

func (_m *AppRepository) FindActiveById(id int) (*app.App, error)

FindActiveById provides a mock function with given fields: id

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) FindAllActiveAppsWithTeamByAppNameMatch added in v0.6.21

func (_m *AppRepository) FindAllActiveAppsWithTeamByAppNameMatch(appNameMatch string) ([]*app.App, error)

FindAllActiveAppsWithTeamByAppNameMatch provides a mock function with given fields: appNameMatch

func (*AppRepository) FindAllActiveAppsWithTeamWithTeamId added in v0.6.21

func (_m *AppRepository) FindAllActiveAppsWithTeamWithTeamId(teamID int) ([]*app.App, error)

FindAllActiveAppsWithTeamWithTeamId provides a mock function with given fields: teamID

func (*AppRepository) FindAllMatchesByAppName

func (_m *AppRepository) FindAllMatchesByAppName(appName string, appType helper.AppType) ([]*app.App, error)

FindAllMatchesByAppName provides a mock function with given fields: appName, appType

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) FindAppAndProjectByIdsIn added in v0.6.21

func (_m *AppRepository) FindAppAndProjectByIdsIn(ids []int) ([]*app.App, error)

FindAppAndProjectByIdsIn provides a mock function with given fields: ids

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

func (_m *AppRepository) FindAppsByTeamIds(teamId []int, appType string) ([]app.App, error)

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) FindByNames added in v0.6.23

func (_m *AppRepository) FindByNames(appNames []string) ([]*app.App, error)

FindByNames provides a mock function with given fields: appNames

func (*AppRepository) FindEnvironmentIdForInstalledApp added in v0.6.21

func (_m *AppRepository) FindEnvironmentIdForInstalledApp(appId int) (int, error)

FindEnvironmentIdForInstalledApp provides a mock function with given fields: appId

func (*AppRepository) FindIdsByNames added in v0.6.21

func (_m *AppRepository) FindIdsByNames(appNames []string) ([]int, error)

FindIdsByNames provides a mock function with given fields: appNames

func (*AppRepository) FindIdsByTeamIdsAndTeamNames added in v0.6.21

func (_m *AppRepository) FindIdsByTeamIdsAndTeamNames(teamIds []int, teamNames []string) ([]int, error)

FindIdsByTeamIdsAndTeamNames provides a mock function with given fields: teamIds, teamNames

func (*AppRepository) FindJobByDisplayName added in v0.6.21

func (_m *AppRepository) FindJobByDisplayName(appName string) (*app.App, error)

FindJobByDisplayName provides a mock function with given fields: appName

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

func (_m *AppRepository) SaveWithTxn(pipelineGroup *app.App, tx *pg.Tx) error

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

func (_m *AppRepository) UpdateWithTxn(_a0 *app.App, tx *pg.Tx) error

UpdateWithTxn provides a mock function with given fields: _a0, tx

Jump to

Keyboard shortcuts

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