NewBuildableConfig creates a new BuildableConfig with the given arguments. Provider implementations are expected to invoke this function after parsing the given configuration as part of their ParseConfig() method. Equivalent configurations are expected to invoke this function with the same config ar
(name string, config []byte, starter func(BuildOptions) Provider)
| 130 | // Equivalent configurations are expected to invoke this function with the same |
| 131 | // config argument. |
| 132 | func NewBuildableConfig(name string, config []byte, starter func(BuildOptions) Provider) *BuildableConfig { |
| 133 | return &BuildableConfig{ |
| 134 | name: name, |
| 135 | config: config, |
| 136 | starter: starter, |
| 137 | pStore: provStore, |
| 138 | } |
| 139 | } |
| 140 | |
| 141 | // Build kicks off a provider instance with the wrapped configuration. Multiple |
| 142 | // invocations of this method with the same opts will result in provider |
no outgoing calls