Documentation ¶
Index ¶
- Constants
- func ClusterIDNotSet(err error) bool
- func ClusterRegistryError(err error) bool
- func ConvertError(err error) bool
- func InputError(err error) bool
- func MarshalError(err error) bool
- func NotFound(err error) bool
- func OperationInProgress(err error) bool
- func PreconditionError(err error) bool
- func RendererError(err error) bool
- func SFClusterNotFound(err error) bool
- func SFPlanNotFound(err error) bool
- func SFServiceBindingNotFound(err error) bool
- func SFServiceInstanceNotFound(err error) bool
- func SFServiceNotFound(err error) bool
- func SchedulerFailed(err error) bool
- func TemplateNotFound(err error) bool
- func UnmarshalError(err error) bool
- type ErrorCodeType
- type InteroperatorError
- func NewClusterIDNotSet(name string, err error) *InteroperatorError
- func NewClusterRegistryError(message string, err error) *InteroperatorError
- func NewConvertError(message string, err error) *InteroperatorError
- func NewInputError(fn, inputs string, err error) *InteroperatorError
- func NewMarshalError(message string, err error) *InteroperatorError
- func NewOperationInProgress(name string, err error) *InteroperatorError
- func NewPreconditionError(fn, message string, err error) *InteroperatorError
- func NewRendererError(rendererType, message string, err error) *InteroperatorError
- func NewSFClusterNotFound(name string, err error) *InteroperatorError
- func NewSFPlanNotFound(name string, err error) *InteroperatorError
- func NewSFServiceBindingNotFound(name string, err error) *InteroperatorError
- func NewSFServiceInstanceNotFound(name string, err error) *InteroperatorError
- func NewSFServiceNotFound(name string, err error) *InteroperatorError
- func NewSchedulerFailed(schedulerType, message string, err error) *InteroperatorError
- func NewTemplateNotFound(name, planID string, err error) *InteroperatorError
- func NewUnmarshalError(message string, err error) *InteroperatorError
Constants ¶
const ( CodeSFServiceNotFound = "SFServiceNotFound" CodeSFPlanNotFound = "SFPlanNotFound" CodeSFServiceInstanceNotFound = "SFServiceInstanceNotFound" CodeSFServiceBindingNotFound = "SFServiceBindingNotFound" CodeSFClusterNotFound = "SFClusterNotFound" CodeTemplateNotFound = "TemplateNotFound" CodeSchedulerFailed = "CodeSchedulerFailed" CodeOperationInProgress = "OperationInProgress" CodeRendererError = "RendererError" CodeClusterRegistryError = "ClusterRegistryError" CodeClusterIDNotSet = "ClusterIDNotSet" CodeInputError = "CodeInputError" CodeMarshalError = "CodeMarshalError" CodeUnmarshalError = "CodeUnmarshalError" CodeConvertError = "CodeConvertError" CodePreconditionError = "CodePreconditionError" CodeUnknown = "Unknown" )
Error codes
Variables ¶
This section is empty.
Functions ¶
func ClusterIDNotSet ¶
ClusterIDNotSet checks whether error is of CodeClusterError type
func ClusterRegistryError ¶
ClusterRegistryError checks whether error is of CodeClusterError type
func ConvertError ¶
ConvertError checks whether error is of CodeConvertError type
func InputError ¶
InputError is true if the error indicates an InputError.
func MarshalError ¶
MarshalError checks whether error is of CodeMarshalError type
func OperationInProgress ¶
OperationInProgress is true if the error indicates the requested service binding is not found.
func PreconditionError ¶
PreconditionError is true if the error indicates an PreconditionError.
func RendererError ¶
RendererError is true if the error indicates renderer error.
func SFClusterNotFound ¶
SFClusterNotFound is true if the error indicates the requested cluster object is not found.
func SFPlanNotFound ¶
SFPlanNotFound is true if the error indicates the requested service plan is not found.
func SFServiceBindingNotFound ¶
SFServiceBindingNotFound is true if the error indicates the requested service binding is not found.
func SFServiceInstanceNotFound ¶
SFServiceInstanceNotFound is true if the error indicates the requested service instance is not found.
func SFServiceNotFound ¶
SFServiceNotFound is true if the error indicates the requested service is not found.
func SchedulerFailed ¶
SchedulerFailed is true if the error indicates an SchedulerFailed.
func TemplateNotFound ¶
TemplateNotFound is true if the error indicates TemplateNotFound error.
func UnmarshalError ¶
UnmarshalError checks whether error is of CodeUnmarshalError type
Types ¶
type ErrorCodeType ¶
type ErrorCodeType string
ErrorCodeType is the type for error codes
func ErrorCode ¶
func ErrorCode(err error) ErrorCodeType
ErrorCode returns the HTTP status for a particular error.
type InteroperatorError ¶
type InteroperatorError struct { Err error Code ErrorCodeType Message string }
InteroperatorError generic error implementation used by interoperator
func NewClusterIDNotSet ¶
func NewClusterIDNotSet(name string, err error) *InteroperatorError
NewClusterIDNotSet returns new error indicating clusterID is not set for the instance
func NewClusterRegistryError ¶
func NewClusterRegistryError(message string, err error) *InteroperatorError
NewClusterRegistryError returns new error indicating incorrect arguments passed.
func NewConvertError ¶
func NewConvertError(message string, err error) *InteroperatorError
NewConvertError returns new error indicating error converting between formats
func NewInputError ¶
func NewInputError(fn, inputs string, err error) *InteroperatorError
NewInputError returns a new error which indicates error in args to a functions
func NewMarshalError ¶
func NewMarshalError(message string, err error) *InteroperatorError
NewMarshalError returns new error indicating marshalling to specific format failed.
func NewOperationInProgress ¶
func NewOperationInProgress(name string, err error) *InteroperatorError
NewOperationInProgress returns a new error which indicates that some operation is progress.
func NewPreconditionError ¶
func NewPreconditionError(fn, message string, err error) *InteroperatorError
NewPreconditionError returns a new error which indicates precondition not met
func NewRendererError ¶
func NewRendererError(rendererType, message string, err error) *InteroperatorError
NewRendererError returns a new error which indicates renderer error
func NewSFClusterNotFound ¶
func NewSFClusterNotFound(name string, err error) *InteroperatorError
NewSFClusterNotFound returns a new error which indicates that the SfService is not found.
func NewSFPlanNotFound ¶
func NewSFPlanNotFound(name string, err error) *InteroperatorError
NewSFPlanNotFound returns a new error which indicates that the SfService is not found.
func NewSFServiceBindingNotFound ¶
func NewSFServiceBindingNotFound(name string, err error) *InteroperatorError
NewSFServiceBindingNotFound returns a new error which indicates that the SfService is not found.
func NewSFServiceInstanceNotFound ¶
func NewSFServiceInstanceNotFound(name string, err error) *InteroperatorError
NewSFServiceInstanceNotFound returns a new error which indicates that the SfService is not found.
func NewSFServiceNotFound ¶
func NewSFServiceNotFound(name string, err error) *InteroperatorError
NewSFServiceNotFound returns a new error which indicates that the SfService is not found.
func NewSchedulerFailed ¶
func NewSchedulerFailed(schedulerType, message string, err error) *InteroperatorError
NewSchedulerFailed returns a new error which indicates that scheduler failed
func NewTemplateNotFound ¶
func NewTemplateNotFound(name, planID string, err error) *InteroperatorError
NewTemplateNotFound returns a new error which indicates plan template not found
func NewUnmarshalError ¶
func NewUnmarshalError(message string, err error) *InteroperatorError
NewUnmarshalError returns new error new error indicating unmarshalling from specific format failed.
func (*InteroperatorError) Error ¶
func (e *InteroperatorError) Error() string
Error returns an error message describing 'e'.