Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrVolumeNotFound represents error is "volume not found" ErrVolumeNotFound = CoreError{volumeNotFound, "volume not found"} // ErrVolumeExisted represents error is "volume exist" ErrVolumeExisted = CoreError{volumeExisted, "volume exist"} // ErrStorageNotFound represents error is "storage not found" ErrStorageNotFound = CoreError{storageNotFound, "storage not found"} // ErrDriverNotFound represents error is "driver not found" ErrDriverNotFound = CoreError{driverNotFound, "driver not found"} // ErrLocalMetaNotFound represents error is "local meta not found" ErrLocalMetaNotFound = CoreError{localMetaNotFound, "local meta not found"} // ErrDisableControl represents error is "disable control server" ErrDisableControl = CoreError{disableControl, "disable control server"} )
Functions ¶
This section is empty.
Types ¶
type CoreError ¶
type CoreError struct {
// contains filtered or unexported fields
}
CoreError represents volume core error struct.
func (CoreError) IsDisableControl ¶
IsDisableControl is used to check error is disableControl or not.
func (CoreError) IsDriverNotFound ¶
IsDriverNotFound is used to check error is driverNotFound or not.
func (CoreError) IsLocalMetaNotFound ¶
IsLocalMetaNotFound is used to check error is localMetaNotFound or not.
func (CoreError) IsStorageNotFound ¶
IsStorageNotFound is used to check error is storageNotFound or not.
func (CoreError) IsVolumeExisted ¶
IsVolumeExisted is used to check error is volumeExisted or not.
func (CoreError) IsVolumeNotFound ¶
IsVolumeNotFound is used to check error is volumeNotFound or not.
Click to show internal directories.
Click to hide internal directories.