MCPcopy
hub / github.com/helm/helm / WithBasicAuth

Function WithBasicAuth

pkg/getter/getter.go:74–79  ·  view source on GitHub ↗

WithBasicAuth sets the request's Authorization header to use the provided credentials

(username, password string)

Source from the content-addressed store, hash-verified

72
73// WithBasicAuth sets the request's Authorization header to use the provided credentials
74func WithBasicAuth(username, password string) Option {
75 return func(opts *getterOptions) {
76 opts.username = username
77 opts.password = password
78 }
79}
80
81func WithPassCredentialsAll(pass bool) Option {
82 return func(opts *getterOptions) {

Callers 12

TestDownloadToFunction · 0.92
downloadAllMethod · 0.92
ResolveChartVersionMethod · 0.92
RunMethod · 0.92
LocateChartMethod · 0.92
newInstallerForSourceMethod · 0.92
DownloadIndexFileMethod · 0.92
TestConvertOptionsFunction · 0.85
TestOCIGetterFunction · 0.85
TestHTTPGetterFunction · 0.85
TestDownloadFunction · 0.85

Calls

no outgoing calls

Tested by 6

TestDownloadToFunction · 0.74
TestConvertOptionsFunction · 0.68
TestOCIGetterFunction · 0.68
TestHTTPGetterFunction · 0.68
TestDownloadFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…