Adapt templates to generator tool definitions

pull/6117/head
Sven Rebhan 2025-06-02 17:21:47 +02:00
parent b32c482ab3
commit afd475aa59
5 changed files with 33 additions and 19 deletions

View File

@ -6,10 +6,14 @@ menu:
name: {{.Name}}
identifier: aggregator-{{.ID}}
tags: [{{.Name}}, "aggregator-plugins", "configuration"{{range .Tags}}, "{{.}}"{{end}}]
{{if .Introduced}}introduced: "{{.Introduced}}"{{end}}
{{if .Deprecated}}deprecated: "{{.Deprecated}}"{{end}}
{{if .Removal}}removal: "{{.Removal}}"{{end}}
{{if .OS}}os_support: "{{.OS}}"{{end}}
introduced: "{{.Introduced}}"
{{- with .Deprecated}}
deprecated: {{.}}
{{- end}}
{{- with .Removal}}
removal: {{.}}
{{- end}}
os_support: "{{.OSTags | join ", "}}"
related:
- /telegraf/v1/configure_plugins/
- {{.URL}}, {{.Name}} Plugin Source

View File

@ -6,10 +6,14 @@ menu:
name: {{.Name}}
identifier: input-{{.ID}}
tags: [{{.Name}}, "input-plugins", "configuration"{{range .Tags}}, "{{.}}"{{end}}]
{{if .Introduced}}introduced: "{{.Introduced}}"{{end}}
{{if .Deprecated}}deprecated: "{{.Deprecated}}"{{end}}
{{if .Removal}}removal: "{{.Removal}}"{{end}}
{{if .OS}}os_support: "{{.OS}}"{{end}}
introduced: "{{.Introduced}}"
{{- with .Deprecated}}
deprecated: {{.}}
{{- end}}
{{- with .Removal}}
removal: {{.}}
{{- end}}
os_support: "{{.OSTags | join ", "}}"
related:
- /telegraf/v1/configure_plugins/
- {{.URL}}, {{.Name}} Plugin Source

View File

@ -6,10 +6,14 @@ menu:
name: {{.Name}}
identifier: output-{{.ID}}
tags: [{{.Name}}, "output-plugins", "configuration"{{range .Tags}}, "{{.}}"{{end}}]
{{if .Introduced}}introduced: "{{.Introduced}}"{{end}}
{{if .Deprecated}}deprecated: "{{.Deprecated}}"{{end}}
{{if .Removal}}removal: "{{.Removal}}"{{end}}
{{if .OS}}os_support: "{{.OS}}"{{end}}
introduced: "{{.Introduced}}"
{{- with .Deprecated}}
deprecated: {{.}}
{{- end}}
{{- with .Removal}}
removal: {{.}}
{{- end}}
os_support: "{{.OSTags | join ", "}}"
related:
- /telegraf/v1/configure_plugins/
- {{.URL}}, {{.Name}} Plugin Source

View File

@ -9,7 +9,5 @@
{{- with .Removal }}
removal: {{ . }}
{{- end }}
{{ with .OS }}
os_support: {{ . }}
{{- end }}
os_support: [{{ .OSTags | join ", " }}]
tags: [{{ .Tags | join ", " }}]

View File

@ -6,10 +6,14 @@ menu:
name: {{.Name}}
identifier: processor-{{.ID}}
tags: [{{.Name}}, "processor-plugins", "configuration"{{range .Tags}}, "{{.}}"{{end}}]
{{if .Introduced}}introduced: "{{.Introduced}}"{{end}}
{{if .Deprecated}}deprecated: "{{.Deprecated}}"{{end}}
{{if .Removal}}removal: "{{.Removal}}"{{end}}
{{if .OS}}os_support: "{{.OS}}"{{end}}
introduced: "{{.Introduced}}"
{{- with .Deprecated}}
deprecated: {{.}}
{{- end}}
{{- with .Removal}}
removal: {{.}}
{{- end}}
os_support: "{{.OSTags | join ", "}}"
related:
- /telegraf/v1/configure_plugins/
- {{.URL}}, {{.Name}} Plugin Source