MCPcopy
hub / github.com/helm/helm / NewExtractor

Function NewExtractor

internal/plugin/installer/extractor.go:65–72  ·  view source on GitHub ↗

NewExtractor creates a new extractor matching the source file name

(source string)

Source from the content-addressed store, hash-verified

63
64// NewExtractor creates a new extractor matching the source file name
65func NewExtractor(source string) (Extractor, error) {
66 for suffix, extractor := range Extractors {
67 if strings.HasSuffix(source, suffix) {
68 return extractor, nil
69 }
70 }
71 return nil, fmt.Errorf("no extractor implemented yet for %s", source)
72}
73
74// cleanJoin resolves dest as a subpath of root.
75//

Callers 5

TestExtractFunction · 0.85
NewLocalInstallerFunction · 0.85
NewHTTPInstallerFunction · 0.85

Calls

no outgoing calls

Tested by 3

TestExtractFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…