Help us shape the future of Go! Take the 2026 Go Developer Survey

mocks

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2025 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 InfraConfigRepository

type InfraConfigRepository struct {
	mock.Mock
}

InfraConfigRepository is an autogenerated mock type for the InfraConfigRepository type

func NewInfraConfigRepository

func NewInfraConfigRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *InfraConfigRepository

NewInfraConfigRepository creates a new instance of InfraConfigRepository. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*InfraConfigRepository) CheckIfProfileExistsByName

func (_m *InfraConfigRepository) CheckIfProfileExistsByName(name string) (bool, error)

CheckIfProfileExistsByName provides a mock function with given fields: name

func (*InfraConfigRepository) CommitTx

func (_m *InfraConfigRepository) CommitTx(tx *pg.Tx) error

CommitTx provides a mock function with given fields: tx

func (*InfraConfigRepository) CreateConfigurations

func (_m *InfraConfigRepository) CreateConfigurations(tx *pg.Tx, configurations []*repository.InfraProfileConfigurationEntity) error

CreateConfigurations provides a mock function with given fields: tx, configurations

func (*InfraConfigRepository) CreatePlatformProfileMapping

func (_m *InfraConfigRepository) CreatePlatformProfileMapping(tx *pg.Tx, platformMapping []*repository.ProfilePlatformMapping) error

CreatePlatformProfileMapping provides a mock function with given fields: tx, platformMapping

func (*InfraConfigRepository) CreateProfile

func (_m *InfraConfigRepository) CreateProfile(tx *pg.Tx, infraProfile *repository.InfraProfileEntity) error

CreateProfile provides a mock function with given fields: tx, infraProfile

func (*InfraConfigRepository) DeleteConfigurations

func (_m *InfraConfigRepository) DeleteConfigurations(tx *pg.Tx, profileId int) error

DeleteConfigurations provides a mock function with given fields: tx, profileId

func (*InfraConfigRepository) DeleteProfile

func (_m *InfraConfigRepository) DeleteProfile(tx *pg.Tx, id int) error

DeleteProfile provides a mock function with given fields: tx, id

func (*InfraConfigRepository) DeleteProfilePlatformMapping

func (_m *InfraConfigRepository) DeleteProfilePlatformMapping(tx *pg.Tx, profileId int) error

DeleteProfilePlatformMapping provides a mock function with given fields: tx, profileId

func (*InfraConfigRepository) GetActiveProfileNames

func (_m *InfraConfigRepository) GetActiveProfileNames() ([]string, error)

GetActiveProfileNames provides a mock function with given fields:

func (*InfraConfigRepository) GetActiveUniquePlatformNames

func (_m *InfraConfigRepository) GetActiveUniquePlatformNames() ([]string, error)

GetActiveUniquePlatformNames provides a mock function with given fields:

func (*InfraConfigRepository) GetAllActiveProfilesIds

func (_m *InfraConfigRepository) GetAllActiveProfilesIds() ([]int, error)

GetAllActiveProfilesIds provides a mock function with given fields:

func (*InfraConfigRepository) GetConfigurationsByProfileId

func (_m *InfraConfigRepository) GetConfigurationsByProfileId(profileId int) ([]*repository.InfraProfileConfigurationEntity, error)

GetConfigurationsByProfileId provides a mock function with given fields: profileId

func (*InfraConfigRepository) GetConfigurationsByProfileIds

func (_m *InfraConfigRepository) GetConfigurationsByProfileIds(profileIds []int) ([]*repository.InfraProfileConfigurationEntity, error)

GetConfigurationsByProfileIds provides a mock function with given fields: profileIds

func (*InfraConfigRepository) GetConfigurationsByProfileName

func (_m *InfraConfigRepository) GetConfigurationsByProfileName(profileName string) ([]*repository.InfraProfileConfigurationEntity, error)

GetConfigurationsByProfileName provides a mock function with given fields: profileName

func (*InfraConfigRepository) GetPlatformListByProfileId

func (_m *InfraConfigRepository) GetPlatformListByProfileId(profileId int) ([]string, error)

GetPlatformListByProfileId provides a mock function with given fields: profileId

func (*InfraConfigRepository) GetPlatformsByProfileById

func (_m *InfraConfigRepository) GetPlatformsByProfileById(profileId int) ([]*repository.ProfilePlatformMapping, error)

GetPlatformsByProfileById provides a mock function with given fields: profileId

func (*InfraConfigRepository) GetPlatformsByProfileIds

func (_m *InfraConfigRepository) GetPlatformsByProfileIds(profileIds []int) ([]*repository.ProfilePlatformMapping, error)

GetPlatformsByProfileIds provides a mock function with given fields: profileIds

func (*InfraConfigRepository) GetPlatformsByProfileName

func (_m *InfraConfigRepository) GetPlatformsByProfileName(profileName string) ([]*repository.ProfilePlatformMapping, error)

GetPlatformsByProfileName provides a mock function with given fields: profileName

func (*InfraConfigRepository) GetProfileById

func (_m *InfraConfigRepository) GetProfileById(profileId int) (*repository.InfraProfileEntity, error)

GetProfileById provides a mock function with given fields: profileId

func (*InfraConfigRepository) GetProfileByName

func (_m *InfraConfigRepository) GetProfileByName(name string) (*repository.InfraProfileEntity, error)

GetProfileByName provides a mock function with given fields: name

func (*InfraConfigRepository) GetProfileIdByName

func (_m *InfraConfigRepository) GetProfileIdByName(name string) (int, error)

GetProfileIdByName provides a mock function with given fields: name

func (*InfraConfigRepository) GetProfileList

func (_m *InfraConfigRepository) GetProfileList(profileNameLike string) ([]*repository.InfraProfileEntity, error)

GetProfileList provides a mock function with given fields: profileNameLike

func (*InfraConfigRepository) GetProfileListByIds

func (_m *InfraConfigRepository) GetProfileListByIds(profileIds []int, includeDefault bool) ([]*repository.InfraProfileEntity, error)

GetProfileListByIds provides a mock function with given fields: profileIds, includeDefault

func (*InfraConfigRepository) GetProfilesWhichContainsAllDefaultConfigurationKeysUsingProfileName

func (_m *InfraConfigRepository) GetProfilesWhichContainsAllDefaultConfigurationKeysUsingProfileName() ([]int, error)

GetProfilesWhichContainsAllDefaultConfigurationKeysUsingProfileName provides a mock function with given fields:

func (*InfraConfigRepository) GetProfilesWhichContainsAllDefaultConfigurationKeysWithProfileId

func (_m *InfraConfigRepository) GetProfilesWhichContainsAllDefaultConfigurationKeysWithProfileId(defaultProfileId int) ([]int, error)

GetProfilesWhichContainsAllDefaultConfigurationKeysWithProfileId provides a mock function with given fields: defaultProfileId

func (*InfraConfigRepository) RollbackTx

func (_m *InfraConfigRepository) RollbackTx(tx *pg.Tx) error

RollbackTx provides a mock function with given fields: tx

func (*InfraConfigRepository) StartTx

func (_m *InfraConfigRepository) StartTx() (*pg.Tx, error)

StartTx provides a mock function with given fields:

func (*InfraConfigRepository) UpdateBuildxDriverTypeInAllProfiles

func (_m *InfraConfigRepository) UpdateBuildxDriverTypeInAllProfiles(tx *pg.Tx, buildxDriverType v1.BuildxDriver) error

UpdateBuildxDriverTypeInAllProfiles provides a mock function with given fields: tx, buildxDriverType

func (*InfraConfigRepository) UpdateConfigurations

func (_m *InfraConfigRepository) UpdateConfigurations(tx *pg.Tx, configurations []*repository.InfraProfileConfigurationEntity) error

UpdateConfigurations provides a mock function with given fields: tx, configurations

func (*InfraConfigRepository) UpdatePlatformProfileMapping

func (_m *InfraConfigRepository) UpdatePlatformProfileMapping(tx *pg.Tx, platformMappings []*repository.ProfilePlatformMapping) error

UpdatePlatformProfileMapping provides a mock function with given fields: tx, platformMappings

func (*InfraConfigRepository) UpdateProfile

func (_m *InfraConfigRepository) UpdateProfile(tx *pg.Tx, profileName string, profile *repository.InfraProfileEntity) error

UpdateProfile provides a mock function with given fields: tx, profileName, profile

Jump to

Keyboard shortcuts

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