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

helper

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendMinimalVersionDetailsInParentMetadataDtos

func AppendMinimalVersionDetailsInParentMetadataDtos(pluginParentIdVsPluginParentDtoMap map[int]*bean.PluginParentMetadataDto,
	pluginVersionsVsPluginsVersionDetailMap map[int]map[int]*bean.PluginsVersionDetail)

func GetAllUniqueTags

func GetAllUniqueTags(tags []*repository.PluginTag) []string

func GetIDs added in v1.2.2

func GetIDs[T IdGetter](items []T) []int

GetIDs is a generic function to get IDs

func GetParentPluginDtoMappings

func GetParentPluginDtoMappings(pluginsParentMetadata []*repository.PluginParentMetadata) (map[int]*bean.PluginParentMetadataDto, map[int]bool)

func GetPluginStepIdVsPluginStepVariablesMap added in v1.2.2

func GetPluginStepIdVsPluginStepVariablesMap(pluginStepVariables []*bean.PluginVariableDto) map[int][]*bean.PluginVariableDto

func GetPluginVersionAndDetailsMapping

func GetPluginVersionAndDetailsMapping(pluginVersionsMetadata []*repository.PluginMetadata, userIdVsEmailMap map[int32]string) map[int]map[int]*bean.PluginsVersionDetail

func GetPluginVersionAndParentPluginIdsMap

func GetPluginVersionAndParentPluginIdsMap(pluginVersionIds, parentPluginIds []int) (map[int]bool, map[int]bool)

func GetPluginVersionsMetadataByVersionAndParentPluginIds

func GetPluginVersionsMetadataByVersionAndParentPluginIds(pluginVersionsMetadata []*repository.PluginMetadata, pluginVersionIdsMap,
	parentPluginIdsMap map[int]bool) []*repository.PluginMetadata

func GetScriptIdList added in v1.2.2

func GetScriptIdList(stepsDto []*bean.PluginStepsDto) []int

func GetScriptIdVsPluginScript added in v1.2.2

func GetScriptIdVsPluginScript(pluginScripts []*bean.PluginPipelineScript) map[int]*bean.PluginPipelineScript

func GetScriptIdVsScriptArgsDetailsMap added in v1.2.2

func GetScriptIdVsScriptArgsDetailsMap(scriptArgDetails []*bean.ScriptPathArgPortMapping) map[int][]*bean.ScriptPathArgPortMapping

func PaginatePluginParentMetadata

func PaginatePluginParentMetadata(allPluginParentMetadata []*repository.PluginParentMetadata, size, offset int) []*repository.PluginParentMetadata

Types

type IdGetter added in v1.2.2

type IdGetter interface {
	// ID gets id field from struct wherever this interface is  implemented, see PluginStep sql object for example
	ID() int
}

Jump to

Keyboard shortcuts

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