Documentation ¶
Index ¶
- type ConfigMapHistoryService
- func (_m *ConfigMapHistoryService) ConvertConfigDataToComponentLevelDto(config *bean.ConfigData, configType repository.ConfigType, ...) (*history.ComponentLevelHistoryDetailDto, error)
- func (_m *ConfigMapHistoryService) CreateCMCSHistoryForDeploymentTrigger(pipeline *pipelineConfig.Pipeline, deployedOn time.Time, deployedBy int32) error
- func (_m *ConfigMapHistoryService) CreateHistoryFromAppLevelConfig(appLevelConfig *chartConfig.ConfigMapAppModel, ...) error
- func (_m *ConfigMapHistoryService) CreateHistoryFromEnvLevelConfig(envLevelConfig *chartConfig.ConfigMapEnvModel, ...) error
- func (_m *ConfigMapHistoryService) GetDeployedHistoryByPipelineIdAndWfrId(pipelineId int, wfrId int, configType repository.ConfigType) (*repository.ConfigmapAndSecretHistory, bool, []string, error)
- func (_m *ConfigMapHistoryService) GetDeployedHistoryDetailForCMCSByPipelineIdAndWfrId(pipelineId int, wfrId int, configType repository.ConfigType, ...) ([]*history.ComponentLevelHistoryDetailDto, error)
- func (_m *ConfigMapHistoryService) GetDeployedHistoryList(pipelineId int, baseConfigId int, configType repository.ConfigType, ...) ([]*history.DeployedHistoryComponentMetadataDto, error)
- func (_m *ConfigMapHistoryService) GetDeploymentDetailsForDeployedCMCSHistory(pipelineId int, configType repository.ConfigType) ([]*history.ConfigMapAndSecretHistoryDto, error)
- func (_m *ConfigMapHistoryService) GetHistoryForDeployedCMCSById(id int, pipelineId int, configType repository.ConfigType, componentName string, ...) (*history.HistoryDetailDto, error)
- func (_m *ConfigMapHistoryService) MergeAppLevelAndEnvLevelConfigs(appLevelConfig *chartConfig.ConfigMapAppModel, ...) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigMapHistoryService ¶
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 *bean.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