|
|
@ -35,7 +35,6 @@ type options struct {
|
|
|
|
certFile string
|
|
|
|
certFile string
|
|
|
|
keyFile string
|
|
|
|
keyFile string
|
|
|
|
caFile string
|
|
|
|
caFile string
|
|
|
|
unTar bool
|
|
|
|
|
|
|
|
insecureSkipVerifyTLS bool
|
|
|
|
insecureSkipVerifyTLS bool
|
|
|
|
username string
|
|
|
|
username string
|
|
|
|
password string
|
|
|
|
password string
|
|
|
@ -115,12 +114,6 @@ func WithRegistryClient(client *registry.Client) Option {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func WithUntar() Option {
|
|
|
|
|
|
|
|
return func(opts *options) {
|
|
|
|
|
|
|
|
opts.unTar = true
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// WithTransport sets the http.Transport to allow overwriting the HTTPGetter default.
|
|
|
|
// WithTransport sets the http.Transport to allow overwriting the HTTPGetter default.
|
|
|
|
func WithTransport(transport *http.Transport) Option {
|
|
|
|
func WithTransport(transport *http.Transport) Option {
|
|
|
|
return func(opts *options) {
|
|
|
|
return func(opts *options) {
|
|
|
|