MCPcopy Index your code
hub / github.com/containerd/containerd / dumpConfig

Function dumpConfig

cmd/containerd/command/config.go:111–124  ·  view source on GitHub ↗
(cliContext *cli.Context)

Source from the content-addressed store, hash-verified

109}
110
111func dumpConfig(cliContext *cli.Context) error {
112 config := defaultConfig()
113 ctx := cliContext.Context
114
115 g := registry.Graph(func(*plugin.Registration) bool { return false })
116 plugins := func() iter.Seq[plugin.Registration] {
117 return slices.Values(g)
118 }
119 if err := srvconfig.LoadConfigWithPlugins(ctx, cliContext.String("config"), plugins, config); err != nil && !os.IsNotExist(err) {
120 return err
121 }
122
123 return outputConfig(ctx, config)
124}
125
126func platformAgnosticDefaultConfig() *srvconfig.Config {
127 return &srvconfig.Config{

Callers

nothing calls this directly

Calls 3

outputConfigFunction · 0.85
defaultConfigFunction · 0.70
StringMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…