()
| 78 | } |
| 79 | |
| 80 | func annotate() map[string]string { |
| 81 | labels := map[string]string{} |
| 82 | for _, ev := range envvars { |
| 83 | key := strings.ReplaceAll(strings.ToLower(ev), "_", ".") |
| 84 | labels[key] = os.Getenv(ev) |
| 85 | } |
| 86 | return labels |
| 87 | } |
| 88 | |
| 89 | func BuildRequest(ctx context.Context, dir, configPath string, results []*QuerySetArchive, tags []string) (*pb.UploadArchiveRequest, error) { |
| 90 | conf, err := readFile(dir, configPath) |
no outgoing calls
no test coverage detected
searching dependent graphs…