MCPcopy Create free account
hub / github.com/docker/cli / SetEndpoint

Method SetEndpoint

cli/context/store/storeconfig.go:32–34  ·  view source on GitHub ↗

SetEndpoint set an endpoint typing information

(name string, getter TypeGetter)

Source from the content-addressed store, hash-verified

30
31// SetEndpoint set an endpoint typing information
32func (c Config) SetEndpoint(name string, getter TypeGetter) {
33 c.endpointTypes[name] = getter
34}
35
36// ForeachEndpointType calls cb on every endpoint type registered with the Config
37func (c Config) ForeachEndpointType(cb func(string, TypeGetter) error) error {

Callers 1

TestConfigModificationFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestConfigModificationFunction · 0.76