code

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

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

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

	// SCM fault codes
	ScmUnknown Code = iota + 200
	ScmFormatBadParam

	// Bdev fault codes
	BdevUnknown Code = iota + 300
	BdevFormatBadParam

	// 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