MCPcopy Create free account
hub / github.com/blues/note / FileStorageObject

Function FileStorageObject

lib/file.go:46–52  ·  view source on GitHub ↗

FileStorageObject gives a deterministic storage object name from two components

(containerName string)

Source from the content-addressed store, hash-verified

44
45// FileStorageObject gives a deterministic storage object name from two components
46func FileStorageObject(containerName string) string {
47 // Generate a filename using the default storage file name
48 name := fsFilename(containerName, defaultFileStorageName)
49
50 // Return it as a storage object name
51 return fileStorageClass + ":" + name
52}
53
54// Remove the scheme if it's present
55func fsRemoveScheme(storageObject string) string {

Calls 1

fsFilenameFunction · 0.85

Tested by 15

TestNoteboxExtremeRaceFunction · 0.68
TestNoteboxUntilPanicFunction · 0.68
testConcurrentOpenCloseFunction · 0.68
testReopenRaceFunction · 0.68
testOpenCountRaceFunction · 0.68