MCPcopy Index your code
hub / github.com/docker/cli / getCasterForPath

Method getCasterForPath

cli/compose/interpolation/interpolation.go:160–167  ·  view source on GitHub ↗
(path Path)

Source from the content-addressed store, hash-verified

158}
159
160func (o Options) getCasterForPath(path Path) (Cast, bool) {
161 for pattern, caster := range o.TypeCastMapping {
162 if path.matches(pattern) {
163 return caster, true
164 }
165 }
166 return nil, false
167}

Callers 1

recursiveInterpolateFunction · 0.80

Calls 1

matchesMethod · 0.80

Tested by

no test coverage detected