Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PluginError ¶
type PluginError interface { // Error implements golang error interface Error() string // Type returns the type of CloudProviderError Type() PluginErrorType }
func NewPluginError ¶
func NewPluginError(errorType PluginErrorType, msg string, args ...interface{}) PluginError
NewPluginError returns new plugin error with a message constructed from format string
func ToPluginError ¶
func ToPluginError(err error, errorType PluginErrorType) PluginError
type PluginErrorType ¶
type PluginErrorType string
PluginErrorType describes a high-level category of a given error
const ( // ApiCallError is an error related to communication with k8s API server ApiCallError PluginErrorType = "apiCallError" // InternalError is an error inside plugin InternalError PluginErrorType = "internalError" // ParameterError is an error related to bad parameters provided by a user ParameterError PluginErrorType = "parameterError" // NotImplementedError an error related to be not implemented by developers NotImplementedError PluginErrorType = "notImplementedError" )
Click to show internal directories.
Click to hide internal directories.