MCPcopy
hub / github.com/helm/helm / Get

Method Get

pkg/getter/httpgetter.go:40–47  ·  view source on GitHub ↗

Get performs a Get from repo.Getter and returns the body.

(href string, options ...Option)

Source from the content-addressed store, hash-verified

38
39// Get performs a Get from repo.Getter and returns the body.
40func (g *HTTPGetter) Get(href string, options ...Option) (*bytes.Buffer, error) {
41 // Create a local copy of options to avoid data races when Get is called concurrently
42 opts := g.opts
43 for _, opt := range options {
44 opt(&opts)
45 }
46 return g.get(href, opts)
47}
48
49func (g *HTTPGetter) get(href string, opts getterOptions) (*bytes.Buffer, error) {
50 // Set a helm specific user agent so that a repo server and metrics can

Callers 5

TestDownloadFunction · 0.95
TestDownloadTLSFunction · 0.95

Calls 1

getMethod · 0.95

Tested by 5

TestDownloadFunction · 0.76
TestDownloadTLSFunction · 0.76