MCPcopy
hub / github.com/containerd/containerd / WithPayloads

Function WithPayloads

core/diff/diff.go:125–130  ·  view source on GitHub ↗

WithPayloads sets the apply processor payloads to the config

(payloads map[string]typeurl.Any)

Source from the content-addressed store, hash-verified

123
124// WithPayloads sets the apply processor payloads to the config
125func WithPayloads(payloads map[string]typeurl.Any) ApplyOpt {
126 return func(_ context.Context, _ ocispec.Descriptor, c *ApplyConfig) error {
127 c.ProcessorPayloads = payloads
128 return nil
129 }
130}
131
132// WithSyncFs sets sync flag to the config.
133func WithSyncFs(sync bool) ApplyOpt {

Callers 2

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