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

Function Loader

pkg/chart/loader/load.go:43–52  ·  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

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

Callers 1

LoadFunction · 0.70

Calls 2

DirLoaderTypeAlias · 0.70
FileLoaderTypeAlias · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…