MCPcopy
hub / github.com/cloudfoundry/cli / NewPluginConfig

Function NewPluginConfig

cf/configuration/pluginconfig/plugin_config.go:28–37  ·  view source on GitHub ↗
(errorHandler func(error), persistor configuration.Persistor, pluginPath string)

Source from the content-addressed store, hash-verified

26}
27
28func NewPluginConfig(errorHandler func(error), persistor configuration.Persistor, pluginPath string) *PluginConfig {
29 return &PluginConfig{
30 data: NewData(),
31 mutex: new(sync.RWMutex),
32 initOnce: new(sync.Once),
33 persistor: persistor,
34 onError: errorHandler,
35 pluginPath: pluginPath,
36 }
37}
38
39func (c *PluginConfig) GetPluginPath() string {
40 return c.pluginPath

Callers 5

MainFunction · 0.92
NewDependencyFunction · 0.92
newAppPresenterFunction · 0.92

Calls 1

NewDataFunction · 0.70

Tested by

no test coverage detected