isValidSemver checks if the given string is a valid semantic version
(v string)
| 26 | |
| 27 | // isValidSemver checks if the given string is a valid semantic version |
| 28 | func isValidSemver(v string) bool { |
| 29 | _, err := semver.StrictNewVersion(v) |
| 30 | return err == nil |
| 31 | } |
| 32 | |
| 33 | // Metadata of a plugin, converted from the "on-disk" legacy or v1 plugin.yaml |
| 34 | // Specifically, Config and RuntimeConfig are converted to their respective types based on the plugin type and runtime |