code

package
v1.0.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2020 License: Apache-2.0 Imports: 0 Imported by: 32

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Code

type Code int

Code represents a stable fault code.

NB: All control plane errors should register their codes in the following block in order to avoid conflicts.

const (
	// general fault codes
	Unknown Code = iota
	MissingSoftwareDependency
	PrivilegedHelperNotPrivileged
	PrivilegedHelperNotAvailable
	PrivilegedHelperRequestFailed

	// generic storage fault codes
	StorageUnknown Code = iota + 100
	StorageAlreadyFormatted
	StorageFilesystemAlreadyMounted
	StorageDeviceAlreadyMounted
	StorageTargetAlreadyMounted

	// SCM fault codes
	ScmUnknown Code = iota + 200
	ScmFormatInvalidSize
	ScmFormatInvalidDeviceCount
	ScmFormatMissingMountpoint
	ScmFormatMissingDevice
	ScmFormatMissingParam
	ScmFormatConflictingParam
	ScmDiscoveryFailed

	// Bdev fault codes
	BdevUnknown Code = iota + 300
	BdevFormatUnknownClass
	BdevFormatFailure
	BdevFormatBadPciAddress

	// DAOS system fault codes
	SystemUnknown Code = iota + 400
	SystemMemberExists
	SystemMemberMissing
	SystemMemberChanged

	// client fault codes
	ClientUnknown Code = iota + 500
	ClientConfigBadControlPort
	ClientConfigBadAccessPoints

	// server fault codes
	ServerUnknown Code = iota + 600
	ServerBadConfig
	ServerNoConfigPath
	ServerConfigBadControlPort
	ServerConfigBadAccessPoints
	ServerConfigBadProvider
	ServerConfigNoServers
	ServerScmUnmanaged
	ServerBdevNotFound
	ServerConfigDuplicateFabric
	ServerConfigDuplicateLogFile
	ServerConfigDuplicateScmMount
	ServerConfigDuplicateScmDeviceList
	ServerConfigOverlappingBdevDeviceList
	ServerPoolScmTooSmall
	ServerPoolNvmeTooSmall

	// spdk library bindings codes
	SpdkUnknown Code = iota + 700
	SpdkCtrlrNoHealth
	SpdkBindingRetNull
	SpdkBindingFailed

	// security fault codes
	SecurityUnknown Code = iota + 900
)

Jump to

Keyboard shortcuts

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