MCPcopy Index your code
hub / github.com/devspace-sh/devspace / ParseProxyConfig

Method ParseProxyConfig

pkg/devspace/docker/client.go:189–196  ·  view source on GitHub ↗

ParseProxyConfig parses the proxy config from the ~/.docker/config.json

(buildArgs map[string]*string)

Source from the content-addressed store, hash-verified

187
188// ParseProxyConfig parses the proxy config from the ~/.docker/config.json
189func (c *client) ParseProxyConfig(buildArgs map[string]*string) map[string]*string {
190 dockerConfig, err := LoadDockerConfig()
191 if err == nil {
192 buildArgs = dockerConfig.ParseProxyConfig(c.DaemonHost(), buildArgs)
193 }
194
195 return buildArgs
196}

Callers

nothing calls this directly

Calls 2

LoadDockerConfigFunction · 0.85
ParseProxyConfigMethod · 0.65

Tested by

no test coverage detected