github.com/olli-ai/jx/v2@v2.0.400-0.20210921045218-14731b4dd448/docs/configdocs/templates/members.tpl (about)

     1  {{ define "members" }}
     2  
     3  {{ range .Members }}
     4  {{ if not (hiddenMember .)}}
     5  <tr>
     6      <td>
     7          <code>{{ fieldName . }}</code></br>
     8          <em>
     9              {{ if linkForType .Type }}
    10                  <a href="{{ linkForType .Type}}">
    11                      {{ typeDisplayName .Type }}
    12                  </a>
    13              {{ else }}
    14                  {{ typeDisplayName .Type }}
    15              {{ end }}
    16          </em>
    17      </td>
    18      <td>
    19          {{ if fieldEmbedded . }}
    20              <p>
    21                  (Members of <code>{{ fieldName . }}</code> are embedded into this type.)
    22              </p>
    23          {{ end}}
    24  
    25          {{ if isOptionalMember .}}
    26              <em>(Optional)</em>
    27          {{ end }}
    28  
    29          {{ safe (renderComments .CommentLines) }}
    30  
    31      {{ if and (eq (.Type.Name.Name) "ObjectMeta") }}
    32          Refer to the Kubernetes API documentation for the fields of the
    33          <code>metadata</code> field.
    34      {{ end }}
    35  
    36      {{ if or (eq (fieldName .) "spec") }}
    37          <br/>
    38          <br/>
    39          <table>
    40              {{ template "members" .Type }}
    41          </table>
    42      {{ end }}
    43      </td>
    44  </tr>
    45  {{ end }}
    46  {{ end }}
    47  
    48  {{ end }}