package
0.0.0-20200908014345-4a7f41d0fee0
Repository: https://github.com/nokamoto/demo20-apps.git
Documentation: pkg.go.dev

# Packages

Package compute is a generated GoMock package.
Package iam is a generated GoMock package.
Package rdb is a generated GoMock package.
Package resourcemanager is a generated GoMock package.

# Functions

Error converts the mysql error to an application error using the error map.
FromNameF returns an id from the name in the form of `{collection}/{resource}`.

# Constants

AlreadyExists is ErrorCode corresponing to ErrAlreadyExists.
Internal is ErrorCode corresponding to ErrInternal.
NotFound is ErrorCode corresponding to ErrNotFound.
PermissionDenied is ErrorCode corresponding to ErrPermissionDenied.

# Variables

ErrAlreadyExists represents a resource already exists.
ErrInternal represents an unexpected condition.
ErrNotFound represents a resource is not found.
ErrPermissionDenied represents a resouce is not accessible.

# Type aliases

ErrorCode is an internal error number for ErrorMap.
ErrorMap maps ErrorCode to a resource id.