MCPcopy
hub / github.com/perkeep/perkeep / RefFromString

Function RefFromString

pkg/blob/ref.go:432–436  ·  view source on GitHub ↗

RefFromString returns a blobref from the given string, for the currently recommended hash function.

(s string)

Source from the content-addressed store, hash-verified

430// RefFromString returns a blobref from the given string, for the currently
431// recommended hash function.
432func RefFromString(s string) Ref {
433 h := NewHash()
434 io.WriteString(h, s)
435 return RefFromHash(h)
436}
437
438// RefFromBytes returns a blobref from the given string, for the currently
439// recommended hash function.

Callers 15

fileMapFromDuplicateMethod · 0.92
MakeTestDataMethod · 0.92
fakeCheckinsListFunction · 0.92
fakeVenueFunction · 0.92
fakePhotoItemFunction · 0.92
newSignerFunction · 0.92
MakeTestDataMethod · 0.92
fakeAlbumFunction · 0.92
fakePhotoEntryFunction · 0.92
MakeTestDataMethod · 0.92

Calls 2

NewHashFunction · 0.85
RefFromHashFunction · 0.85

Tested by 15

newSignerFunction · 0.74
TestBestByLocationFunction · 0.74
TestMultiStatFunction · 0.74
populateFunction · 0.74
doKeyStuffFunction · 0.74
newSignerFunction · 0.74
newShareTesterIdxFunction · 0.74
TestHandleGetViaSharingFunction · 0.74