()
| 49 | ) |
| 50 | |
| 51 | func (c *Config) Valid() error { |
| 52 | if c.Version == nil { |
| 53 | return errors.New("version is required") |
| 54 | } |
| 55 | if c.Pattern == nil { |
| 56 | return errors.New("pattern is required") |
| 57 | } |
| 58 | return nil |
| 59 | } |
| 60 | |
| 61 | // New creates a stub with the given plugin and options. |
| 62 | // ManualLaunchOption only apply when the plugin is launched manually. |