MCPcopy
hub / github.com/containerd/containerd / WithSourceDateEpoch

Function WithSourceDateEpoch

core/diff/diff.go:157–162  ·  view source on GitHub ↗

WithSourceDateEpoch specifies the timestamp used to provide control for reproducibility. See also https://reproducible-builds.org/docs/source-date-epoch/ . Since containerd v2.0, the whiteout timestamps are set to zero (1970-01-01), not to the source date epoch.

(tm *time.Time)

Source from the content-addressed store, hash-verified

155// Since containerd v2.0, the whiteout timestamps are set to zero (1970-01-01),
156// not to the source date epoch.
157func WithSourceDateEpoch(tm *time.Time) Opt {
158 return func(c *Config) error {
159 c.SourceDateEpoch = tm
160 return nil
161 }
162}

Callers 2

DiffMethod · 0.92
DiffMethod · 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…