read

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigMapHistoryReadService

type ConfigMapHistoryReadService interface {
	GetHistoryForDeployedCMCSById(ctx context.Context, id, pipelineId int, configType repository.ConfigType, componentName string, userHasAdminAccess bool) (*bean.HistoryDetailDto, error)
	GetDeployedHistoryByPipelineIdAndWfrId(pipelineId, wfrId int, configType repository.ConfigType) (history *repository.ConfigmapAndSecretHistory, exists bool, cmCsNames []string, err error)
	GetDeployedHistoryList(pipelineId, baseConfigId int, configType repository.ConfigType, componentName string) ([]*bean.DeployedHistoryComponentMetadataDto, error)
	CheckIfTriggerHistoryExistsForPipelineIdOnTime(pipelineId int, deployedOn time.Time) (cmId int, csId int, exists bool, err error)
	GetDeployedHistoryDetailForCMCSByPipelineIdAndWfrId(ctx context.Context, pipelineId, wfrId int, configType repository.ConfigType, userHasAdminAccess bool) ([]*bean.ComponentLevelHistoryDetailDto, error)
	ConvertConfigDataToComponentLevelDto(config *bean2.ConfigData, configType repository.ConfigType, userHasAdminAccess bool) (*bean.ComponentLevelHistoryDetailDto, error)
	GetCmCsHistoryByWfrIdAndPipelineId(ctx context.Context, pipelineId int, wfrId int, configType repository.ConfigType, userHasAdminAccess bool) (*bean3.DeploymentAndCmCsConfig, error)
	GetCmCsListObjectFromHistory(history *repository.ConfigmapAndSecretHistory) (*bean4.ConfigsList, *bean4.SecretsList, error)
}

type ConfigMapHistoryReadServiceImpl

type ConfigMapHistoryReadServiceImpl struct {
	// contains filtered or unexported fields
}

func NewConfigMapHistoryReadService

func NewConfigMapHistoryReadService(
	logger *zap.SugaredLogger,
	configMapHistoryRepository repository.ConfigMapHistoryRepository,
	scopedVariableManager variables.ScopedVariableCMCSManager,
) *ConfigMapHistoryReadServiceImpl

func (*ConfigMapHistoryReadServiceImpl) CheckIfTriggerHistoryExistsForPipelineIdOnTime

func (impl *ConfigMapHistoryReadServiceImpl) CheckIfTriggerHistoryExistsForPipelineIdOnTime(pipelineId int, deployedOn time.Time) (cmId int, csId int, exists bool, err error)

func (*ConfigMapHistoryReadServiceImpl) ConvertConfigDataToComponentLevelDto

func (impl *ConfigMapHistoryReadServiceImpl) ConvertConfigDataToComponentLevelDto(config *bean2.ConfigData, configType repository.ConfigType, userHasAdminAccess bool) (*bean.ComponentLevelHistoryDetailDto, error)

func (*ConfigMapHistoryReadServiceImpl) GetCmCsHistoryByWfrIdAndPipelineId

func (impl *ConfigMapHistoryReadServiceImpl) GetCmCsHistoryByWfrIdAndPipelineId(ctx context.Context, pipelineId int, wfrId int, configType repository.ConfigType, userHasAdminAccess bool) (*bean3.DeploymentAndCmCsConfig, error)

func (*ConfigMapHistoryReadServiceImpl) GetCmCsListObjectFromHistory

func (*ConfigMapHistoryReadServiceImpl) GetDeployedHistoryByPipelineIdAndWfrId

func (impl *ConfigMapHistoryReadServiceImpl) GetDeployedHistoryByPipelineIdAndWfrId(pipelineId, wfrId int, configType repository.ConfigType) (history *repository.ConfigmapAndSecretHistory, exists bool, cmCsNames []string, err error)

func (*ConfigMapHistoryReadServiceImpl) GetDeployedHistoryDetailForCMCSByPipelineIdAndWfrId

func (impl *ConfigMapHistoryReadServiceImpl) GetDeployedHistoryDetailForCMCSByPipelineIdAndWfrId(ctx context.Context, pipelineId, wfrId int, configType repository.ConfigType, userHasAdminAccess bool) ([]*bean.ComponentLevelHistoryDetailDto, error)

func (*ConfigMapHistoryReadServiceImpl) GetDeployedHistoryList

func (impl *ConfigMapHistoryReadServiceImpl) GetDeployedHistoryList(pipelineId, baseConfigId int, configType repository.ConfigType, componentName string) ([]*bean.DeployedHistoryComponentMetadataDto, error)

func (*ConfigMapHistoryReadServiceImpl) GetHistoryForDeployedCMCSById

func (impl *ConfigMapHistoryReadServiceImpl) GetHistoryForDeployedCMCSById(ctx context.Context, id, pipelineId int, configType repository.ConfigType, componentName string, userHasAdminAccess bool) (*bean.HistoryDetailDto, error)

Jump to

Keyboard shortcuts

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