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