mocks

package
v0.6.10 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CiTemplateOverrideRepository

type CiTemplateOverrideRepository struct {
	mock.Mock
}

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

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

Save provides a mock function with given fields: templateOverrideConfig

func (*CiTemplateOverrideRepository) Update

Update provides a mock function with given fields: templateOverrideConfig

type CiTemplateRepository

type CiTemplateRepository struct {
	mock.Mock
}

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

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

type TerminalAccessRepository struct {
	mock.Mock
}

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

Jump to

Keyboard shortcuts

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