-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.go
More file actions
38 lines (28 loc) · 1.51 KB
/
Copy patherrors.go
File metadata and controls
38 lines (28 loc) · 1.51 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
package certstore
import "errors"
var (
// ErrUnsupportedHash is returned when the requested hash algorithm is not
// supported by the underlying platform signing implementation.
ErrUnsupportedHash = errors.New("unsupported hash algorithm")
// ErrUnsupportedBackend is returned when the selected backend is not
// supported on the current platform or otherwise unavailable for the
// selected configuration.
ErrUnsupportedBackend = errors.New("unsupported backend")
// ErrIdentityNotFound is returned when no matching identity can be found.
ErrIdentityNotFound = errors.New("identity not found")
// ErrLoginRequired is returned when backend access requires an explicit
// login step before the requested operation can proceed.
ErrLoginRequired = errors.New("login required")
// ErrCredentialRequired is returned when a backend requires credentials.
ErrCredentialRequired = errors.New("credential required")
// ErrIncorrectCredential is returned when provided credentials are rejected.
ErrIncorrectCredential = errors.New("incorrect credential")
// ErrMechanismUnsupported is returned when a backend cannot perform a
// requested signing or key operation.
ErrMechanismUnsupported = errors.New("mechanism unsupported")
// ErrClosed is returned when an operation is attempted on a closed resource.
ErrClosed = errors.New("closed")
// ErrInvalidConfiguration is returned when the supplied backend or option
// combination is incomplete or inconsistent.
ErrInvalidConfiguration = errors.New("invalid configuration")
)