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

mocks

package
v0.6.21 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigMapHistoryService

type ConfigMapHistoryService struct {
	mock.Mock
}

ConfigMapHistoryService is an autogenerated mock type for the ConfigMapHistoryService type

func NewConfigMapHistoryService

func NewConfigMapHistoryService(t mockConstructorTestingTNewConfigMapHistoryService) *ConfigMapHistoryService

NewConfigMapHistoryService creates a new instance of ConfigMapHistoryService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ConfigMapHistoryService) ConvertConfigDataToComponentLevelDto

func (_m *ConfigMapHistoryService) ConvertConfigDataToComponentLevelDto(config *history.ConfigData, configType repository.ConfigType, userHasAdminAccess bool) (*history.ComponentLevelHistoryDetailDto, error)

ConvertConfigDataToComponentLevelDto provides a mock function with given fields: config, configType, userHasAdminAccess

func (*ConfigMapHistoryService) CreateCMCSHistoryForDeploymentTrigger

func (_m *ConfigMapHistoryService) CreateCMCSHistoryForDeploymentTrigger(pipeline *pipelineConfig.Pipeline, deployedOn time.Time, deployedBy int32) error

CreateCMCSHistoryForDeploymentTrigger provides a mock function with given fields: pipeline, deployedOn, deployedBy

func (*ConfigMapHistoryService) CreateHistoryFromAppLevelConfig

func (_m *ConfigMapHistoryService) CreateHistoryFromAppLevelConfig(appLevelConfig *chartConfig.ConfigMapAppModel, configType repository.ConfigType) error

CreateHistoryFromAppLevelConfig provides a mock function with given fields: appLevelConfig, configType

func (*ConfigMapHistoryService) CreateHistoryFromEnvLevelConfig

func (_m *ConfigMapHistoryService) CreateHistoryFromEnvLevelConfig(envLevelConfig *chartConfig.ConfigMapEnvModel, configType repository.ConfigType) error

CreateHistoryFromEnvLevelConfig provides a mock function with given fields: envLevelConfig, configType

func (*ConfigMapHistoryService) GetDeployedHistoryByPipelineIdAndWfrId

func (_m *ConfigMapHistoryService) GetDeployedHistoryByPipelineIdAndWfrId(pipelineId int, wfrId int, configType repository.ConfigType) (*repository.ConfigmapAndSecretHistory, bool, []string, error)

GetDeployedHistoryByPipelineIdAndWfrId provides a mock function with given fields: pipelineId, wfrId, configType

func (*ConfigMapHistoryService) GetDeployedHistoryDetailForCMCSByPipelineIdAndWfrId

func (_m *ConfigMapHistoryService) GetDeployedHistoryDetailForCMCSByPipelineIdAndWfrId(pipelineId int, wfrId int, configType repository.ConfigType, userHasAdminAccess bool) ([]*history.ComponentLevelHistoryDetailDto, error)

GetDeployedHistoryDetailForCMCSByPipelineIdAndWfrId provides a mock function with given fields: pipelineId, wfrId, configType, userHasAdminAccess

func (*ConfigMapHistoryService) GetDeployedHistoryList

func (_m *ConfigMapHistoryService) GetDeployedHistoryList(pipelineId int, baseConfigId int, configType repository.ConfigType, componentName string) ([]*history.DeployedHistoryComponentMetadataDto, error)

GetDeployedHistoryList provides a mock function with given fields: pipelineId, baseConfigId, configType, componentName

func (*ConfigMapHistoryService) GetDeploymentDetailsForDeployedCMCSHistory

func (_m *ConfigMapHistoryService) GetDeploymentDetailsForDeployedCMCSHistory(pipelineId int, configType repository.ConfigType) ([]*history.ConfigMapAndSecretHistoryDto, error)

GetDeploymentDetailsForDeployedCMCSHistory provides a mock function with given fields: pipelineId, configType

func (*ConfigMapHistoryService) GetHistoryForDeployedCMCSById

func (_m *ConfigMapHistoryService) GetHistoryForDeployedCMCSById(id int, pipelineId int, configType repository.ConfigType, componentName string, userHasAdminAccess bool) (*history.HistoryDetailDto, error)

GetHistoryForDeployedCMCSById provides a mock function with given fields: id, pipelineId, configType, componentName, userHasAdminAccess

func (*ConfigMapHistoryService) MergeAppLevelAndEnvLevelConfigs

func (_m *ConfigMapHistoryService) MergeAppLevelAndEnvLevelConfigs(appLevelConfig *chartConfig.ConfigMapAppModel, envLevelConfig *chartConfig.ConfigMapEnvModel, configType repository.ConfigType, configMapSecretNames []string) (string, error)

MergeAppLevelAndEnvLevelConfigs provides a mock function with given fields: appLevelConfig, envLevelConfig, configType, configMapSecretNames

Jump to

Keyboard shortcuts

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