Debian Codegraph @

cmd/mdatagen/internal/templates/readme.md.tmpl

raw
1 <!-- status autogenerated section -->
2 {{- if len .Status.Stability }}
3 | Status | |
4 | ------------- |-----------|
5 {{- $class := .Status.Class }}
6 {{- $shortName := .ShortFolderName }}
7 {{- if ne $class "connector" }}
8 {{- $idx := 0 }}
9 {{- range $stability, $value := .Status.Stability }}
10 | {{ if not $idx }}Stability{{ else }} {{ end }} | [{{ toLowerCase $stability.String }}]{{ if and (ne $class "extension") (ne $class "converter") (ne $class "provider") }}: {{ stringsJoin $value ", " }} {{ end }} |
11 {{- $idx = inc $idx }}
12 {{- end }}
13 {{- if .Status.Deprecation }}
14 {{- range $deprecation, $value := .Status.Deprecation }}
15 | Deprecation of {{ toLowerCase $deprecation }} | [Date]: {{ $value.Date }}{{ if and (ne $class "extension") (ne $class "converter") (ne $class "provider") }} {{ end }} |
16 | | [Migration Note]: {{ $value.Migration }}{{ if ne $class "extension" }} {{ end }} |
17 {{- end }}
18 {{- end }}
19 {{- end}}
20 {{- if .Status.UnsupportedPlatforms }}
21 | Unsupported Platforms | {{ stringsJoin .Status.UnsupportedPlatforms ", " }} |
22 {{- end }}
23 {{- if and (ne $class "cmd") (ne $class "pkg") }}
24 | Distributions | [{{ stringsJoin .Status.SortedDistributions "], [" }}] |
25 {{- end }}
26 {{- if .Status.Warnings }}
27 | Warnings | [{{ stringsJoin .Status.Warnings ", " }}](#warnings) |
28 {{- end }}
29 {{- if ne $class "" }}
30 | Issues | [![Open issues](https://img.shields.io/github/issues-search/{{ .GithubProject }}?query=is%3Aissue%20is%3Aopen%20label%3A{{ $class }}%2F{{ $shortName }}%20&label=open&color=orange&logo=opentelemetry)](https://github.com/{{ .GithubProject }}/issues?q=is%3Aopen+is%3Aissue+label%3A{{ $class }}%2F{{ $shortName }}) [![Closed issues](https://img.shields.io/github/issues-search/{{ .GithubProject }}?query=is%3Aissue%20is%3Aclosed%20label%3A{{ $class }}%2F{{ $shortName }}%20&label=closed&color=blue&logo=opentelemetry)](https://github.com/{{ .GithubProject }}/issues?q=is%3Aclosed+is%3Aissue+label%3A{{ $class }}%2F{{ $shortName }}) |
31 {{- if not .Status.DisableCodeCov }}
32 | Code coverage | [![codecov](https://codecov.io/github/{{ .GithubProject }}/graph/main/badge.svg?component={{ .GetCodeCovComponentID }})](https://app.codecov.io/gh/{{ .GithubProject}}/tree/main/?components%5B0%5D={{ .GetCodeCovComponentID }}&displayType=list) |
33 {{- end }}
34 {{- end }}
35 {{- if .Status.Codeowners }}
36 {{- $codeowners := userLinks .Status.Codeowners.Active }}
37 {{- $emeritus := userLinks .Status.Codeowners.Emeritus }}
38 | [Code Owners](https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/CONTRIBUTING.md#becoming-a-code-owner) | {{ stringsJoin $codeowners ", " }} {{ if .Status.Codeowners.SeekingNew }}\| Seeking more code owners! {{ end }}|
39 {{- if $emeritus }}
40 | Emeritus | {{ stringsJoin $emeritus ", " }} |
41 {{- end }}
42 {{- end }}
43 {{range $stability, $val := .Status.Stability}}
44 [{{ toLowerCase $stability.String }}]: https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/component-stability.md#{{ toLowerCase $stability.String }}
45 {{- end }}
46 {{- if .Status.Deprecation }}
47 [Date]: https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/component-stability.md#deprecation-information
48 [Migration Note]: https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/component-stability.md#deprecation-information
49 {{- end }}
50 {{- range .Status.SortedDistributions }}
51 [{{.}}]: {{ distroURL . }}
52 {{- end }}
53 {{- if eq $class "connector"}}
54
55 ## Supported Pipeline Types
56
57 | [Exporter Pipeline Type] | [Receiver Pipeline Type] | [Stability Level] |
58 | ------------------------ | ------------------------ | ----------------- |
59 {{- range $stability, $pipelines := .Status.Stability }}
60 {{- range $pipeline := $pipelines }}
61 {{- $parts := stringsSplit $pipeline "_to_" }}
62 | {{index $parts 0}} | {{index $parts 1}} | [{{ toLowerCase $stability.String }}] |
63 {{- end }}
64 {{- end }}
65
66 [Exporter Pipeline Type]: https://github.com/open-telemetry/opentelemetry-collector/blob/main/connector/README.md#exporter-pipeline-type
67 [Receiver Pipeline Type]: https://github.com/open-telemetry/opentelemetry-collector/blob/main/connector/README.md#receiver-pipeline-type
68 [Stability Level]: https://github.com/open-telemetry/opentelemetry-collector/blob/main/docs/component-stability.md#stability-levels
69 {{- end }}
70 {{- end }}
71 <!-- end autogenerated section -->