feature

package
v0.8.21 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2022 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockSID

type BlockSID struct {
	LockingSPFreezeLockState      bool
	LockingSPFreezeLockSupported  bool
	SIDAuthenticationBlockedState bool
	SIDValueState                 bool
	HardwareReset                 bool
}

func ReadBlockSIDFeature

func ReadBlockSIDFeature(rdr io.Reader) (*BlockSID, error)

type CommonSSC

type CommonSSC struct {
	BaseComID uint16
	NumComID  uint16
}

type DataRemoval

type DataRemoval struct {
}

func ReadDataRemovalFeature

func ReadDataRemovalFeature(rdr io.Reader) (*DataRemoval, error)

type DataStore

type DataStore struct {
}

func ReadDataStoreFeature

func ReadDataStoreFeature(rdr io.Reader) (*DataStore, error)

type Enterprise

type Enterprise struct {
	CommonSSC
	RangeCrossingBehavior bool
}

func ReadEnterpriseFeature

func ReadEnterpriseFeature(rdr io.Reader) (*Enterprise, error)

type FeatureCode

type FeatureCode uint16
const (
	CodeTPer              FeatureCode = 0x0001
	CodeLocking           FeatureCode = 0x0002
	CodeGeometry          FeatureCode = 0x0003
	CodeSecureMsg         FeatureCode = 0x0004
	CodeEnterprise        FeatureCode = 0x0100
	CodeOpalV1            FeatureCode = 0x0200
	CodeSingleUser        FeatureCode = 0x0201
	CodeDataStore         FeatureCode = 0x0202
	CodeOpalV2            FeatureCode = 0x0203
	CodeOpalite           FeatureCode = 0x0301
	CodePyriteV1          FeatureCode = 0x0302
	CodePyriteV2          FeatureCode = 0x0303
	CodeRubyV1            FeatureCode = 0x0304
	CodeLockingLBA        FeatureCode = 0x0401
	CodeBlockSID          FeatureCode = 0x0402
	CodeNamespaceLocking  FeatureCode = 0x0403
	CodeDataRemoval       FeatureCode = 0x0404
	CodeNamespaceGeometry FeatureCode = 0x0405
	CodeSeagatePorts      FeatureCode = 0xC001
)

type Geometry

type Geometry struct {
}

func ReadGeometryFeature

func ReadGeometryFeature(rdr io.Reader) (*Geometry, error)

type Locking

type Locking struct {
	LockingSupported bool
	LockingEnabled   bool
	Locked           bool
	MediaEncryption  bool
	MBREnabled       bool
	MBRDone          bool
}

func ReadLockingFeature

func ReadLockingFeature(rdr io.Reader) (*Locking, error)

type LockingLBA

type LockingLBA struct {
}

func ReadLockingLBAFeature

func ReadLockingLBAFeature(rdr io.Reader) (*LockingLBA, error)

type NamespaceGeometry

type NamespaceGeometry struct {
}

func ReadNamespaceGeometryFeature

func ReadNamespaceGeometryFeature(rdr io.Reader) (*NamespaceGeometry, error)

type NamespaceLocking

type NamespaceLocking struct {
}

func ReadNamespaceLockingFeature

func ReadNamespaceLockingFeature(rdr io.Reader) (*NamespaceLocking, error)

type OpalV1

type OpalV1 struct {
}

func ReadOpalV1Feature

func ReadOpalV1Feature(rdr io.Reader) (*OpalV1, error)

type OpalV2

type OpalV2 struct {
	CommonSSC
	RangeCrossingBehavior         bool
	NumLockingSPAdminSupported    uint16
	NumLockingSPUserSupported     uint16
	InitialCPINSIDIndicator       uint8
	BehaviorCPINSIDuponTPerRevert uint8
}

func ReadOpalV2Feature

func ReadOpalV2Feature(rdr io.Reader) (*OpalV2, error)

type Opalite

type Opalite struct {
}

func ReadOpaliteFeature

func ReadOpaliteFeature(rdr io.Reader) (*Opalite, error)

type PyriteV1

type PyriteV1 struct {
	CommonSSC

	InitialCPINSIDIndicator       uint8
	BehaviorCPINSIDuponTPerRevert uint8
	// contains filtered or unexported fields
}

func ReadPyriteV1Feature

func ReadPyriteV1Feature(rdr io.Reader) (*PyriteV1, error)

type PyriteV2

type PyriteV2 struct {
	CommonSSC

	InitialCPINSIDIndicator       uint8
	BehaviorCPINSIDuponTPerRevert uint8
	// contains filtered or unexported fields
}

func ReadPyriteV2Feature

func ReadPyriteV2Feature(rdr io.Reader) (*PyriteV2, error)

type RubyV1

type RubyV1 struct {
}

func ReadRubyV1Feature

func ReadRubyV1Feature(rdr io.Reader) (*RubyV1, error)

type SeagatePort

type SeagatePort struct {
	PortIdentifier int32
	PortLocked     uint8
}

type SeagatePorts

type SeagatePorts struct {
	Ports []SeagatePort
}

func ReadSeagatePorts

func ReadSeagatePorts(rdr io.Reader) (*SeagatePorts, error)

type SecureMsg

type SecureMsg struct {
}

func ReadSecureMsgFeature

func ReadSecureMsgFeature(rdr io.Reader) (*SecureMsg, error)

type SingleUser

type SingleUser struct {
}

func ReadSingleUserFeature

func ReadSingleUserFeature(rdr io.Reader) (*SingleUser, error)

type TPer

type TPer struct {
	SyncSupported       bool
	AsyncSupported      bool
	AckNakSupported     bool
	BufferMgmtSupported bool
	StreamingSupported  bool
	ComIDMgmtSupported  bool
}

func ReadTPerFeature

func ReadTPerFeature(rdr io.Reader) (*TPer, error)

Jump to

Keyboard shortcuts

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