storage

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

README

Storage package

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNvmeNamespace added in v0.2.0

func CreateNvmeNamespace(id string, subSystemID string, nguid string, hostID int32) (string, error)

CreateNvmeNamespace Creates a new Nvme namespace

func DeleteNvmeNamespace added in v0.2.0

func DeleteNvmeNamespace(id string) error

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

func ExposeRemoteNvme(subsystemNQN string, maxNamespaces int64) (string, string, error)

ExposeRemoteNvme creates a new Nvme Subsystem and Nvme controller. Default value of MaxNamespaces is 32 incase the parameter is not assigned any value

func GenerateHostNQN

func GenerateHostNQN() string

GenerateHostNQN generates a new hostNQN

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

func NvmeControllerDisconnect(id string) error

NvmeControllerDisconnect disconnects remote Nvme controller connection

func NvmeControllerGet added in v0.2.0

func NvmeControllerGet(id string) (string, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL