MCPcopy
hub / github.com/helm/helm / Loader

Function Loader

internal/chart/v3/loader/load.go:45–54  ·  view source on GitHub ↗

Loader returns a new ChartLoader appropriate for the given chart name

(name string)

Source from the content-addressed store, hash-verified

43
44// Loader returns a new ChartLoader appropriate for the given chart name
45func Loader(name string) (ChartLoader, error) {
46 fi, err := os.Stat(name)
47 if err != nil {
48 return nil, err
49 }
50 if fi.IsDir() {
51 return DirLoader(name), nil
52 }
53 return FileLoader(name), nil
54}
55
56// Load takes a string name, tries to resolve it to a file or directory, and then loads it.
57//

Callers 8

TestLoadDirFunction · 0.70
TestLoadDirWithDevNullFunction · 0.70
TestLoadDirWithSymlinkFunction · 0.70
TestLoadDirWithUTFBOMFunction · 0.70
TestLoadFileFunction · 0.70
TestLoadV3WithReqsFunction · 0.70
LoadFunction · 0.70

Calls 2

DirLoaderTypeAlias · 0.70
FileLoaderTypeAlias · 0.70

Tested by 7

TestLoadDirFunction · 0.56
TestLoadDirWithDevNullFunction · 0.56
TestLoadDirWithSymlinkFunction · 0.56
TestLoadDirWithUTFBOMFunction · 0.56
TestLoadFileFunction · 0.56
TestLoadV3WithReqsFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…