errors

package
v0.0.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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"
)

gRPC error protobuf type names.

Variables

This section is empty.

Functions

func CheckError

func CheckError(err error)

CheckError is the top-level error handler.

func CheckRevertGcloudConfigError

func CheckRevertGcloudConfigError(err error)

CheckRevertGcloudConfigError prompts the user to manually reset their gcloud config if eiam failed to do so.

func New added in v0.0.16

func New(msg string, err error) error

func NewSDKError added in v0.0.16

func NewSDKError(resType, svcAcct string, err error) error

Types

type EiamError

type EiamError struct {
	Err error
	Log *logrus.Entry
	Msg string
}

EiamError represents a generic ephemeral-iam error.

func (EiamError) Error

func (e EiamError) Error() string

type SDKClientCreateError

type SDKClientCreateError struct {
	Err            error
	ResourceType   string
	ServiceAccount string
}

SDKClientCreateError is used for errors caused when attempting to create a GCP SDK client/service.

func (SDKClientCreateError) Error

func (e SDKClientCreateError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL