disk

package
v0.0.0-...-d5fd3e1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BlockDiskSubsystemVirtio = BlockDiskSubsystem("virtio")
	BlockDiskSubsystemPci    = BlockDiskSubsystem("pci")
	BlockDiskSubsystemNvme   = BlockDiskSubsystem("nvme")
	BlockDiskSubsystemScsi   = BlockDiskSubsystem("scsi")
)
View Source
const (
	BlockDiskTypeDisk = BlockDiskType("disk")
	BlockDiskTypeLoop = BlockDiskType("loop")
)

Variables

This section is empty.

Functions

func DiskCreate

func DiskCreate(spdkClient *spdkclient.Client, diskName, diskPath, diskDriver string, blockSize uint64) (string, error)

func DiskDelete

func DiskDelete(spdkClient *spdkclient.Client, diskName, diskPath, diskDriver string) (bool, error)

func DiskGet

func DiskGet(spdkClient *spdkclient.Client, diskName, diskPath, diskDriver string, timeout uint64) ([]spdktypes.BdevInfo, error)

func GetDiskDriver

func GetDiskDriver(diskDriver commonTypes.DiskDriver, diskPathOrBdf string) (commonTypes.DiskDriver, error)

func RegisterDiskDriver

func RegisterDiskDriver(diskDriver string, ops DiskDriver)

Types

type BlockDiskSubsystem

type BlockDiskSubsystem string

type BlockDiskType

type BlockDiskType string

type DiskDriver

type DiskDriver interface {
	DiskCreate(*spdkclient.Client, string, string, uint64) (string, error)
	DiskDelete(*spdkclient.Client, string, string) (bool, error)
	DiskGet(*spdkclient.Client, string, string, uint64) ([]spdktypes.BdevInfo, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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