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

Function init

plugins/cri/runtime/plugin.go:43–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

41)
42
43func init() {
44 config := criconfig.DefaultRuntimeConfig()
45
46 // Base plugin that other CRI services depend on.
47 registry.Register(&plugin.Registration{
48 Type: plugins.CRIServicePlugin,
49 ID: "runtime",
50 Config: &config,
51 Requires: []plugin.Type{
52 plugins.WarningPlugin,
53 },
54 ConfigMigration: configMigration,
55 InitFn: initCRIRuntime,
56 })
57}
58
59func initCRIRuntime(ic *plugin.InitContext) (any, error) {
60 ic.Meta.Platforms = []imagespec.Platform{platforms.DefaultSpec()}

Callers

nothing calls this directly

Calls 1

RegisterMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…