MCPcopy
hub / github.com/helm/helm / WithURL

Function WithURL

pkg/getter/getter.go:60–64  ·  view source on GitHub ↗

WithURL informs the getter the server name that will be used when fetching objects. Used in conjunction with WithTLSClientConfig to set the TLSClientConfig's server name.

(url string)

Source from the content-addressed store, hash-verified

58// WithURL informs the getter the server name that will be used when fetching objects. Used in conjunction with
59// WithTLSClientConfig to set the TLSClientConfig's server name.
60func WithURL(url string) Option {
61 return func(opts *getterOptions) {
62 opts.url = url
63 }
64}
65
66// WithAcceptHeader sets the request's Accept header as some REST APIs serve multiple content types
67func WithAcceptHeader(header string) Option {

Callers 12

TestResolveChartOptsFunction · 0.92
ResolveChartVersionMethod · 0.92
readFileFunction · 0.92
DownloadIndexFileMethod · 0.92
TestConvertOptionsFunction · 0.85
TestOCIGetterFunction · 0.85
TestHTTPGetterFunction · 0.85
TestDownloadFunction · 0.85
TestDownloadTLSFunction · 0.85

Calls

no outgoing calls

Tested by 9

TestResolveChartOptsFunction · 0.74
TestConvertOptionsFunction · 0.68
TestOCIGetterFunction · 0.68
TestHTTPGetterFunction · 0.68
TestDownloadFunction · 0.68
TestDownloadTLSFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…