MCPcopy Create free account
hub / github.com/docker/compose / ContainerContext

Struct ContainerContext

cmd/formatter/container.go:100–110  ·  view source on GitHub ↗

ContainerContext is a struct used for rendering a list of containers in a Go template.

Source from the content-addressed store, hash-verified

98
99// ContainerContext is a struct used for rendering a list of containers in a Go template.
100type 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
113func NewContainerContext() *ContainerContext {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected