github.com/kubeshop/testkube@v1.17.23/pkg/api/v1/testkube/model_variables_extended.go (about) 1 /* 2 * Testkube API 3 * 4 * Testkube provides a Kubernetes-native framework for test definition, execution and results 5 * 6 * API version: 1.0.0 7 * Contact: testkube@kubeshop.io 8 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git) 9 */ 10 package testkube 11 12 type Variables map[string]Variable 13 14 func VariablesToMap(v Variables) map[string]string { 15 vars := make(map[string]string, len(v)) 16 17 for _, v := range v { 18 vars[v.Name] = v.Value 19 } 20 21 return vars 22 }