MCPcopy Create free account
hub / github.com/containerd/nerdctl / configureConfig

Function configureConfig

mod/tigron/test/config.go:28–42  ·  view source on GitHub ↗

Contains the implementation of the Config interface.

(cfg, parent Config)

Source from the content-addressed store, hash-verified

26
27// Contains the implementation of the Config interface.
28func configureConfig(cfg, parent Config) Config {
29 if cfg == nil {
30 cfg = &config{
31 config: make(map[ConfigKey]ConfigValue),
32 }
33 }
34
35 if parent != nil {
36 // Note: implementation dependent
37 //nolint:forcetypeassert
38 cfg.(*config).adopt(parent)
39 }
40
41 return cfg
42}
43
44type config struct {
45 config map[ConfigKey]ConfigValue

Callers 1

RunMethod · 0.85

Calls 1

adoptMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…