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

Function storageProvider

lib/storage.go:146–153  ·  view source on GitHub ↗

Storage creates a storage object from the class in an object string

(iObject string)

Source from the content-addressed store, hash-verified

144
145// Storage creates a storage object from the class in an object string
146func storageProvider(iObject string) (storage, error) {
147 components := strings.Split(iObject, ":")
148 if len(components) < 1 || components[0] != fileStorageClass {
149 return storage{}, fmt.Errorf("storage provider not found: %s", iObject)
150 }
151
152 return storage{}, nil
153}

Callers 8

CreateNoteboxFunction · 0.85
DeleteFunction · 0.85
OpenNoteboxFunction · 0.85
checkpointNotefileMethod · 0.85
uAddNotefileMethod · 0.85
OpenNotefileMethod · 0.85
DeleteNotefileMethod · 0.85
MergeNoteboxMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected