MCPcopy Create free account
hub / github.com/containerd/nerdctl / Main

Function Main

pkg/logging/logging.go:140–147  ·  view source on GitHub ↗

Main is the entrypoint for the containerd runtime v2 logging plugin mode. Should be called only if argv1 == MagicArgv1.

(argv2 string)

Source from the content-addressed store, hash-verified

138//
139// Should be called only if argv1 == MagicArgv1.
140func Main(argv2 string) error {
141 fn, err := loggerFunc(argv2)
142 if err != nil {
143 return err
144 }
145 logging.Run(fn)
146 return nil
147}
148
149// LogConfig is marshalled as "log-config.json"
150type LogConfig struct {

Callers 2

xmainFunction · 0.92
mainFunction · 0.92

Calls 2

loggerFuncFunction · 0.85
RunMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…