package
0.0.0-20240312113903-a721360cb836
Repository: https://github.com/spdk/spdk-csi.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
CleanUpVolumeContext cleans up any stashed volume context at passed in path.
CleanUpXPUContext cleans up any stashed XPU context at passed in path.
ConvertInterfaceToMap converts an interface to a map[string]string.
${env:-def}.
GetAvailableFunctions returns next available Pf and Vf by checking into sysfs for existing NVMe PCIe devices Two cases will be included, using kvm to emulate xPU hardware, and xPU hardware.
get the Nvme block device.
GetVirtioBlkDevice returns a block device available at the given bdf path.
No description provided by the author
LookupVolumeContext read and returns stashed volume context at passed in path.
LookupXPUContext read and returns stashed XPU context at passed in path.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewVolumeLocks returns new VolumeLocks.
No description provided by the author
StashVolumeContext stashes volume context into the volumeContextFileName at the passed in path, in JSON format.
StashXPUContext stashes XPU context into the volumeContextFileName at the passed in path, in JSON format.
round up bytes to megabytes.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author

# Variables

errors deserve special care.
json response errors: errors.New("json: tag-string") matches if "tag-string" founded in json error string.
errors deserve special care.
internal errors.
errors deserve special care.
errors deserve special care.
classID, vendorID and deviceID and which are used to detect QEMU KVM PCI-PCI bridge detailed info: https://www.qemu.org/docs/master/specs/pci-ids.html#b36-vendor-id.

# Structs

BDev SPDK block device.
Config stores parsed command line parameters.
No description provided by the author
CSIControllerConfig config for csi driver controller server, see deploy/kubernetes/config-map.yaml nolint:tagliatelle // not using json:snake case.
logical volume store.
No description provided by the author
No description provided by the author
nolint:tagliatelle // not using json:snake case.
SpdkNodeConfig config for spdk storage cluster nolint:tagliatelle // not using json:snake case.
SpdkSecrets spdk storage cluster connection secrets, see deploy/kubernetes/secrets.yaml nolint:tagliatelle // not using json:snake case.
a trivial trylock implementation.
VolumeLocks simple locks that can be acquired by volumeID.
nolint:tagliatelle // not using json:snake case.
No description provided by the author

# Interfaces

SpdkCsiInitiator defines interface for NVMeoF/iSCSI initiator - Connect initiates target connection and returns local block device filename e.g., /dev/disk/by-id/nvme-SPDK_Controller1_SPDK00000000000001 - Disconnect terminates target connection - Caller(node service) should serialize calls to same initiator - Implementation should be idempotent to duplicated requests.
SpdkNode defines interface for SPDK storage node - Info returns node info(rpc url) for debugging purpose - LvStores returns available volume stores(name, size, etc) on that node.
No description provided by the author

# Type aliases

No description provided by the author