(ctx context.Context)
| 178 | } |
| 179 | |
| 180 | func InstanceEntity(ctx context.Context) (params.ForgeEntity, error) { |
| 181 | elem := ctx.Value(instanceEntityKey) |
| 182 | if elem == nil { |
| 183 | return params.ForgeEntity{}, runnerErrors.ErrNotFound |
| 184 | } |
| 185 | return elem.(params.ForgeEntity), nil |
| 186 | } |
| 187 | |
| 188 | func SetInstanceAuthToken(ctx context.Context, token string) context.Context { |
| 189 | return context.WithValue(ctx, instanceAuthToken, token) |
no outgoing calls
no test coverage detected