-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.go
More file actions
43 lines (30 loc) · 1.74 KB
/
errors.go
File metadata and controls
43 lines (30 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package ctrlplane
import "errors"
// Sentinel errors returned by ctrlplane operations.
// Use errors.Is to check for these values.
var (
// ErrNotFound indicates the requested resource does not exist.
ErrNotFound = errors.New("ctrlplane: resource not found")
// ErrAlreadyExists indicates a resource with the same identity already exists.
ErrAlreadyExists = errors.New("ctrlplane: resource already exists")
// ErrInvalidState indicates an invalid state transition was attempted.
ErrInvalidState = errors.New("ctrlplane: invalid state transition")
// ErrProviderNotFound indicates the named provider is not registered.
ErrProviderNotFound = errors.New("ctrlplane: provider not registered")
// ErrUnauthorized indicates the request lacks valid authentication credentials.
ErrUnauthorized = errors.New("ctrlplane: unauthorized")
// ErrForbidden indicates the authenticated identity lacks permission.
ErrForbidden = errors.New("ctrlplane: forbidden")
// ErrQuotaExceeded indicates the tenant has exceeded their resource quota.
ErrQuotaExceeded = errors.New("ctrlplane: quota exceeded")
// ErrProviderUnavail indicates the provider is temporarily unavailable.
ErrProviderUnavail = errors.New("ctrlplane: provider unavailable")
// ErrDeploymentFailed indicates a deployment operation failed.
ErrDeploymentFailed = errors.New("ctrlplane: deployment failed")
// ErrHealthCheckFailed indicates a health check did not pass.
ErrHealthCheckFailed = errors.New("ctrlplane: health check failed")
// ErrRollbackFailed indicates a rollback operation failed.
ErrRollbackFailed = errors.New("ctrlplane: rollback failed")
// ErrInvalidConfig indicates the provided configuration is invalid.
ErrInvalidConfig = errors.New("ctrlplane: invalid configuration")
)