errors

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package errors contain some well-defined errors that may have to be passed up from low-level layers in the PMEM-CSI stack up to the gRPC interface.

These errors must be wrapped (for example, with %w) so that the upper layers can use errors.Is to recognize these special errors if needed.

Index

Constants

This section is empty.

Variables

View Source
var (
	// DeviceExists device with given id already exists
	DeviceExists = errors.New("device exists")

	// ErrDeviceNotFound device does not exists
	DeviceNotFound = errors.New("device not found")

	// ErrDeviceInUse device is in use
	DeviceInUse = errors.New("device in use")

	// ErrNotEnoughSpace no space to create the device
	NotEnoughSpace = errors.New("not enough space")
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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