Skip to content

Commit 3bb0cd5

Browse files
nmhancockalexellis
authored andcommitted
Update faas-memory to use go modules
This commit updates faas-memory to build with go modules It also updates handlers/info.go to work with the latest provider types. Finally it updates main.go for greater symmetry with faas-netes'. Signed-off-by: Nicholas Hancock <[email protected]>
1 parent 7660768 commit 3bb0cd5

File tree

5 files changed

+511
-9
lines changed

5 files changed

+511
-9
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ examples/
44
dist
55
faas-memory
66
dive.log
7-
deployment/k8s/yaml/gateway-dep.yml
7+
deployment/k8s/yaml/gateway-dep.yml
8+
vendor/

go.mod

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
module github.com/openfaas-incubator/faas-memory
2+
3+
go 1.18
4+
5+
require (
6+
github.com/gorilla/mux v1.8.0
7+
github.com/openfaas/faas-provider v0.19.0
8+
github.com/sirupsen/logrus v1.9.0
9+
)
10+
11+
require (
12+
github.com/beorn7/perks v1.0.1 // indirect
13+
github.com/cespare/xxhash/v2 v2.1.2 // indirect
14+
github.com/golang/protobuf v1.5.2 // indirect
15+
github.com/matttproud/golang_protobuf_extensions v1.0.1 // indirect
16+
github.com/prometheus/client_golang v1.12.2 // indirect
17+
github.com/prometheus/client_model v0.2.0 // indirect
18+
github.com/prometheus/common v0.32.1 // indirect
19+
github.com/prometheus/procfs v0.7.3 // indirect
20+
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8 // indirect
21+
google.golang.org/protobuf v1.26.0 // indirect
22+
)

0 commit comments

Comments
 (0)