7
vendor/helm.sh/helm/v3/pkg/getter/getter.go
vendored
7
vendor/helm.sh/helm/v3/pkg/getter/getter.go
vendored
@@ -38,6 +38,7 @@ type options struct {
|
||||
insecureSkipVerifyTLS bool
|
||||
username string
|
||||
password string
|
||||
passCredentialsAll bool
|
||||
userAgent string
|
||||
version string
|
||||
registryClient *registry.Client
|
||||
@@ -64,6 +65,12 @@ func WithBasicAuth(username, password string) Option {
|
||||
}
|
||||
}
|
||||
|
||||
func WithPassCredentialsAll(pass bool) Option {
|
||||
return func(opts *options) {
|
||||
opts.passCredentialsAll = pass
|
||||
}
|
||||
}
|
||||
|
||||
// WithUserAgent sets the request's User-Agent header to use the provided agent name.
|
||||
func WithUserAgent(userAgent string) Option {
|
||||
return func(opts *options) {
|
||||
|
||||
Reference in New Issue
Block a user