-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
error.go
30 lines (25 loc) · 1.38 KB
/
error.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
// Copyright Dwi Siswanto and/or licensed to Dwi Siswanto under one
// or more contributor license agreements. Licensed under the Elastic License 2.0;
// you may not use this file except in compliance with the Elastic License 2.0.
// See the LICENSE-ELASTIC file in the project root for more information.
package teler
const (
errResources = "error while getting teler resources: %s"
errLogFile = "error opening log file: %s"
errPattern = "error while compile custom rule for \"%s\": %s"
errWhitelist = "error parsing whitelist pattern \"%s\": %s"
errInvalidRuleName = "error while compile custom rule: missing rule name"
errInvalidRuleCond = "invalid logical operator for \"%s\" rule condition, valid values are \"and\" or \"or\", given: \"%s\""
errCompileDSLExpr = "cannot compile DSL expression for \"%s\": %s"
errBadIPAddress = "bad IP address"
errBadReferer = "bad HTTP referer"
errBadCrawler = "bad crawler"
errDirectoryBruteforce = "directory bruteforce"
errConvYAML = "failed to convert YAML file \"%s\" to teler rule: %s"
errFindFile = "failed to find files matching pattern \"%s\": %s"
errOpenFile = "error while open file \"%s\": %s"
errReadFile = "error while read YAML file: %s"
errUnmarshalYAML = "cannot unmarshal YAML: %s"
errInvalidYAML = "invalid YAML rule: %s"
errConvValRule = "invalid \"%s\" %s value for \"%s\" rule"
)