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.