Config represents a plugin type specific configuration It is expected to type assert (cast) the Config to its expected underlying type (schema.ConfigCLIV1, schema.ConfigGetterV1, etc).
| 26 | // Config represents a plugin type specific configuration |
| 27 | // It is expected to type assert (cast) the Config to its expected underlying type (schema.ConfigCLIV1, schema.ConfigGetterV1, etc). |
| 28 | type Config interface { |
| 29 | Validate() error |
| 30 | } |
| 31 | |
| 32 | func unmarshalConfig(pluginType string, configData map[string]any) (Config, error) { |
| 33 | pluginTypeMeta, ok := pluginTypesIndex[pluginType] |
no outgoing calls
no test coverage detected
searching dependent graphs…