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

Function InstanceName

auth/context.go:144–150  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

142}
143
144func InstanceName(ctx context.Context) string {
145 elem := ctx.Value(instanceNameKey)
146 if elem == nil {
147 return ""
148 }
149 return elem.(string)
150}
151
152func SetInstancePoolID(ctx context.Context, val string) context.Context {
153 return context.WithValue(ctx, instancePoolIDKey, val)

Callers 4

UpdateSystemInfoMethod · 0.92
MiddlewareMethod · 0.85
MiddlewareMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected