MCPcopy Index your code
hub / github.com/cloudfoundry/cli / init

Method init

cf/configuration/pluginconfig/plugin_config.go:76–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74}
75
76func (c *PluginConfig) init() {
77 // only read from disk if it was never read
78 c.initOnce.Do(func() {
79 err := c.persistor.Load(c.data)
80 if err != nil {
81 c.onError(err)
82 }
83 })
84}
85
86func (c *PluginConfig) read() {
87 c.mutex.RLock()

Callers 2

readMethod · 0.95
writeMethod · 0.95

Calls 2

DoMethod · 0.65
LoadMethod · 0.65

Tested by

no test coverage detected