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}} name: {{.Name}}
identifier: aggregator-{{.ID}} identifier: aggregator-{{.ID}}
tags: [{{.Name}}, "aggregator-plugins", "configuration"{{range .Tags}}, "{{.}}"{{end}}] tags: [{{.Name}}, "aggregator-plugins", "configuration"{{range .Tags}}, "{{.}}"{{end}}]
{{if .Introduced}}introduced: "{{.Introduced}}"{{end}} introduced: "{{.Introduced}}"
{{if .Deprecated}}deprecated: "{{.Deprecated}}"{{end}} {{- with .Deprecated}}
{{if .Removal}}removal: "{{.Removal}}"{{end}} deprecated: {{.}}
{{if .OS}}os_support: "{{.OS}}"{{end}} {{- end}}
{{- with .Removal}}
removal: {{.}}
{{- end}}
os_support: "{{.OSTags | join ", "}}"
related: related:
- /telegraf/v1/configure_plugins/ - /telegraf/v1/configure_plugins/
- {{.URL}}, {{.Name}} Plugin Source - {{.URL}}, {{.Name}} Plugin Source

View File

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

View File

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

View File

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

View File

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