utils

package
v0.0.0-...-900a62f Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddALVersion

func AddALVersion(fileName string, data map[string]interface{}) map[string]map[string]interface{}

func AddGolangVersion

func AddGolangVersion(fileName string, data map[string]interface{}) map[string]map[string]interface{}

func AddPythonVersion

func AddPythonVersion(fileName string, data map[string]interface{}) map[string]map[string]interface{}

func AddReleaseBranch

func AddReleaseBranch(fileName string, data map[string]interface{}) map[string]map[string]interface{}

func AppendMap

func AppendMap(current map[string]interface{}, new map[string]interface{}) map[string]interface{}

func ExecuteTemplate

func ExecuteTemplate(templateContent string, data interface{}) ([]byte, error)

func GenerateJobConfig

func GenerateJobConfig(data interface{}, filePath string) (types.JobConfig, error)

func GetJobsByType

func GetJobsByType(repos []string, jobType string) (map[string]map[string]types.JobConfig, error)

func RunMappers

func RunMappers(jobsToData map[string]map[string]interface{}, mappers []func(string, map[string]interface{}) map[string]map[string]interface{})

func UnmarshalJobs

func UnmarshalJobs(jobDir string) (map[string]types.JobConfig, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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