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

Function RootNameFrom

pkg/devspace/context/values/values.go:63–66  ·  view source on GitHub ↗

RootNameFrom returns the root name of the devspace config

(ctx context.Context)

Source from the content-addressed store, hash-verified

61
62// RootNameFrom returns the root name of the devspace config
63func RootNameFrom(ctx context.Context) (string, bool) {
64 user, ok := ctx.Value(rootNameKey).(string)
65 return user, ok
66}
67
68// WithRootName returns a copy of parent with the root name included
69func WithRootName(parent context.Context, name string) context.Context {

Callers 5

PurgeMethod · 0.92
DeployMethod · 0.92
DeployMethod · 0.92
RevertReplacePodMethod · 0.92
ReplacePodMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected