mirror of
https://github.com/cloudnative-pg/plugin-barman-cloud.git
synced 2026-01-11 21:23:12 +01:00
Closes #206 Signed-off-by: Niccolò Fei <niccolo.fei@enterprisedb.com> Signed-off-by: Francesco Canovai <francesco.canovai@enterprisedb.com> Co-authored-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
44 lines
984 B
Smarty
44 lines
984 B
Smarty
{{ define "packages" -}}
|
|
|
|
# API Reference
|
|
|
|
{{ $grpname := "" -}}
|
|
{{- range $idx, $val := .packages -}}
|
|
{{- if and (ne .GroupName "") (eq $grpname "") -}}
|
|
{{ .GetComment -}}
|
|
{{- $grpname = .GroupName -}}
|
|
{{- end -}}
|
|
{{- end }}
|
|
|
|
## Resource Types
|
|
|
|
{{ range .packages -}}
|
|
{{- /* if ne .GroupName "" */ -}}
|
|
{{- range .VisibleTypes -}}
|
|
{{- if .IsExported }}
|
|
- [{{ .DisplayName }}]({{ .Link }})
|
|
{{- end -}}
|
|
{{- end -}}
|
|
{{- /* end */ -}}
|
|
{{- end -}}
|
|
|
|
{{- range .packages -}}
|
|
{{- if ne .GroupName "" -}}
|
|
|
|
{{- /* For package with a group name, list all type definitions in it. */ -}}
|
|
{{- range .VisibleTypes -}}
|
|
{{- if or .Referenced .IsExported -}}
|
|
{{ template "type" . }}
|
|
{{- end -}}
|
|
{{- end }}
|
|
{{- else -}}
|
|
{{- /* For package w/o group name, list only types referenced. */ -}}
|
|
{{- range .VisibleTypes -}}
|
|
{{- if .Referenced -}}
|
|
{{ template "type" . }}
|
|
{{- end -}}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|