MCPcopy Index your code
hub / github.com/containerd/containerd / WithSourceDateEpoch

Function WithSourceDateEpoch

pkg/epoch/context.go:29–31  ·  view source on GitHub ↗

WithSourceDateEpoch associates the context with the epoch.

(ctx context.Context, tm *time.Time)

Source from the content-addressed store, hash-verified

27
28// WithSourceDateEpoch associates the context with the epoch.
29func WithSourceDateEpoch(ctx context.Context, tm *time.Time) context.Context {
30 return context.WithValue(ctx, epochKey{}, tm)
31}
32
33// FromContext returns the epoch associated with the context.
34// FromContext does not fall back to read the SOURCE_DATE_EPOCH env var.

Callers 3

AppContextFunction · 0.92
CreateMethod · 0.92
UpdateMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…