WithEntry injects the host registry entry into the context.
(ctx stdctx.Context, e *Entry)
| 82 | |
| 83 | // WithEntry injects the host registry entry into the context. |
| 84 | func WithEntry(ctx stdctx.Context, e *Entry) stdctx.Context { |
| 85 | return stdctx.WithValue(ctx, entryContextKey, e) |
| 86 | } |
| 87 | |
| 88 | // EntryFromContext returns the host registry entry from the context, or nil if not set. |
| 89 | func EntryFromContext(ctx stdctx.Context) *Entry { |