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

Function init

plugins/mount/erofs/plugin_linux.go:266–279  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

264type Config struct{}
265
266func init() {
267 registry.Register(&plugin.Registration{
268 Type: plugins.MountHandlerPlugin,
269 ID: "erofs",
270 Config: &Config{},
271 InitFn: func(ic *plugin.InitContext) (any, error) {
272 p := platforms.DefaultSpec()
273 p.OS = runtime.GOOS
274 ic.Meta.Platforms = append(ic.Meta.Platforms, p)
275
276 return NewErofsMountHandler(), nil
277 },
278 })
279}

Callers

nothing calls this directly

Calls 2

NewErofsMountHandlerFunction · 0.85
RegisterMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…