MCPcopy Create free account
hub / github.com/pydio/cells / initManagerContext

Function initManagerContext

cmd/root.go:190–200  ·  view source on GitHub ↗

initManagerContext starts an empty manager with Root context in the "cmd" namespace

(ctx context.Context)

Source from the content-addressed store, hash-verified

188
189// initManagerContext starts an empty manager with Root context in the "cmd" namespace
190func initManagerContext(ctx context.Context) (context.Context, error) {
191 mgr, err := manager.NewManager(runtime.MultiContextManager().RootContext(ctx), runtime.NsCmd)
192 if err != nil {
193 return nil, err
194 }
195 if err = mgr.Bootstrap(""); err != nil {
196 return nil, err
197 }
198 return mgr.Context(), nil
199
200}
201
202func initLogLevel() {
203

Callers 5

tools.goFile · 0.85
start.goFile · 0.85
update.goFile · 0.85
configure.goFile · 0.85
configure-sites.goFile · 0.85

Calls 5

BootstrapMethod · 0.95
ContextMethod · 0.95
NewManagerFunction · 0.92
MultiContextManagerFunction · 0.92
RootContextMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…