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

Function fromMetadataLegacy

internal/plugin/metadata.go:114–130  ·  view source on GitHub ↗
(m MetadataLegacy)

Source from the content-addressed store, hash-verified

112}
113
114func fromMetadataLegacy(m MetadataLegacy) *Metadata {
115 pluginType := "cli/v1"
116
117 if len(m.Downloaders) > 0 {
118 pluginType = "getter/v1"
119 }
120
121 return &Metadata{
122 APIVersion: "legacy",
123 Name: m.Name,
124 Version: m.Version,
125 Type: pluginType,
126 Runtime: "subprocess",
127 Config: buildLegacyConfig(m, pluginType),
128 RuntimeConfig: buildLegacyRuntimeConfig(m),
129 }
130}
131
132func buildLegacyConfig(m MetadataLegacy, pluginType string) Config {
133 switch pluginType {

Callers 1

loadMetadataLegacyFunction · 0.85

Calls 2

buildLegacyConfigFunction · 0.85
buildLegacyRuntimeConfigFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…