github.com/kubeshop/testkube@v1.17.23/pkg/api/v1/testkube/model_test_source_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 TestSources []TestSource 13 14 func (list TestSources) Table() (header []string, output [][]string) { 15 header = []string{"Name", "Type_", "URI", "Labels"} 16 17 for _, e := range list { 18 uri := e.Uri 19 if uri == "" && e.Repository != nil { 20 uri = e.Repository.Uri 21 } 22 23 output = append(output, []string{ 24 e.Name, 25 e.Type_, 26 uri, 27 MapToString(e.Labels), 28 }) 29 } 30 31 return 32 }