Documentation ¶
Index ¶
- Constants
- type GlobalPluginService
- type GlobalPluginServiceImpl
- func (impl *GlobalPluginServiceImpl) CreateNewPluginTagsAndRelationsIfRequired(pluginReq *bean2.PluginMetadataDto, isUpdateReq bool, userId int32, tx *pg.Tx) error
- func (impl *GlobalPluginServiceImpl) CreateNewPluginTagsAndRelationsIfRequiredV2(pluginReq *bean2.PluginsVersionDetail, userId int32, tx *pg.Tx) error
- func (impl *GlobalPluginServiceImpl) CreatePluginOrVersions(pluginDto *bean2.PluginParentMetadataDto, userId int32) (int, error)
- func (impl *GlobalPluginServiceImpl) CreatePluginTagRelations(pluginReq *bean2.PluginsVersionDetail, userId int32, tx *pg.Tx) error
- func (impl *GlobalPluginServiceImpl) CreateScriptPathArgPortMappingForPluginInlineStep(scriptPathArgPortMappings []*bean2.ScriptPathArgPortMapping, ...) error
- func (impl *GlobalPluginServiceImpl) GetAllDetailedPluginInfo() ([]*bean2.PluginMetadataDto, error)
- func (impl *GlobalPluginServiceImpl) GetAllGlobalVariables(appType helper.AppType) ([]*GlobalVariable, error)
- func (impl *GlobalPluginServiceImpl) GetAllPluginMinData() ([]*bean2.PluginMinDto, error)
- func (impl *GlobalPluginServiceImpl) GetAllUniqueTags() (*bean2.PluginTagsDto, error)
- func (impl *GlobalPluginServiceImpl) GetDetailedPluginInfoByPluginId(pluginId int) (*bean2.PluginMetadataDto, error)
- func (impl *GlobalPluginServiceImpl) GetPluginDetailById(pluginId int) (*bean2.PluginDetailDto, error)
- func (impl *GlobalPluginServiceImpl) GetPluginDetailV2(pluginVersionIds, parentPluginIds []int, fetchAllVersionDetails bool) (*bean2.PluginsDto, error)
- func (impl *GlobalPluginServiceImpl) GetPluginParentMetadataDtos(parentIdVsPluginParentDtoMap map[int]*bean2.PluginParentMetadataDto, ...) ([]*bean2.PluginParentMetadataDto, error)
- func (impl *GlobalPluginServiceImpl) GetRefPluginIdByRefPluginName(pluginName string) (pluginVersionDetail []bean2.PluginsVersionDetail, err error)
- func (impl *GlobalPluginServiceImpl) ListAllPlugins(stageTypeReq string) ([]*bean2.PluginListComponentDto, error)
- func (impl *GlobalPluginServiceImpl) ListAllPluginsV2(filter *bean2.PluginsListFilter) (*bean2.PluginsDto, error)
- func (impl *GlobalPluginServiceImpl) MigratePluginData() error
- func (impl *GlobalPluginServiceImpl) MigratePluginDataToParentPluginMetadata(pluginsMetadata []*repository.PluginMetadata) error
- func (impl *GlobalPluginServiceImpl) PatchPlugin(pluginDto *bean2.PluginMetadataDto, userId int32) (*bean2.PluginMetadataDto, error)
- func (impl *GlobalPluginServiceImpl) UpdatePluginPipelineScript(dbPluginPipelineScript *repository.PluginPipelineScript, ...) error
- type GlobalVariable
Constants ¶
View Source
const ( APP = "app" JOB = "job" DOCKER_IMAGE = "DOCKER_IMAGE" DEPLOYMENT_RELEASE_ID = "DEPLOYMENT_RELEASE_ID" DEPLOYMENT_UNIQUE_ID = "DEPLOYMENT_UNIQUE_ID" CD_TRIGGERED_BY = "CD_TRIGGERED_BY" CD_TRIGGER_TIME = "CD_TRIGGER_TIME" APP_NAME = "APP_NAME" JOB_NAME = "JOB_NAME" DEVTRON_CD_TRIGGERED_BY = "DEVTRON_CD_TRIGGERED_BY" DEVTRON_CD_TRIGGER_TIME = "DEVTRON_CD_TRIGGER_TIME" CD_PIPELINE_ENV_NAME_KEY = "CD_PIPELINE_ENV_NAME" CD_PIPELINE_CLUSTER_NAME_KEY = "CD_PIPELINE_CLUSTER_NAME" GIT_METADATA = "GIT_METADATA" CHILD_CD_METADATA = "CHILD_CD_METADATA" APP_LABEL_METADATA = "APP_LABEL_METADATA" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GlobalPluginService ¶
type GlobalPluginService interface { GetAllGlobalVariables(appType helper.AppType) ([]*GlobalVariable, error) ListAllPlugins(stageTypeReq string) ([]*bean2.PluginListComponentDto, error) GetPluginDetailById(pluginId int) (*bean2.PluginDetailDto, error) GetRefPluginIdByRefPluginName(pluginName string) (pluginVersionDetail []bean2.PluginsVersionDetail, err error) PatchPlugin(pluginDto *bean2.PluginMetadataDto, userId int32) (*bean2.PluginMetadataDto, error) GetDetailedPluginInfoByPluginId(pluginId int) (*bean2.PluginMetadataDto, error) GetAllDetailedPluginInfo() ([]*bean2.PluginMetadataDto, error) CreatePluginOrVersions(pluginDto *bean2.PluginParentMetadataDto, userId int32) (int, error) ListAllPluginsV2(filter *bean2.PluginsListFilter) (*bean2.PluginsDto, error) GetPluginDetailV2(pluginVersionIds, parentPluginIds []int, fetchAllVersionDetails bool) (*bean2.PluginsDto, error) GetAllUniqueTags() (*bean2.PluginTagsDto, error) GetAllPluginMinData() ([]*bean2.PluginMinDto, error) MigratePluginData() error }
type GlobalPluginServiceImpl ¶
type GlobalPluginServiceImpl struct {
// contains filtered or unexported fields
}
func NewGlobalPluginService ¶
func NewGlobalPluginService(logger *zap.SugaredLogger, globalPluginRepository repository.GlobalPluginRepository, pipelineStageRepository repository2.PipelineStageRepository, userService user.UserService) *GlobalPluginServiceImpl
func (*GlobalPluginServiceImpl) CreateNewPluginTagsAndRelationsIfRequired ¶ added in v0.6.26
func (impl *GlobalPluginServiceImpl) CreateNewPluginTagsAndRelationsIfRequired(pluginReq *bean2.PluginMetadataDto, isUpdateReq bool, userId int32, tx *pg.Tx) error
func (*GlobalPluginServiceImpl) CreateNewPluginTagsAndRelationsIfRequiredV2 ¶ added in v0.7.3
func (impl *GlobalPluginServiceImpl) CreateNewPluginTagsAndRelationsIfRequiredV2(pluginReq *bean2.PluginsVersionDetail, userId int32, tx *pg.Tx) error
func (*GlobalPluginServiceImpl) CreatePluginOrVersions ¶ added in v0.7.3
func (impl *GlobalPluginServiceImpl) CreatePluginOrVersions(pluginDto *bean2.PluginParentMetadataDto, userId int32) (int, error)
func (*GlobalPluginServiceImpl) CreatePluginTagRelations ¶ added in v0.7.3
func (impl *GlobalPluginServiceImpl) CreatePluginTagRelations(pluginReq *bean2.PluginsVersionDetail, userId int32, tx *pg.Tx) error
func (*GlobalPluginServiceImpl) CreateScriptPathArgPortMappingForPluginInlineStep ¶ added in v0.6.26
func (impl *GlobalPluginServiceImpl) CreateScriptPathArgPortMappingForPluginInlineStep(scriptPathArgPortMappings []*bean2.ScriptPathArgPortMapping, pluginPipelineScriptId int, userId int32, tx *pg.Tx) error
func (*GlobalPluginServiceImpl) GetAllDetailedPluginInfo ¶ added in v0.6.26
func (impl *GlobalPluginServiceImpl) GetAllDetailedPluginInfo() ([]*bean2.PluginMetadataDto, error)
func (*GlobalPluginServiceImpl) GetAllGlobalVariables ¶
func (impl *GlobalPluginServiceImpl) GetAllGlobalVariables(appType helper.AppType) ([]*GlobalVariable, error)
func (*GlobalPluginServiceImpl) GetAllPluginMinData ¶ added in v0.7.3
func (impl *GlobalPluginServiceImpl) GetAllPluginMinData() ([]*bean2.PluginMinDto, error)
func (*GlobalPluginServiceImpl) GetAllUniqueTags ¶ added in v0.7.2
func (impl *GlobalPluginServiceImpl) GetAllUniqueTags() (*bean2.PluginTagsDto, error)
func (*GlobalPluginServiceImpl) GetDetailedPluginInfoByPluginId ¶ added in v0.6.26
func (impl *GlobalPluginServiceImpl) GetDetailedPluginInfoByPluginId(pluginId int) (*bean2.PluginMetadataDto, error)
func (*GlobalPluginServiceImpl) GetPluginDetailById ¶
func (impl *GlobalPluginServiceImpl) GetPluginDetailById(pluginId int) (*bean2.PluginDetailDto, error)
func (*GlobalPluginServiceImpl) GetPluginDetailV2 ¶ added in v0.7.2
func (impl *GlobalPluginServiceImpl) GetPluginDetailV2(pluginVersionIds, parentPluginIds []int, fetchAllVersionDetails bool) (*bean2.PluginsDto, error)
GetPluginDetailV2 returns all details of the of a plugin version according to the pluginVersionIds and parentPluginIds provided by user, and minimal data for all versions of that plugin.
func (*GlobalPluginServiceImpl) GetPluginParentMetadataDtos ¶ added in v0.7.2
func (impl *GlobalPluginServiceImpl) GetPluginParentMetadataDtos(parentIdVsPluginParentDtoMap map[int]*bean2.PluginParentMetadataDto, versionIdVsPluginsVersionDetailMap map[int]map[int]*bean2.PluginsVersionDetail, pluginVersionsIdToInclude map[int]bool, fetchAllVersionDetails bool) ([]*bean2.PluginParentMetadataDto, error)
GetPluginParentMetadataDtos populates PluginParentMetadataDto with all metadata(if a version is not latest then ignores populating heavy objects such as input and output variables in the dto) and returns the same with error if any.
func (*GlobalPluginServiceImpl) GetRefPluginIdByRefPluginName ¶ added in v0.6.26
func (impl *GlobalPluginServiceImpl) GetRefPluginIdByRefPluginName(pluginName string) (pluginVersionDetail []bean2.PluginsVersionDetail, err error)
func (*GlobalPluginServiceImpl) ListAllPlugins ¶
func (impl *GlobalPluginServiceImpl) ListAllPlugins(stageTypeReq string) ([]*bean2.PluginListComponentDto, error)
func (*GlobalPluginServiceImpl) ListAllPluginsV2 ¶ added in v0.7.2
func (impl *GlobalPluginServiceImpl) ListAllPluginsV2(filter *bean2.PluginsListFilter) (*bean2.PluginsDto, error)
func (*GlobalPluginServiceImpl) MigratePluginData ¶ added in v0.7.2
func (impl *GlobalPluginServiceImpl) MigratePluginData() error
func (*GlobalPluginServiceImpl) MigratePluginDataToParentPluginMetadata ¶ added in v0.7.2
func (impl *GlobalPluginServiceImpl) MigratePluginDataToParentPluginMetadata(pluginsMetadata []*repository.PluginMetadata) error
MigratePluginDataToParentPluginMetadata migrates pre-existing plugin metadata from plugin_metadata table into plugin_parent_metadata table, and also populate plugin_parent_metadata_id in plugin_metadata.
func (*GlobalPluginServiceImpl) PatchPlugin ¶ added in v0.6.26
func (impl *GlobalPluginServiceImpl) PatchPlugin(pluginDto *bean2.PluginMetadataDto, userId int32) (*bean2.PluginMetadataDto, error)
func (*GlobalPluginServiceImpl) UpdatePluginPipelineScript ¶ added in v0.6.26
func (impl *GlobalPluginServiceImpl) UpdatePluginPipelineScript(dbPluginPipelineScript *repository.PluginPipelineScript, pluginPipelineScriptReq *bean2.PluginPipelineScript, userId int32, tx *pg.Tx) error
Click to show internal directories.
Click to hide internal directories.