mirror of
https://github.com/mudler/luet.git
synced 2025-09-22 03:27:38 +00:00
update vendor
This commit is contained in:
8
vendor/github.com/google/go-containerregistry/pkg/crane/options.go
generated
vendored
8
vendor/github.com/google/go-containerregistry/pkg/crane/options.go
generated
vendored
@@ -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))
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user