GetProvider is a convenience function to create a provider given the name, config and build options.
(name string, config any, opts BuildOptions)
| 188 | // GetProvider is a convenience function to create a provider given the name, |
| 189 | // config and build options. |
| 190 | func GetProvider(name string, config any, opts BuildOptions) (Provider, error) { |
| 191 | bc, err := ParseConfig(name, config) |
| 192 | if err != nil { |
| 193 | return nil, err |
| 194 | } |
| 195 | return bc.Build(opts) |
| 196 | } |