MCPcopy Create free account
hub / github.com/docker/secrets-engine / newCfg

Function newCfg

plugin/config.go:78–85  ·  view source on GitHub ↗
(p ExternalPlugin, opts ...ManualLaunchOption)

Source from the content-addressed store, hash-verified

76}
77
78func newCfg(p ExternalPlugin, opts ...ManualLaunchOption) (*cfg, error) {
79 engineCfg, err := restoreConfig(p)
80 if errors.Is(err, errPluginNotLaunchedByEngine) {
81 cfg, err := newCfgForManualLaunch(p, opts...)
82 return cfg, err
83 }
84 return engineCfg, err
85}
86
87func newCfgForManualLaunch(p ExternalPlugin, opts ...ManualLaunchOption) (*cfg, error) {
88 cfg := &cfg{

Callers 1

NewFunction · 0.85

Calls 2

restoreConfigFunction · 0.85
newCfgForManualLaunchFunction · 0.85

Tested by

no test coverage detected