-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patherrors.go
26 lines (16 loc) · 1.01 KB
/
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
package servers
import "errors"
var (
ErrUnmarshalUnknownKind = errors.New("unknown server-kind, no server associated with kind")
ErrTLSCertFileNotExists = errors.New("tls cert-file doesn't exists")
ErrTLSCertFilePathNotProvided = errors.New("tls cert-file path is not provided")
ErrTLSKeyFileNotExists = errors.New("tls key-file doesn't exists")
ErrTLSKeyFilePathNotProvided = errors.New("tls key-file path is not provided")
ErrUnixSocketParentDirNotExists = errors.New("unix socket parent dir doesn't exists")
ErrUnixSocketPathNotProvided = errors.New("tls key-file path is not provided")
ErrGotBothInetAndUnix = errors.New("provided server is both unix and inet")
ErrLoadCACertFile = errors.New("error load trusted CA")
ErrUnknownVersionTLS = errors.New("unknown version TLS")
ErrUnknownClientAuthTypeTLS = errors.New("unknown client auth type TLS")
ErrInvalidTLSConfigSet = errors.New("client auth tls is enabled but server tls not, server tls must be enable for client tls auth can work.")
)