MCPcopy
hub / github.com/ipfs/kubo / injectDatastorePlugin

Function injectDatastorePlugin

plugin/loader/loader.go:371–373  ·  view source on GitHub ↗
(pl plugin.PluginDatastore)

Source from the content-addressed store, hash-verified

369}
370
371func injectDatastorePlugin(pl plugin.PluginDatastore) error {
372 return fsrepo.AddDatastoreConfigHandler(pl.DatastoreTypeName(), pl.DatastoreConfigParser())
373}
374
375func injectIPLDPlugin(pl plugin.PluginIPLD) error {
376 return pl.Register(multicodec.DefaultRegistry)

Callers 1

InjectMethod · 0.85

Calls 3

DatastoreTypeNameMethod · 0.65
DatastoreConfigParserMethod · 0.65

Tested by

no test coverage detected