ValidateAndSetConfig implements compat.Configuror
(config interface{})
| 152 | |
| 153 | // ValidateAndSetConfig implements compat.Configuror |
| 154 | func (c *PluginInstance) ValidateAndSetConfig(config interface{}) error { |
| 155 | if (config.(*PluginConfig)).IsNotValid { |
| 156 | return errors.New("conf is not valid") |
| 157 | } |
| 158 | c.Config = config.(*PluginConfig) |
| 159 | return nil |
| 160 | } |
| 161 | |
| 162 | // GetDisplay implements compat.Displayer |
| 163 | func (c *PluginInstance) GetDisplay(url *url.URL) string { |
nothing calls this directly
no outgoing calls
no test coverage detected