nvme

package
v0.0.0-...-20aa718 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	Path        string
	Name        string
	Model       string
	Serial      string
	FirmwareRev string
	Namespaces  []*Namespace
}

Controller represents a NVMe controller

func NewDecoder

func NewDecoder(path string) *Controller

NewDecoder creates and initializes a Controller

func (*Controller) Decode

func (c *Controller) Decode() error

Decode searches connected disks

type Namespace

type Namespace struct {
	blk.CommonSpec
	Name string
	Path string
}

Namespace represents a NVMe namespace

func (Namespace) ID

func (n Namespace) ID() int

ID returns namespace id

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳