MCPcopy Create free account
hub / github.com/docker/buildx / sourceName

Function sourceName

policy/validate.go:519–525  ·  view source on GitHub ↗
(req *policysession.CheckPolicyRequest)

Source from the content-addressed store, hash-verified

517}
518
519func sourceName(req *policysession.CheckPolicyRequest) string {
520 name := req.Source.Source.Identifier
521 if p, _ := platformFromReq(req); p != nil {
522 name += " (" + platforms.Format(*p) + ")"
523 }
524 return name
525}
526
527func (p *Policy) Print(ctx print.Context, msg string) error {
528 if p.opt.Log != nil {

Callers 2

CheckPolicyMethod · 0.85
resolveUnknownsMethod · 0.85

Calls 2

platformFromReqFunction · 0.85
FormatMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…