2021-09-22 13:36:45 +00:00
|
|
|
# Available Actions
|
|
|
|
|
|
|
|
{{ range .Actors }}
|
|
|
|
## {{ .Name }}
|
|
|
|
|
|
|
|
{{ .Description }}
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
- type: {{ .Type }}
|
|
|
|
{{- if gt (len .Fields) 0 }}
|
|
|
|
attributes:
|
|
|
|
{{- range .Fields }}
|
|
|
|
# {{ .Description }}
|
|
|
|
# Optional: {{ .Optional }}
|
|
|
|
{{- if eq .Type "bool" }}
|
2021-10-18 22:22:05 +00:00
|
|
|
# Type: {{ .Type }}{{ if .SupportTemplate }} (Supports Templating){{ end }}
|
2021-09-22 13:36:45 +00:00
|
|
|
{{ .Key }}: {{ eq .Default "true" }}
|
|
|
|
{{- end }}
|
|
|
|
{{- if eq .Type "duration" }}
|
2021-10-18 22:22:05 +00:00
|
|
|
# Type: {{ .Type }}{{ if .SupportTemplate }} (Supports Templating){{ end }}
|
2021-09-22 13:36:45 +00:00
|
|
|
{{ .Key }}: {{ if eq .Default "" }}0s{{ else }}{{ .Default }}{{ end }}
|
|
|
|
{{- end }}
|
|
|
|
{{- if eq .Type "int64" }}
|
2021-10-18 22:22:05 +00:00
|
|
|
# Type: {{ .Type }}{{ if .SupportTemplate }} (Supports Templating){{ end }}
|
2021-09-22 13:36:45 +00:00
|
|
|
{{ .Key }}: {{ if eq .Default "" }}0{{ else }}{{ .Default }}{{ end }}
|
|
|
|
{{- end }}
|
|
|
|
{{- if eq .Type "string" }}
|
2021-10-18 22:22:05 +00:00
|
|
|
# Type: {{ .Type }}{{ if .SupportTemplate }} (Supports Templating){{ end }}
|
2021-09-22 13:36:45 +00:00
|
|
|
{{ .Key }}: "{{ .Default }}"
|
|
|
|
{{- end }}
|
|
|
|
{{- if eq .Type "stringslice" }}
|
2021-10-18 22:22:05 +00:00
|
|
|
# Type: array of strings{{ if .SupportTemplate }} (Supports Templating in each string){{ end }}
|
2021-09-22 13:36:45 +00:00
|
|
|
{{ .Key }}: []
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
{{- else }}
|
|
|
|
# Does not have configuration attributes
|
|
|
|
{{- end }}
|
|
|
|
```
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{ if false }}<!-- vim: set ft=markdown: -->{{ end }}
|