forked from raystack/guardian
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy patherrors.go
18 lines (16 loc) · 1.06 KB
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package gcloudiam
import "errors"
var (
ErrUnableToEncryptNilCredentials = errors.New("unable to encrypt nil credentials")
ErrUnableToDecryptNilCredentials = errors.New("unable to decrypt nil credentials")
ErrInvalidPermissionConfig = errors.New("invalid permission config type")
ErrInvalidCredentials = errors.New("invalid credentials type")
ErrPermissionAlreadyExists = errors.New("permission already exists")
ErrPermissionNotFound = errors.New("permission not found")
ErrInvalidResourceType = errors.New("invalid resource type")
ErrInvalidRole = errors.New("invalid role")
ErrShouldHaveOneResource = errors.New("gcloud_iam should have one resource")
ErrInvalidResourceName = errors.New("invalid resource name: resource name should be projects/{{project-id}} or organizations/{{org-id}}")
ErrRolesShouldNotBeEmpty = errors.New("gcloud_iam provider should not have empty roles")
ErrInvalidProjectRole = errors.New("provided role is not supported for project in gcloud")
)