MCPcopy
hub / github.com/helm/helm / ClientOptBasicAuth

Function ClientOptBasicAuth

pkg/registry/client.go:164–169  ·  view source on GitHub ↗

ClientOptBasicAuth returns a function that sets the username and password setting on client options set

(username, password string)

Source from the content-addressed store, hash-verified

162
163// ClientOptBasicAuth returns a function that sets the username and password setting on client options set
164func ClientOptBasicAuth(username, password string) ClientOption {
165 return func(client *Client) {
166 client.username = username
167 client.password = password
168 }
169}
170
171// ClientOptWriter returns a function that sets the writer setting on client options set
172func ClientOptWriter(out io.Writer) ClientOption {

Callers 3

newDefaultRegistryClientFunction · 0.92
newRegistryClientWithTLSFunction · 0.92
setupFunction · 0.85

Calls

no outgoing calls

Tested by 1

setupFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…