MCPcopy
hub / github.com/helm/helm / transform

Function transform

pkg/chart/v2/util/create.go:814–816  ·  view source on GitHub ↗

transform performs a string replacement of the specified source for a given key with the replacement string

(src, replacement string)

Source from the content-addressed store, hash-verified

812// transform performs a string replacement of the specified source for
813// a given key with the replacement string
814func transform(src, replacement string) []byte {
815 return []byte(strings.ReplaceAll(src, "<CHARTNAME>", replacement))
816}
817
818func writeFile(name string, content []byte) error {
819 if err := os.MkdirAll(filepath.Dir(name), 0755); err != nil {

Callers 2

CreateFromFunction · 0.70
CreateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…