package objectgateway import "context" type claimContextKey struct{} // WithClaim is set by the owned-attempt runner, never from an HTTP caller's // proposed plan. The controller independently checks every field against PG. func WithClaim(ctx context.Context, c Claim) context.Context { return context.WithValue(ctx, claimContextKey{}, c) } func ClaimFromContext(ctx context.Context) Claim { c, _ := ctx.Value(claimContextKey{}).(Claim) return c }