MCPcopy Create free account
hub / github.com/docker/cli / MarshalJSON

Method MarshalJSON

cli/command/formatter/container.go:131–133  ·  view source on GitHub ↗

MarshalJSON makes ContainerContext implement json.Marshaler

()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

MarshalJSONFunction · 0.85

Tested by

no test coverage detected