WithPayloads sets the apply processor payloads to the config
(payloads map[string]typeurl.Any)
| 123 | |
| 124 | // WithPayloads sets the apply processor payloads to the config |
| 125 | func 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. |
| 133 | func WithSyncFs(sync bool) ApplyOpt { |