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

Function NewConfig

cli/context/store/storeconfig.go:47–56  ·  view source on GitHub ↗

NewConfig creates a config object

(contextType TypeGetter, endpoints ...NamedTypeGetter)

Source from the content-addressed store, hash-verified

45
46// NewConfig creates a config object
47func NewConfig(contextType TypeGetter, endpoints ...NamedTypeGetter) Config {
48 res := Config{
49 contextType: contextType,
50 endpointTypes: make(map[string]TypeGetter),
51 }
52 for _, e := range endpoints {
53 res.endpointTypes[e.name] = e.typeGetter
54 }
55 return res
56}

Callers 3

store_test.goFile · 0.85
TestWithEmbeddingFunction · 0.85
TestConfigModificationFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestWithEmbeddingFunction · 0.68
TestConfigModificationFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…