This is a Marvell plugin to OPI storage APIs based on SPDK.
This project welcomes contributions and suggestions. We are happy to have the Community involved via submission of Issues and Pull Requests (with substantive content or even just fixes). We are hoping for the documents, test framework, etc. to become a community process with active engagement. PRs can be reviewed by by any number of people, and a maintainer may accept.
See CONTRIBUTING and GitHub Basic Process for more details.
go build -v -buildmode=plugin -o /opi-marvell-bridge.so ./...
in main app:
package main
import (
"plugin"
pb "github.com/opiproject/opi-api/storage/v1alpha1/gen/go"
)
func main()
plug, err := plugin.Open("/opi-marvell-bridge.so")
feNvmeSymbol, err := plug.Lookup("PluginFrontendNvme")
var feNvme pb.FrontendNvmeServiceServer
feNvme, ok := feNvmeSymbol.(pb.FrontendNvmeServiceServer)
s := grpc.NewServer()
pb.RegisterFrontendNvmeServiceServer(s, feNvme)
reflection.Register(s)
}