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

Method ExpandID

x/secrets/pattern.go:140–146  ·  view source on GitHub ↗
(other ID)

Source from the content-addressed store, hash-verified

138}
139
140func (p pattern) ExpandID(other ID) (ID, error) {
141 val, err := replace1(string(p), other.String())
142 if err != nil {
143 return nil, err
144 }
145 return id(val), err
146}
147
148func (p pattern) ExpandPattern(other Pattern) (Pattern, error) {
149 val, err := replace1(string(p), other.String())

Callers

nothing calls this directly

Calls 3

replace1Function · 0.85
idTypeAlias · 0.85
StringMethod · 0.65

Tested by

no test coverage detected