ContainerContext is a struct used for rendering a list of containers in a Go template.
| 98 | |
| 99 | // ContainerContext is a struct used for rendering a list of containers in a Go template. |
| 100 | type ContainerContext struct { |
| 101 | formatter.HeaderContext |
| 102 | trunc bool |
| 103 | c api.ContainerSummary |
| 104 | |
| 105 | // FieldsUsed is used in the pre-processing step to detect which fields are |
| 106 | // used in the template. It's currently only used to detect use of the .Size |
| 107 | // field which (if used) automatically sets the '--size' option when making |
| 108 | // the API call. |
| 109 | FieldsUsed map[string]any |
| 110 | } |
| 111 | |
| 112 | // NewContainerContext creates a new context for rendering containers |
| 113 | func NewContainerContext() *ContainerContext { |
nothing calls this directly
no outgoing calls
no test coverage detected