MCPcopy
hub / github.com/helm/helm / newRegistryClient

Function newRegistryClient

pkg/cmd/root.go:405–420  ·  view source on GitHub ↗
(
	out io.Writer, certFile, keyFile, caFile string, insecureSkipTLSVerify, plainHTTP bool, username, password string,
)

Source from the content-addressed store, hash-verified

403}
404
405func newRegistryClient(
406 out io.Writer, certFile, keyFile, caFile string, insecureSkipTLSVerify, plainHTTP bool, username, password string,
407) (*registry.Client, error) {
408 if certFile != "" && keyFile != "" || caFile != "" || insecureSkipTLSVerify {
409 registryClient, err := newRegistryClientWithTLS(out, certFile, keyFile, caFile, insecureSkipTLSVerify, username, password)
410 if err != nil {
411 return nil, err
412 }
413 return registryClient, nil
414 }
415 registryClient, err := newDefaultRegistryClient(out, plainHTTP, username, password)
416 if err != nil {
417 return nil, err
418 }
419 return registryClient, nil
420}
421
422func newDefaultRegistryClient(out io.Writer, plainHTTP bool, username, password string) (*registry.Client, error) {
423 opts := []registry.ClientOption{

Callers 9

newPushCmdFunction · 0.85
newPackageCmdFunction · 0.85
newPullCmdFunction · 0.85
newInstallCmdFunction · 0.85
addRegistryClientFunction · 0.85
newUpgradeCmdFunction · 0.85
newDependencyUpdateCmdFunction · 0.85
newTemplateCmdFunction · 0.85
newDependencyBuildCmdFunction · 0.85

Calls 2

newRegistryClientWithTLSFunction · 0.85
newDefaultRegistryClientFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…