MCPcopy Index your code
hub / github.com/devspace-sh/devspace / SetPlugins

Function SetPlugins

pkg/devspace/plugin/hook.go:51–61  ·  view source on GitHub ↗
(p []Metadata)

Source from the content-addressed store, hash-verified

49var pluginsOnce sync.Once
50
51func SetPlugins(p []Metadata) {
52 pluginsOnce.Do(func() {
53 plugins = p
54
55 pluginContextLock.Lock()
56 defer pluginContextLock.Unlock()
57
58 pluginContext[SessionEnv] = uuid.New().String()
59 pluginContext[ExecutionIDEnv] = pluginContext[SessionEnv]
60 })
61}
62
63var kubeContextOnce sync.Once
64

Callers 1

BuildRootFunction · 0.92

Calls 3

LockMethod · 0.80
UnlockMethod · 0.80
StringMethod · 0.45

Tested by

no test coverage detected