Documentation ¶
Overview ¶
Package storage implements the go library for OPI to be used in storage, for example, CSI drivers
Package storage implements the go library for OPI to be used in storage, for example, CSI drivers ¶
Package storage implements the go library for OPI to be used in storage, for example, CSI drivers ¶
Package storage implements the go library for OPI to be used in storage, for example, CSI drivers ¶
Package storage implements the go library for OPI to be used in storage, for example, CSI drivers
Index ¶
- func CreateNvmeNamespace(id string, subSystemID string, nguid string, hostID int32) (string, error)
- func DeleteNvmeNamespace(id string) error
- func DoBackend(ctx context.Context, conn grpc.ClientConnInterface) error
- func DoFrontend(ctx context.Context, conn grpc.ClientConnInterface) error
- func DoMiddleend(ctx context.Context, conn grpc.ClientConnInterface) error
- func ExposeRemoteNvme(subsystemNQN string, maxNamespaces int64) (string, string, error)
- func GenerateHostNQN() string
- func NvmeControllerConnect(id string, trAddr string, subnqn string, trSvcID int64, hostnqn string) error
- func NvmeControllerDisconnect(id string) error
- func NvmeControllerGet(id string) (string, error)
- type NvmeConnection
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNvmeNamespace ¶ added in v0.2.0
CreateNvmeNamespace Creates a new Nvme namespace
func DeleteNvmeNamespace ¶ added in v0.2.0
DeleteNvmeNamespace deletes the Nvme namespace
func DoBackend ¶ added in v0.2.0
func DoBackend(ctx context.Context, conn grpc.ClientConnInterface) error
DoBackend executes the back end code
func DoFrontend ¶ added in v0.2.0
func DoFrontend(ctx context.Context, conn grpc.ClientConnInterface) error
DoFrontend executes the front end code
func DoMiddleend ¶ added in v0.2.0
func DoMiddleend(ctx context.Context, conn grpc.ClientConnInterface) error
DoMiddleend executes the middle end code
func ExposeRemoteNvme ¶ added in v0.2.0
ExposeRemoteNvme creates a new Nvme Subsystem and Nvme controller. Default value of MaxNamespaces is 32 incase the parameter is not assigned any value
func NvmeControllerConnect ¶ added in v0.2.0
func NvmeControllerConnect(id string, trAddr string, subnqn string, trSvcID int64, hostnqn string) error
NvmeControllerConnect Connects to remote Nvme controller
func NvmeControllerDisconnect ¶ added in v0.2.0
NvmeControllerDisconnect disconnects remote Nvme controller connection
func NvmeControllerGet ¶ added in v0.2.0
NvmeControllerGet lists the connection to the remote Nvme controller corresponding to the given ID
Types ¶
type NvmeConnection ¶ added in v0.2.0
type NvmeConnection struct {
// contains filtered or unexported fields
}
NvmeConnection defines remote Nvme connection
func NvmeControllerList ¶ added in v0.2.0
func NvmeControllerList() ([]NvmeConnection, error)
NvmeControllerList lists all the connections to the remote Nvme controller