Documentation ¶
Index ¶
- Variables
- func IsAlreadyExisted(err error) bool
- func IsInUse(err error) bool
- func IsInvalidAuthorization(err error) bool
- func IsInvalidParam(err error) bool
- func IsNotModified(err error) bool
- func IsNotfound(err error) bool
- func IsPreCheckFailed(err error) bool
- func IsTimeout(err error) bool
- func IsVolumeDriverNotFound(err error) bool
- func IsVolumeExisted(err error) bool
- func IsVolumeInUse(err error) bool
- func IsVolumeMetaNotFound(err error) bool
- func IsVolumeNotFound(err error) bool
Constants ¶
This section is empty.
Variables ¶
var ( // ErrInvalidParam represents the parameters are invalid. ErrInvalidParam = errorType{codeInvalidParam, "invalid param"} // ErrNotfound represents the object is not found, not exist. ErrNotfound = errorType{codeNotFound, "not found"} // ErrAlreadyExisted represents the object has already existed. ErrAlreadyExisted = errorType{codeAlreadyExisted, "already existed"} // ErrConflict represents the parameters are invalid. ErrConflict = errorType{codeConflict, "conflict"} // ErrTooMany reprensents the objects are too many. ErrTooMany = errorType{codeTooMany, "too many"} // ErrTimeout represents the operation is time out. ErrTimeout = errorType{codeTimeout, "time out"} // ErrLockfailed represents that failed to lock. ErrLockfailed = errorType{codeLockfailed, "lock failed"} // ErrNotImplemented represents that the function is not implemented. ErrNotImplemented = errorType{codeNotImplemented, "not implemented"} // ErrInUse represents that object is using. ErrInUse = errorType{codeInUse, "in use"} // ErrNotModified represents that the resource is not modified ErrNotModified = errorType{codeNotModified, "not modified"} // ErrPreCheckFailed represents that failed to pre check. ErrPreCheckFailed = errorType{codePreCheckFailed, "pre check failed"} // ErrInvalidAuthorization represents that authorization failed. ErrInvalidAuthorization = errorType{codeInvalidAuthorization, "authorization failed"} )
var ( // ErrVolumeInUse represents that volume in use. ErrVolumeInUse = errorType{codeInUse, "volume is in use"} // ErrVolumeNotFound represents that no such volume. ErrVolumeNotFound = errorType{codeNotFound, "no such volume"} // ErrVolumeExisted represents error is "volume exist" ErrVolumeExisted = errorType{codeVolumeExisted, "volume exist"} // ErrVolumeDriverNotFound represents error is "driver not found" ErrVolumeDriverNotFound = errorType{codeVolumeDriverNotFound, "driver not found"} // ErrVolumeMetaNotFound represents error is "local meta not found" ErrVolumeMetaNotFound = errorType{codeVolumeMetaNotFound, "local meta not found"} )
Functions ¶
func IsAlreadyExisted ¶
IsAlreadyExisted checks the error is object AlreadyExisted or not.
func IsInvalidAuthorization ¶
IsInvalidAuthorization checks the errors is authorization failure or not.
func IsInvalidParam ¶
IsInvalidParam checks the error is the parameters are invalid or not.
func IsNotModified ¶
IsNotModified checks the error is not modified error or not.
func IsNotfound ¶
IsNotfound checks the error is object Notfound or not.
func IsPreCheckFailed ¶
IsPreCheckFailed checks the error is failed to pre check or not.
func IsVolumeDriverNotFound ¶
IsVolumeDriverNotFound is used to check error is driverNotFound or not.
func IsVolumeExisted ¶
IsVolumeExisted is used to check error is volumeExisted or not.
func IsVolumeInUse ¶
IsVolumeInUse is used to check error is volume in use.
func IsVolumeMetaNotFound ¶
IsVolumeMetaNotFound is used to check error is localMetaNotFound or not.
func IsVolumeNotFound ¶
IsVolumeNotFound is used to check error is volumeNotFound or not.
Types ¶
This section is empty.