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

Function WithRootName

pkg/devspace/context/values/values.go:69–71  ·  view source on GitHub ↗

WithRootName returns a copy of parent with the root name included

(parent context.Context, name string)

Source from the content-addressed store, hash-verified

67
68// WithRootName returns a copy of parent with the root name included
69func WithRootName(parent context.Context, name string) context.Context {
70 return WithValue(parent, rootNameKey, name)
71}
72
73// WithValue returns a copy of parent in which the value associated with key is val.
74func WithValue(parent context.Context, key interface{}, val interface{}) context.Context {

Callers 1

initializeFunction · 0.92

Calls 1

WithValueFunction · 0.85

Tested by

no test coverage detected