sigs.k8s.io/kueue@v0.6.2/site/genref/markdown/type.tpl (about) 1 {{ define "type" }} 2 3 ## `{{ .Name.Name }}` {#{{ .Anchor }}} 4 5 {{ if eq .Kind "Alias" -}} 6 (Alias of `{{ .Underlying }}`) 7 {{ end }} 8 9 {{- with .References }} 10 **Appears in:** 11 {{ range . }} 12 {{ if or .Referenced .IsExported -}} 13 - [{{ .DisplayName }}]({{ .Link }}) 14 {{ end -}} 15 {{- end -}} 16 {{- end }} 17 18 {{ if .GetComment -}} 19 {{ .GetComment }} 20 {{ end }} 21 {{ if .GetMembers -}} 22 <table class="table"> 23 <thead><tr><th width="30%">Field</th><th>Description</th></tr></thead> 24 <tbody> 25 {{/* . is a apiType */}} 26 {{- if .IsExported -}} 27 {{/* Add apiVersion and kind rows if deemed necessary */}} 28 <tr><td><code>apiVersion</code><br/>string</td><td><code>{{- .APIGroup -}}</code></td></tr> 29 <tr><td><code>kind</code><br/>string</td><td><code>{{- .Name.Name -}}</code></td></tr> 30 {{ end -}} 31 32 {{/* The actual list of members is in the following template */}} 33 {{- template "members" . -}} 34 </tbody> 35 </table> 36 {{- end -}} 37 {{- end -}}