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

Method write

cf/configuration/pluginconfig/plugin_config.go:92–103  ·  view source on GitHub ↗
(cb func())

Source from the content-addressed store, hash-verified

90}
91
92func (c *PluginConfig) write(cb func()) {
93 c.mutex.Lock()
94 defer c.mutex.Unlock()
95 c.init()
96
97 cb()
98
99 err := c.persistor.Save(c.data)
100 if err != nil {
101 c.onError(err)
102 }
103}
104
105func (c *PluginConfig) Close() {
106 c.read()

Callers 2

SetPluginMethod · 0.95
RemovePluginMethod · 0.95

Calls 2

initMethod · 0.95
SaveMethod · 0.65

Tested by

no test coverage detected