Documentation ¶
Index ¶
- Variables
- func IsENVNamespaceNotSet(err error) bool
- func IsENVStorageClassNotSet(err error) bool
- func IsENVUbiquityDbPvNameNotSet(err error) bool
- func IsENVUbiquityDbSCNotSet(err error) bool
- func IsUbiquityServiceIPEmpty(err error) bool
- func NewError(reason ErrorReason) *ubError
- type ErrorReason
- type ReasonInterface
Constants ¶
This section is empty.
Variables ¶
View Source
var ENVNamespaceNotSet = NewError(ErrorReasonENVNamespaceNotSet)
View Source
var ENVStorageClassNotSet = NewError(ErrorReasonENVStorageClassNotSet)
View Source
var ENVUbiquityDbPvNameNotSet = NewError(ErrorReasonENVUbiquityDbPvNameNotSet)
View Source
var ENVUbiquityDbSCNotSet = NewError(ErrorReasonENVUbiquityDbSCNotSet)
View Source
var UbiquityServiceIPEmpty = NewError(ErrorReasonUbiquityServiceIPEmpty)
Functions ¶
func IsENVNamespaceNotSet ¶
func IsENVStorageClassNotSet ¶
func IsENVUbiquityDbSCNotSet ¶
func NewError ¶
func NewError(reason ErrorReason) *ubError
Types ¶
type ErrorReason ¶
type ErrorReason string
const ( ErrorReasonUbiquityServiceIPEmpty ErrorReason = "Failed getting ubiquity serviceIP, it is empty" ErrorReasonENVNotSet ErrorReason = "ENV not set" ErrorReasonENVNamespaceNotSet ErrorReason = "ENV NAMESPACE is not set" ErrorReasonENVStorageClassNotSet ErrorReason = "ENV STORAGE_CLASS is not set" ErrorReasonENVUbiquityDbPvNameNotSet ErrorReason = "ENV UBIQUITY_DB_PV_NAME is not set" ErrorReasonENVUbiquityDbSCNotSet ErrorReason = "ENV UBIQUITY_DB_STORAGECLASS is not set" ErrorReasonUnknown ErrorReason = "unknown" )
func ReasonForError ¶
func ReasonForError(err error) ErrorReason
ReasonForError returns the reason for a particular error.
type ReasonInterface ¶
type ReasonInterface interface {
Reason() ErrorReason
}
Click to show internal directories.
Click to hide internal directories.