MCPcopy
hub / github.com/docker/compose / MarshalJSON

Method MarshalJSON

cmd/formatter/container.go:134–136  ·  view source on GitHub ↗

MarshalJSON makes ContainerContext implement json.Marshaler

()

Source from the content-addressed store, hash-verified

132
133// MarshalJSON makes ContainerContext implement json.Marshaler
134func (c *ContainerContext) MarshalJSON() ([]byte, error) {
135 return formatter.MarshalJSON(c)
136}
137
138// ID returns the container's ID as a string. Depending on the `--no-trunc`
139// option being set, the full or truncated ID is returned.

Callers 2

runGenerateFunction · 0.80
runConfigInterpolateFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected