MCPcopy Index your code
hub / github.com/docker/cli / newDiffContext

Function newDiffContext

cli/command/container/formatter_diff.go:41–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39}
40
41func newDiffContext() *diffContext {
42 return &diffContext{
43 HeaderContext: formatter.HeaderContext{
44 Header: formatter.SubHeaderContext{
45 "Type": changeTypeHeader,
46 "Path": pathHeader,
47 },
48 },
49 }
50}
51
52func (d *diffContext) MarshalJSON() ([]byte, error) {
53 return formatter.MarshalJSON(d)

Callers 1

diffFormatWriteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…