MCPcopy Create free account
hub / github.com/cloudbase/garm / SetInstanceName

Function SetInstanceName

auth/context.go:140–142  ·  view source on GitHub ↗
(ctx context.Context, val string)

Source from the content-addressed store, hash-verified

138}
139
140func SetInstanceName(ctx context.Context, val string) context.Context {
141 return context.WithValue(ctx, instanceNameKey, val)
142}
143
144func InstanceName(ctx context.Context) string {
145 elem := ctx.Value(instanceNameKey)

Callers 1

PopulateInstanceContextFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected