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

Function runDiff

cli/command/container/diff.go:31–41  ·  view source on GitHub ↗
(ctx context.Context, dockerCLI command.Cli, containerID string)

Source from the content-addressed store, hash-verified

29}
30
31func runDiff(ctx context.Context, dockerCLI command.Cli, containerID string) error {
32 res, err := dockerCLI.Client().ContainerDiff(ctx, containerID, client.ContainerDiffOptions{})
33 if err != nil {
34 return err
35 }
36 diffCtx := formatter.Context{
37 Output: dockerCLI.Out(),
38 Format: newDiffFormat("{{.Type}} {{.Path}}"),
39 }
40 return diffFormatWrite(diffCtx, res)
41}

Callers 1

newDiffCommandFunction · 0.85

Calls 5

newDiffFormatFunction · 0.85
diffFormatWriteFunction · 0.85
ContainerDiffMethod · 0.80
ClientMethod · 0.65
OutMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…