WithUnpackOpts is used to add unpack options to the unpacker.
(opts []UnpackOpt)
| 168 | |
| 169 | // WithUnpackOpts is used to add unpack options to the unpacker. |
| 170 | func WithUnpackOpts(opts []UnpackOpt) RemoteOpt { |
| 171 | return func(_ *Client, c *RemoteContext) error { |
| 172 | c.UnpackOpts = append(c.UnpackOpts, opts...) |
| 173 | return nil |
| 174 | } |
| 175 | } |
| 176 | |
| 177 | // WithPullSnapshotter specifies snapshotter name used for unpacking. |
| 178 | func WithPullSnapshotter(snapshotterName string, opts ...snapshots.Opt) RemoteOpt { |
no outgoing calls
searching dependent graphs…