MCPcopy
hub / github.com/perkeep/perkeep / detail

Function detail

cmd/pk/list.go:169–175  ·  view source on GitHub ↗
(blob *search.DescribedBlob)

Source from the content-addressed store, hash-verified

167}
168
169func detail(blob *search.DescribedBlob) string {
170 // TODO(mpl): attrType, value for claim. but I don't think they're accessible just with a describe req.
171 if blob.CamliType == schema.TypeFile {
172 return fmt.Sprintf("%v (%v size=%v)", blob.CamliType, blob.File.FileName, blob.File.Size)
173 }
174 return string(blob.CamliType)
175}

Callers 1

RunCommandMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected