Merge pull request #3123 from stefanberger/extend_apply_call_with_options_parameter

Extend Applier's Apply() method with an optional options parameter
This commit is contained in:
Michael Crosby
2019-06-03 11:13:40 -04:00
committed by GitHub
6 changed files with 22 additions and 7 deletions

View File

@@ -95,7 +95,7 @@ func NewWindowsLcowDiff(store content.Store) (CompareApplier, error) {
// Apply applies the content associated with the provided digests onto the
// provided mounts. Archive content will be extracted and decompressed if
// necessary.
func (s windowsLcowDiff) Apply(ctx context.Context, desc ocispec.Descriptor, mounts []mount.Mount) (d ocispec.Descriptor, err error) {
func (s windowsLcowDiff) Apply(ctx context.Context, desc ocispec.Descriptor, mounts []mount.Mount, opts ...diff.ApplyOpt) (d ocispec.Descriptor, err error) {
t1 := time.Now()
defer func() {
if err == nil {