nvmehost

package
v0.0.0-...-0ee961e Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHostApi

func NewHostApi(logPagePaginationEnabled bool, nvmeHostIDPath string) hostapi.HostAPI

Types

type DiscoverRequest

type DiscoverRequest struct {
	Transport string
	Traddr    string
	Trsvcid   int
	Hostnqn   string
	Hostaddr  string
	Kato      time.Duration
}

type NvmeDiscPageEntry

type NvmeDiscPageEntry struct {
	PortID  uint16
	CntlID  uint16
	TrsvcID uint16
	Subnqn  string
	Traddr  string
	SubType nvme.SubsystemType
}

NvmeDiscPageEntry struct represent discovery log page that will be returned from discover method

type TCPClient

type TCPClient interface {
	Stop() error
	Discover(discoverRequest *DiscoverRequest) ([]*NvmeDiscPageEntry, error)
	AENChan() <-chan interface{}
	KAChan() chan interface{}
}

TCPClient tcp based client API

func NewClient

func NewClient(logPagePaginationEnabled bool, nvmeHostIDPath string) TCPClient

NewClient creates NVMeTCP client

Jump to

Keyboard shortcuts

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