github.com/hoffie/larasync@v0.0.0-20151025221940-0384d2bddcef/config/errors.go (about) 1 package config 2 3 import ( 4 "errors" 5 ) 6 7 var ( 8 // ErrAdminPubkeyMissing is returned if no admin pubkey is specified. 9 // It is used by the ServerConfig handling. 10 ErrAdminPubkeyMissing = errors.New("empty admin pubkey") 11 12 // ErrInvalidAdminPubkey is returned if decoding the admin pubkey fails. 13 // It is used by the ServerConfig handling. 14 ErrInvalidAdminPubkey = errors.New("invalid admin pubkey") 15 16 // ErrTruncatedAdminPubkey is returned if the given admin pubkey is too short. 17 // It is used by the ServerConfig handling. 18 ErrTruncatedAdminPubkey = errors.New("admin pubkey too short") 19 20 // ErrMissingBasePath is returned if no base path is configured. 21 // It is used by the ServerConfig handling. 22 ErrMissingBasePath = errors.New("missing basepath") 23 24 // ErrBadBasePath is returned if the configured base path is not accessible. 25 // It is used by the ServerConfig handling. 26 ErrBadBasePath = errors.New("unaccessible basepath") 27 )