Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
goSDN
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
danet
goSDN
Commits
cc48f476
Commit
cc48f476
authored
2 years ago
by
Fabian Seidl
Browse files
Options
Downloads
Plain Diff
Merge branch 'develop' into 242-improve-security-by-enabling-and-enforcing-more-linting-rules
parents
93539735
d3a7883e
No related branches found
No related tags found
1 merge request
!363
Resolve "Improve security by enabling and enforcing more linting rules"
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
controller/eventService/Service.go
+3
-1
3 additions, 1 deletion
controller/eventService/Service.go
go.mod
+44
-55
44 additions, 55 deletions
go.mod
go.sum
+84
-66
84 additions, 66 deletions
go.sum
with
131 additions
and
122 deletions
controller/eventService/Service.go
+
3
−
1
View file @
cc48f476
package
eventservice
import
(
"context"
"encoding/json"
"code.fbi.h-da.de/danet/gosdn/controller/config"
...
...
@@ -61,7 +62,8 @@ func (e *EventService) PublishEvent(topic string, event event.Event) error {
return
&
errors
.
ErrCouldNotMarshall
{
Identifier
:
topic
+
" "
+
event
.
EntityID
.
String
(),
Type
:
event
.
Type
,
Err
:
err
}
}
err
=
e
.
channel
.
Publish
(
err
=
e
.
channel
.
PublishWithContext
(
context
.
TODO
(),
""
,
// exchange
q
.
Name
,
// routing key
false
,
// mandatory
...
...
This diff is collapsed.
Click to expand it.
go.mod
+
44
−
55
View file @
cc48f476
...
...
@@ -3,53 +3,37 @@ module code.fbi.h-da.de/danet/gosdn
go 1.18
require (
github.com/docker/docker
v20.10.11+incompatible
github.com/aristanetworks/goarista
v0.0.0-20220425175323-05f7c4c5e34c
github.com/c-bata/go-prompt
v0.2.6
github.com/docker/docker
v20.10.17+incompatible
github.com/google/go-cmp
v0.5.8
github.com/google/uuid
v1.3.0
github.com/grpc-ecosystem/grpc-gateway/v2
v2.7.2
github.com/openconfig/gnmi
v0.0.0-20220503232738-6eb133c65a13
github.com/openconfig/goyang
v1.0.0
github.com/openconfig/ygot
v0.20.0
github.com/prometheus/client_golang
v1.11.0
github.com/sirupsen/logrus
v1.8.1
github.com/spf13/cobra
v1.1.3
github.com/spf13/viper
v1.11.0
github.com/stretchr/objx
v0.2.0 // indirect
github.com/stretchr/testify
v1.7.1
golang.org/x/sync
v0.0.0-20210220032951-036812b2e83c
google.golang.org/grpc
v1.46.0
google.golang.org/protobuf
v1.28.0
gopkg.in/yaml.v3
v3.0.0-20210107192922-496545a6307b
)
require (
github.com/c-bata/go-prompt
v0.2.6
github.com/grpc-ecosystem/grpc-gateway/v2
v2.11.0
github.com/mitchellh/go-homedir
v1.1.0
github.com/openconfig/gnmi
v0.0.0-20220617175856-41246b1b3507
github.com/openconfig/goyang
v1.1.0
github.com/openconfig/ygot
v0.22.1
github.com/prometheus/client_golang
v1.12.2
github.com/pterm/pterm
v0.12.41
github.com/spf13/pflag
v1.0.5
go.mongodb.org/mongo-driver
v1.8.4
google.golang.org/genproto
v0.0.0-20220505152158-f39f71e6c8f3
)
require (
github.com/aristanetworks/goarista
v0.0.0-20220425175323-05f7c4c5e34c
github.com/sethvargo/go-password
v0.2.0
)
require
github.com/gorilla/mux
v1.8.0 // indirect
require (
github.com/atomicgo/cursor
v0.0.1 // indirect
github.com/gookit/color
v1.5.0 // indirect
github.com/pelletier/go-toml/v2
v2.0.0-beta.8 // indirect
github.com/rivo/uniseg
v0.2.0 // indirect
github.com/xo/terminfo
v0.0.0-20210125001918-ca9a967f8778 // indirect
golang.org/x/term
v0.0.0-20210927222741-03fcf44c2211 // indirect
github.com/sirupsen/logrus
v1.9.0
github.com/spf13/cobra
v1.1.3
github.com/spf13/pflag
v1.0.5
github.com/spf13/viper
v1.12.0
github.com/stretchr/objx
v0.2.0 // indirect
github.com/stretchr/testify
v1.7.2
go.mongodb.org/mongo-driver
v1.10.0
golang.org/x/sync
v0.0.0-20220722155255-886fb9371eb4
google.golang.org/genproto
v0.0.0-20220725144611-272f38e5d71b
google.golang.org/grpc
v1.48.0
google.golang.org/protobuf
v1.28.1
gopkg.in/yaml.v3
v3.0.1
)
require (
github.com/Microsoft/go-winio
v0.5.1 // indirect
github.com/Microsoft/hcsshim
v0.9.2 // indirect
github.com/atomicgo/cursor
v0.0.1 // indirect
github.com/beorn7/perks
v1.0.1 // indirect
github.com/cespare/xxhash/v2
v2.1.2 // indirect
github.com/containerd/cgroups
v1.0.3 // indirect
...
...
@@ -58,17 +42,17 @@ require (
github.com/docker/distribution
v2.7.1+incompatible // indirect
github.com/docker/go-connections
v0.4.0 // indirect
github.com/docker/go-units
v0.4.0 // indirect
github.com/fsnotify/fsnotify
v1.5.1 // indirect
github.com/go-stack/stack
v1.8.0 // indirect
github.com/fsnotify/fsnotify
v1.5.4 // indirect
github.com/gogo/protobuf
v1.3.2 // indirect
github.com/golang-jwt/jwt
v3.2.2+incompatible
github.com/golang/glog
v1.0.0
github.com/golang/groupcache
v0.0.0-20210331224755-41bb18bfe9da // indirect
github.com/golang/protobuf
v1.5.2
github.com/golang/snappy
v0.0.4 // indirect
github.com/gookit/color
v1.5.0 // indirect
github.com/hashicorp/hcl
v1.0.0 // indirect
github.com/inconshreveable/mousetrap
v1.0.0 // indirect
github.com/klauspost/compress
v1.1
3.6
// indirect
github.com/klauspost/compress
v1.1
5.9
// indirect
github.com/kylelemons/godebug
v1.1.0 // indirect
github.com/magiconair/properties
v1.8.6 // indirect
github.com/mattn/go-colorable
v0.1.12 // indirect
...
...
@@ -76,33 +60,38 @@ require (
github.com/mattn/go-runewidth
v0.0.13 // indirect
github.com/mattn/go-tty
v0.0.3 // indirect
github.com/matttproud/golang_protobuf_extensions
v1.0.2-0.20181231171920-c182affec369 // indirect
github.com/mitchellh/mapstructure
v1.
4.3
// indirect
github.com/mitchellh/mapstructure
v1.
5.0
// indirect
github.com/moby/sys/mount
v0.3.1 // indirect
github.com/moby/sys/mountinfo
v0.6.0 // indirect
github.com/montanaflynn/stats
v0.6.6 // indirect
github.com/opencontainers/go-digest
v1.0.0 // indirect
github.com/opencontainers/image-spec
v1.0.2 // indirect
github.com/opencontainers/runc
v1.1.0 // indirect
github.com/pelletier/go-toml
v1.9.4 // indirect
github.com/pelletier/go-toml
v1.9.5 // indirect
github.com/pelletier/go-toml/v2
v2.0.2 // indirect
github.com/pkg/errors
v0.9.1 // indirect
github.com/pkg/term
v1.2.0-beta.2 // indirect
github.com/pmezard/go-difflib
v1.0.0 // indirect
github.com/prometheus/client_model
v0.2.0 // indirect
github.com/prometheus/common
v0.30.0 // indirect
github.com/prometheus/procfs
v0.7.3 // indirect
github.com/rabbitmq/amqp091-go
v1.3.4
github.com/spf13/afero
v1.8.2 // indirect
github.com/spf13/cast
v1.4.1 // indirect
github.com/prometheus/common
v0.37.0 // indirect
github.com/prometheus/procfs
v0.8.0 // indirect
github.com/rabbitmq/amqp091-go
v1.4.0
github.com/rivo/uniseg
v0.2.0 // indirect
github.com/spf13/afero
v1.9.2 // indirect
github.com/spf13/cast
v1.5.0 // indirect
github.com/spf13/jwalterweatherman
v1.1.0 // indirect
github.com/subosito/gotenv
v1.
2
.0 // indirect
github.com/subosito/gotenv
v1.
4
.0 // indirect
github.com/xdg-go/pbkdf2
v1.0.0 // indirect
github.com/xdg-go/scram
v1.0.2 // indirect
github.com/xdg-go/stringprep
v1.0.2 // indirect
github.com/youmark/pkcs8
v0.0.0-20181117223130-1be2e3e5546d // indirect
github.com/xdg-go/scram
v1.1.1 // indirect
github.com/xdg-go/stringprep
v1.0.3 // indirect
github.com/xo/terminfo
v0.0.0-20210125001918-ca9a967f8778 // indirect
github.com/youmark/pkcs8
v0.0.0-20201027041543-1326539a0a0a // indirect
go.opencensus.io
v0.23.0 // indirect
golang.org/x/crypto
v0.0.0-20220411220226-7b82a4e95df4
golang.org/x/net
v0.0.0-20220425223048-2871e0cb64e4
golang.org/x/sys
v0.0.0-20220503163025-988cb79eb6c6 // indirect
golang.org/x/crypto
v0.0.0-20220722155217-630584e8d5aa
golang.org/x/net
v0.0.0-20220728030405-41545e8bf201
golang.org/x/sys
v0.0.0-20220728004956-3c1f35247d10 // indirect
golang.org/x/term
v0.0.0-20210927222741-03fcf44c2211 // indirect
golang.org/x/text
v0.3.7 // indirect
gopkg.in/ini.v1
v1.66.
4
// indirect
gopkg.in/ini.v1
v1.66.
6
// indirect
gopkg.in/yaml.v2
v2.4.0 // indirect
)
This diff is collapsed.
Click to expand it.
go.sum
+
84
−
66
View file @
cc48f476
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment