MCPcopy Index your code
hub / github.com/regclient/regclient / WithConfigHost

Function WithConfigHost

regclient.go:121–125  ·  view source on GitHub ↗

WithConfigHost adds a list of config host settings.

(configHost ...config.Host)

Source from the content-addressed store, hash-verified

119
120// WithConfigHost adds a list of config host settings.
121func WithConfigHost(configHost ...config.Host) Opt {
122 return func(rc *RegClient) {
123 rc.hostLoad("host", configHost)
124 }
125}
126
127// WithConfigHostDefault adds default settings for new hosts.
128func WithConfigHostDefault(configHost config.Host) Opt {

Callers 15

ExampleNewFunction · 0.92
TestModFunction · 0.92
TestProcessFunction · 0.92
loadConfMethod · 0.92
TestManifestRmFunction · 0.92
TestImageCheckBaseFunction · 0.92
TestTagRmFunction · 0.92
newRegClientMethod · 0.92
TestRepoCopyFunction · 0.92
TestRegbotFunction · 0.92
loadConfMethod · 0.92
TestSandboxFunction · 0.92

Calls 1

hostLoadMethod · 0.80

Tested by 15

ExampleNewFunction · 0.74
TestModFunction · 0.74
TestProcessFunction · 0.74
TestManifestRmFunction · 0.74
TestImageCheckBaseFunction · 0.74
TestTagRmFunction · 0.74
TestRepoCopyFunction · 0.74
TestRegbotFunction · 0.74
TestSandboxFunction · 0.74
TestReferrerListFunction · 0.68
TestManifestFunction · 0.68
TestBlobGetFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…