update vendor

This commit is contained in:
Ettore Di Giacinto
2021-10-23 20:47:32 +02:00
parent 6a9f19941a
commit ab251fefce
889 changed files with 80636 additions and 20210 deletions

View File

@@ -15,6 +15,7 @@
package crane
import (
"context"
"net/http"
"github.com/google/go-containerregistry/pkg/authn"
@@ -97,3 +98,10 @@ func WithUserAgent(ua string) Option {
o.remote = append(o.remote, remote.WithUserAgent(ua))
}
}
// WithContext is a functional option for setting the context.
func WithContext(ctx context.Context) Option {
return func(o *options) {
o.remote = append(o.remote, remote.WithContext(ctx))
}
}