Browse Source

fix case insensitiv

Andreas Peters 1 year ago
parent
commit
4a8da47453

+ 1
- 0
.gitattributes View File

@@ -1,2 +1,3 @@
1 1
 config.yaml filter=git-crypt diff=git-crypt
2
+data/config.yaml filter=git-crypt diff=git-crypt
2 3
 *.key filter=git-crypt diff=git-crypt

+ 1
- 0
.gitignore View File

@@ -1,3 +1,4 @@
1 1
 go-neb.db
2 2
 config.yaml
3 3
 log/*.log*
4
+data/config.yaml

+ 1
- 2
README.MD View File

@@ -35,7 +35,7 @@ There are still a lot of work. Currently our main focus is the AWS support.
35 35
 # Software Requirements
36 36
 
37 37
 ```
38
-go get github.com/Sirupsen/logrus 
38
+go get github.com/sirupsen/logrus 
39 39
 go get github.com/matrix-org/util
40 40
 go get github.com/mattn/go-sqlite3
41 41
 go get github.com/prometheus/client_golang/prometheus
@@ -45,7 +45,6 @@ go get github.com/mattn/go-shellwords
45 45
 go get gopkg.in/yaml.v2
46 46
 go get golang.org/x/oauth2
47 47
 go get github.com/google/go-github/github
48
-go get github.com/sirupsen/logrus
49 48
 go get gopkg.in/alecthomas/kingpin.v2
50 49
 go get github.com/russross/blackfriday
51 50
 go get github.com/aws/aws-sdk-go

+ 1
- 1
api/handlers/auth.go View File

@@ -11,8 +11,8 @@ import (
11 11
 	"../../database"
12 12
 	"../../metrics"
13 13
 	"../../types"
14
-	log "github.com/Sirupsen/logrus"
15 14
 	"github.com/matrix-org/util"
15
+	log "github.com/sirupsen/logrus"
16 16
 )
17 17
 
18 18
 // RequestAuthSession represents an HTTP handler capable of processing /admin/requestAuthSession requests.

+ 1
- 1
api/handlers/service.go View File

@@ -14,9 +14,9 @@ import (
14 14
 	"../../metrics"
15 15
 	"../../polling"
16 16
 	"../../types"
17
-	log "github.com/Sirupsen/logrus"
18 17
 	"github.com/matrix-org/gomatrix"
19 18
 	"github.com/matrix-org/util"
19
+	log "github.com/sirupsen/logrus"
20 20
 )
21 21
 
22 22
 // ConfigureService represents an HTTP handler which can process /admin/configureService requests.

+ 1
- 1
api/handlers/webhook.go View File

@@ -8,7 +8,7 @@ import (
8 8
 	"../../clients"
9 9
 	"../../database"
10 10
 	"../../metrics"
11
-	log "github.com/Sirupsen/logrus"
11
+	log "github.com/sirupsen/logrus"
12 12
 )
13 13
 
14 14
 // Webhook represents an HTTP handler capable of accepting webhook requests on behalf of services.

+ 1
- 1
app.go View File

@@ -20,11 +20,11 @@ import (
20 20
 	_ "./services/invoice"
21 21
 	_ "./services/pentest"
22 22
 	"./types"
23
-	log "github.com/Sirupsen/logrus"
24 23
 	"github.com/matrix-org/dugong"
25 24
 	"github.com/matrix-org/util"
26 25
 	_ "github.com/mattn/go-sqlite3"
27 26
 	"github.com/prometheus/client_golang/prometheus"
27
+	log "github.com/sirupsen/logrus"
28 28
 
29 29
 	yaml "gopkg.in/yaml.v2"
30 30
 )

+ 1
- 1
clients/clients.go View File

@@ -13,9 +13,9 @@ import (
13 13
 	"../matrix"
14 14
 	"../metrics"
15 15
 	"../types"
16
-	log "github.com/Sirupsen/logrus"
17 16
 	"github.com/matrix-org/gomatrix"
18 17
 	shellwords "github.com/mattn/go-shellwords"
18
+	log "github.com/sirupsen/logrus"
19 19
 )
20 20
 
21 21
 // A Clients is a collection of clients used for bot services.

+ 1
- 1
init.go View File

@@ -11,7 +11,7 @@ func init() {
11 11
 	flag.StringVar(&BASE_URL, "baseurl", "http://localhost:4050", "base url")
12 12
 
13 13
 	LOG_DIR = "./log"
14
-	CONFIG_FILE = "./config.yaml"
14
+	CONFIG_FILE = "./data/config.yaml"
15 15
 
16 16
 	flag.Parse()
17 17
 }

+ 1
- 1
matrix/matrix.go View File

@@ -5,8 +5,8 @@ import (
5 5
 
6 6
 	"../api"
7 7
 	"../database"
8
-	log "github.com/Sirupsen/logrus"
9 8
 	"github.com/matrix-org/gomatrix"
9
+	log "github.com/sirupsen/logrus"
10 10
 )
11 11
 
12 12
 // NEBStore implements the gomatrix.Storer interface.

+ 1
- 1
polling/polling.go View File

@@ -8,7 +8,7 @@ import (
8 8
 	"../clients"
9 9
 	"../database"
10 10
 	"../types"
11
-	log "github.com/Sirupsen/logrus"
11
+	log "github.com/sirupsen/logrus"
12 12
 )
13 13
 
14 14
 // Remember when we first started polling on this service ID. Polling routines will

+ 1
- 1
realms/github/github.go View File

@@ -13,8 +13,8 @@ import (
13 13
 	"../../database"
14 14
 	"../../services/github/client"
15 15
 	"../../types"
16
-	log "github.com/Sirupsen/logrus"
17 16
 	"github.com/google/go-github/github"
17
+	log "github.com/sirupsen/logrus"
18 18
 )
19 19
 
20 20
 // RealmType of the Github Realm

+ 1
- 1
services/aws/aws.go View File

@@ -8,7 +8,7 @@ import (
8 8
 	"github.com/aws/aws-sdk-go/service/ec2"
9 9
 
10 10
 	"../../types"
11
-	log "github.com/Sirupsen/logrus"
11
+	log "github.com/sirupsen/logrus"
12 12
 
13 13
 	"github.com/aws/aws-sdk-go/aws"
14 14
 	"github.com/matrix-org/gomatrix"

+ 1
- 1
services/aws/instance.go View File

@@ -4,8 +4,8 @@ import (
4 4
 	"fmt"
5 5
 	"strings"
6 6
 
7
-	log "github.com/Sirupsen/logrus"
8 7
 	"github.com/matrix-org/gomatrix"
8
+	log "github.com/sirupsen/logrus"
9 9
 
10 10
 	"github.com/aws/aws-sdk-go/aws"
11 11
 	"github.com/aws/aws-sdk-go/service/ec2"

+ 1
- 1
services/aws/misc.go View File

@@ -1,7 +1,7 @@
1 1
 package aws
2 2
 
3 3
 import (
4
-	log "github.com/Sirupsen/logrus"
4
+	log "github.com/sirupsen/logrus"
5 5
 
6 6
 	"github.com/aws/aws-sdk-go/aws"
7 7
 	"github.com/aws/aws-sdk-go/aws/credentials"

+ 1
- 1
services/github/github.go View File

@@ -17,9 +17,9 @@ import (
17 17
 	"../../realms/github"
18 18
 	"../../services/github/client"
19 19
 	"../../types"
20
-	log "github.com/Sirupsen/logrus"
21 20
 	gogithub "github.com/google/go-github/github"
22 21
 	"github.com/matrix-org/gomatrix"
22
+	log "github.com/sirupsen/logrus"
23 23
 )
24 24
 
25 25
 // ServiceType of the Github service

+ 1
- 1
services/github/github_webhook.go View File

@@ -11,9 +11,9 @@ import (
11 11
 	"../../services/github/client"
12 12
 	"../../services/github/webhook"
13 13
 	"../../types"
14
-	log "github.com/Sirupsen/logrus"
15 14
 	gogithub "github.com/google/go-github/github"
16 15
 	"github.com/matrix-org/gomatrix"
16
+	log "github.com/sirupsen/logrus"
17 17
 )
18 18
 
19 19
 // WebhookServiceType of the Github Webhook service.

+ 1
- 1
services/github/webhook/webhook.go View File

@@ -11,10 +11,10 @@ import (
11 11
 	"net/http"
12 12
 	"strings"
13 13
 
14
-	log "github.com/Sirupsen/logrus"
15 14
 	"github.com/google/go-github/github"
16 15
 	"github.com/matrix-org/gomatrix"
17 16
 	"github.com/matrix-org/util"
17
+	log "github.com/sirupsen/logrus"
18 18
 )
19 19
 
20 20
 // OnReceiveRequest processes incoming github webhook requests and returns a

+ 1
- 1
services/invoice/invoice.go View File

@@ -9,9 +9,9 @@ import (
9 9
 	"strings"
10 10
 
11 11
 	"../../types"
12
-	log "github.com/Sirupsen/logrus"
13 12
 	"github.com/matrix-org/gomatrix"
14 13
 	"github.com/russross/blackfriday"
14
+	log "github.com/sirupsen/logrus"
15 15
 )
16 16
 
17 17
 // ServiceType of the Invoice service

+ 1
- 1
services/pentest/misc.go View File

@@ -7,8 +7,8 @@ import (
7 7
 	"fmt"
8 8
 	"strings"
9 9
 
10
-	log "github.com/Sirupsen/logrus"
11 10
 	"github.com/russross/blackfriday"
11
+	log "github.com/sirupsen/logrus"
12 12
 )
13 13
 
14 14
 // start a task in OpenVAS

+ 1
- 1
services/pentest/pentest.go View File

@@ -7,8 +7,8 @@ import (
7 7
 	"strings"
8 8
 
9 9
 	"../../types"
10
-	log "github.com/Sirupsen/logrus"
11 10
 	"github.com/matrix-org/gomatrix"
11
+	log "github.com/sirupsen/logrus"
12 12
 )
13 13
 
14 14
 // ServiceType of the Invoice service

Loading…
Cancel
Save