-
Notifications
You must be signed in to change notification settings - Fork 0
/
errors.go
48 lines (36 loc) · 983 Bytes
/
errors.go
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
44
45
46
47
48
package talisman
type CertificateDoesNotExistErr struct {
CommonName string
}
func (e CertificateDoesNotExistErr) Error() string {
return "the certificate for '" + e.CommonName + "' does not exist"
}
type CertificateExistsErr struct {
CommonName string
}
func (e CertificateExistsErr) Error() string {
return "the certificate for '" + e.CommonName + "' exists"
}
type KeyDoesNotExistErr struct {
CommonName string
}
func (e KeyDoesNotExistErr) Error() string {
return "the private key for '" + e.CommonName + "' does not exist"
}
type KeyExistsErr struct {
CommonName string
}
func (e KeyExistsErr) Error() string {
return "the private key for '" + e.CommonName + "' exists"
}
type KeyTypeNotSupportedErr struct {
Type string
}
func (e KeyTypeNotSupportedErr) Error() string {
return "private key type '" + e.Type + "' not supported"
}
type InvalidKeySizeError struct {
}
func (e InvalidKeySizeError) Error() string {
return "invalid key size for algorithm"
}