MCPcopy
hub / github.com/helm/helm / Metadata

Struct Metadata

internal/plugin/metadata.go:35–59  ·  view source on GitHub ↗

Metadata of a plugin, converted from the "on-disk" legacy or v1 plugin.yaml Specifically, Config and RuntimeConfig are converted to their respective types based on the plugin type and runtime

Source from the content-addressed store, hash-verified

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
35type Metadata struct {
36 // APIVersion specifies the plugin API version
37 APIVersion string
38
39 // Name is the name of the plugin
40 Name string
41
42 // Type of plugin (eg, cli/v1, getter/v1, postrenderer/v1)
43 Type string
44
45 // Runtime specifies the runtime type (subprocess, wasm)
46 Runtime string
47
48 // Version is the SemVer 2 version of the plugin.
49 Version string
50
51 // SourceURL is the URL where this plugin can be found
52 SourceURL string
53
54 // Config contains the type-specific configuration for this plugin
55 Config Config
56
57 // RuntimeConfig contains the runtime-specific configuration
58 RuntimeConfig RuntimeConfig
59}
60
61func (m Metadata) Validate() error {
62 var errs []error

Callers 2

filterPluginsFunction · 0.92

Calls

no outgoing calls