func (dr *DescribeRequest) describeRefs(str string, depth int) { for _, match := range blobRefPattern.FindAllString(str, -1) { if ref, ok := blob.ParseKnown(match); ok { dr.Describe(ref, depth-1) } } }
func wantsBlobRef(req *http.Request) bool { _, ok := blob.ParseKnown(httputil.PathSuffix(req)) return ok }