Documentation ¶
Index ¶
Constants ¶
View Source
const ( RPCStatusBadRequest = "type.googleapis.com/google.rpc.BadRequest" RPCStatusDebugInfo = "type.googleapis.com/google.rpc.DebugInfo" RPCStatusErrorInfo = "type.googleapis.com/google.rpc.ErrorInfo" RPCStatusHelp = "type.googleapis.com/google.rpc.Help" RPCStatusPreconditionFailure = "type.googleapis.com/google.rpc.PreconditionFailure" RPCStatusQuotaFailure = "type.googleapis.com/google.rpc.QuotaFailure" RPCStatusRetryInfo = "type.googleapis.com/google.rpc.RetryInfo" )
Variables ¶
View Source
var PkgVersionErr = regexp.MustCompile(`^plugin\.Open\("(.*)"\).*plugin was built with a different version of package (.*)$`)
Functions ¶
func CheckPluginError ¶ added in v0.0.15
CheckPluginError checks an error generated while loading plugins. If the error is an issue with the plugin, the error is logged, the plugin is not loaded, nil is returned, and execution continues. If it is an unhandled error, it is returned and execution is halted.
func CheckRevertGcloudConfigError ¶
func CheckRevertGcloudConfigError(err error)
CheckRevertGcloudConfigError prompts the user to manually reset their gcloud config if eiam failed to do so.
Types ¶
type SDKClientCreateError ¶
SDKClientCreateError is used for errors caused when attempting to create a GCP SDK client/service.
func (*SDKClientCreateError) Error ¶
func (e *SDKClientCreateError) Error() string
Click to show internal directories.
Click to hide internal directories.