errors

package
v1.1.18 Latest Latest
Warning

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

Go to latest
Published: May 10, 2019 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EdgefsVolumeNotExistsErrorCode      = 1
	EdgefsVolumeNotFoundErrorCode       = 2
	EdgefsServiceNotExistsErrorCode     = 3
	EdgefsNoServiceAvailableErrorCode   = 4
	EdgefsUnknownBackendTypeErrorCode   = 5
	EdgefsSnapshotNotExistErrorCode     = 6
	EdgefsSnapshotAlreadyExistErrorCode = 7
)

Variables

This section is empty.

Functions

func GetEdgefsErrorCode

func GetEdgefsErrorCode(err error) int

func IsEdgefsNoServiceAvailableError

func IsEdgefsNoServiceAvailableError(err error) bool

func IsEdgefsServiceNotExistsError

func IsEdgefsServiceNotExistsError(err error) bool

func IsEdgefsSnapshotAlreadyExistTypeError

func IsEdgefsSnapshotAlreadyExistTypeError(err error) bool

func IsEdgefsSnapshotNotExistTypeError

func IsEdgefsSnapshotNotExistTypeError(err error) bool

func IsEdgefsUnknownBackendTypeError

func IsEdgefsUnknownBackendTypeError(err error) bool

func IsEdgefsVolumeNotExistsError

func IsEdgefsVolumeNotExistsError(err error) bool

Types

type EdgefsError

type EdgefsError struct {
	Msg  string
	Code int
}

func (*EdgefsError) Error

func (e *EdgefsError) Error() string

Jump to

Keyboard shortcuts

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