MCPcopy Create free account
hub / github.com/docker/secrets-engine / ExpandPattern

Method ExpandPattern

x/secrets/pattern.go:148–154  ·  view source on GitHub ↗
(other Pattern)

Source from the content-addressed store, hash-verified

146}
147
148func (p pattern) ExpandPattern(other Pattern) (Pattern, error) {
149 val, err := replace1(string(p), other.String())
150 if err != nil {
151 return nil, err
152 }
153 return pattern(val), err
154}
155
156// Filter returns a reduced [Pattern] that is subset equal to [filter].
157// Returns false if there's no overlap between [filter] and [other].

Callers

nothing calls this directly

Calls 3

replace1Function · 0.85
patternTypeAlias · 0.85
StringMethod · 0.65

Tested by

no test coverage detected