Documentation
¶
Index ¶
Constants ¶
View Source
const ( NVME_ADMIN_IDENTIFY = 0x06 NVME_SECURITY_SEND = 0x81 NVME_SECURITY_RECV = 0x82 )
Variables ¶
View Source
var (
ErrNotSupported = errors.New("operation is not supported")
)
View Source
var (
NVME_IOCTL_ADMIN_CMD = ioctl.Iowr('N', 0x41, unsafe.Sizeof(nvmePassthruCommand{}))
)
Functions ¶
func Certificate ¶
func Certificate(d driveIntf) (*x509.Certificate, error)
Returns the X.509 security certificate from the drive.
Types ¶
type SecurityProtocol ¶
type SecurityProtocol int
const ( SecurityProtocolInformation SecurityProtocol = 0 SecurityProtocolTCGManagement SecurityProtocol = 1 SecurityProtocolTCGTPer SecurityProtocol = 2 )
func SecurityProtocols ¶
func SecurityProtocols(d driveIntf) ([]SecurityProtocol, error)
Returns a list of supported security protocols.
Click to show internal directories.
Click to hide internal directories.