{{ $tag := .File.BaseFileName }} {{ $type := .CurrentSection.Params.component_type }} {{ $config := index (index site.Data.docs.components $type) $tag }} {{ $classes := $config.classes }} {{ $features := $config.features }} {{ $output := $config.output }} {{ $alias := $config.alias }}
{{ if eq $classes.development "beta" }} {{ partial "badge.html" (dict "prefix" "status" "word" "beta" "color" "red" "inline" true) }} {{ end }} {{ if eq $classes.development "stable" }} {{ partial "badge.html" (dict "prefix" "status" "word" "stable" "color" "green" "inline" true) }} {{ end }} {{ range $classes.deployment_roles }} {{ partial "badge.html" (dict "prefix" "role" "word" . "color" "gray" "inline" true) }} {{ end }} {{ if eq $classes.delivery "best_effort" }} {{ partial "badge.html" (dict "prefix" "delivery" "word" "best effort" "color" "blue" "inline" true) }} {{ end }} {{ if eq $classes.delivery "at_least_once" }} {{ partial "badge.html" (dict "prefix" "delivery" "word" "at-least-once" "color" "blue" "inline" true) }} {{ end }} {{ if eq $features.acknowledgements true }} {{ partial "badge.html" (dict "prefix" "acknowledgements" "word" "yes" "color" "green" "inline" true) }} {{ end }} {{ if eq $features.acknowledgements false }} {{ partial "badge.html" (dict "prefix" "acknowledgements" "word" "no" "color" "yellow" "inline" true) }} {{ end }} {{ with $classes.egress_method }} {{ partial "badge.html" (dict "prefix" "egress" "word" . "color" "indigo" "inline" true) }} {{ end }} {{ if eq $classes.stateful false }} {{ partial "badge.html" (dict "prefix" "state" "word" "stateless" "color" "indigo" "inline" true) }} {{ else }} {{ partial "badge.html" (dict "prefix" "state" "word" "stateful" "color" "indigo" "inline" true) }} {{ end }} {{ range $k, $v := $output }} {{ if eq $k "logs" }} {{ partial "badge.html" (dict "prefix" "output" "word" "log" "color" "yellow" "inline" true) }} {{ end }} {{ if eq $k "metrics" }} {{ partial "badge.html" (dict "prefix" "output" "word" "metrics" "color" "yellow" "inline" true) }} {{ end }} {{ end }} {{ with $alias }} {{ partial "badge.html" (dict "prefix" "previously known as" "word" . "color" "yellow" "inline" true) }} {{ end }}
{{ if .Params.deprecated }}
{{ partial "badge.html" (dict "prefix" "status" "word" "deprecated" "color" "red" "inline" true) }}
{{ end }}