MCPcopy Index your code
hub / github.com/PatchMon/PatchMon / WithEntry

Function WithEntry

server-source-code/internal/context/context.go:84–86  ·  view source on GitHub ↗

WithEntry injects the host registry entry into the context.

(ctx stdctx.Context, e *Entry)

Source from the content-addressed store, hash-verified

82
83// WithEntry injects the host registry entry into the context.
84func 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.
89func EntryFromContext(ctx stdctx.Context) *Entry {

Callers 1

MiddlewareFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected