MCPcopy Index your code
hub / github.com/helm/helm / isValidSemver

Function isValidSemver

internal/plugin/metadata.go:28–31  ·  view source on GitHub ↗

isValidSemver checks if the given string is a valid semantic version

(v string)

Source from the content-addressed store, hash-verified

26
27// isValidSemver checks if the given string is a valid semantic version
28func 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

Callers 3

ValidateMethod · 0.70
ValidateMethod · 0.70
ValidateMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…