Skip to content

Commit bc31004

Browse files
tenyoTenyo Grozev
and
Tenyo Grozev
authored
Update packages and buffalo (#22)
* update packages and buffalo * return empty response instead of 404 if there are no snapshots Co-authored-by: Tenyo Grozev <[email protected]>
1 parent 67d8294 commit bc31004

File tree

6 files changed

+31
-41
lines changed

6 files changed

+31
-41
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ POST http://127.0.0.1:3000/v1/rds/{account}
158158
"sg-12345678"
159159
]
160160
}
161-
}```
161+
}
162+
```
162163

163164
### Getting details about a database
164165

actions/snapshots.go

-4
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,6 @@ func SnapshotsList(c buffalo.Context) error {
8585
return handleError(c, err)
8686
}
8787

88-
if len(clusterSnapshotsOutput.DBClusterSnapshots) == 0 && len(instanceSnapshotsOutput.DBSnapshots) == 0 {
89-
return c.Error(404, errors.New("No snapshots found"))
90-
}
91-
9288
var items int
9389
if clusterSnapshotsOutput.DBClusterSnapshots != nil {
9490
items = len(clusterSnapshotsOutput.DBClusterSnapshots)

docker/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This is a multi-stage Dockerfile and requires >= Docker 17.05
22
# https://docs.docker.com/engine/userguide/eng-image/multistage-build/
3-
FROM gobuffalo/buffalo:v0.16.26 as builder
3+
FROM gobuffalo/buffalo:v0.17.2 as builder
44

55
ARG version=0.0.0
66
ARG prerelease

docker/Dockerfile.local

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This is a multi-stage Dockerfile and requires >= Docker 17.05
22
# https://docs.docker.com/engine/userguide/eng-image/multistage-build/
3-
FROM gobuffalo/buffalo:v0.16.26 as builder
3+
FROM gobuffalo/buffalo:v0.17.2 as builder
44

55
RUN mkdir /app
66
WORKDIR /app

go.mod

+9-7
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,18 @@ module github.com/YaleSpinup/rds-api
33
go 1.16
44

55
require (
6+
github.com/BurntSushi/toml v0.4.1 // indirect
67
github.com/YaleSpinup/apierror v0.1.0
7-
github.com/aws/aws-sdk-go v1.40.8
8+
github.com/aws/aws-sdk-go v1.40.26
89
github.com/felixge/httpsnoop v1.0.2 // indirect
10+
github.com/fsnotify/fsnotify v1.5.0 // indirect
911
github.com/go-sql-driver/mysql v1.6.0 // indirect
10-
github.com/gobuffalo/buffalo v0.16.26
12+
github.com/gobuffalo/buffalo v0.17.2
1113
github.com/gobuffalo/envy v1.9.0
1214
github.com/gobuffalo/fizz v1.13.0 // indirect
1315
github.com/gobuffalo/mw-paramlogger v1.0.0
1416
github.com/gobuffalo/packr/v2 v2.8.1
15-
github.com/gobuffalo/pop/v5 v5.3.4 // indirect
17+
github.com/gobuffalo/plush/v4 v4.1.6 // indirect
1618
github.com/gobuffalo/suite/v3 v3.0.2
1719
github.com/gobuffalo/validate/v3 v3.3.0 // indirect
1820
github.com/gobuffalo/x v0.1.0
@@ -27,10 +29,10 @@ require (
2729
github.com/rs/cors v1.8.0
2830
github.com/sergi/go-diff v1.2.0 // indirect
2931
github.com/sirupsen/logrus v1.8.1
30-
github.com/spf13/cobra v1.2.1 // indirect
31-
golang.org/x/crypto v0.0.0-20210711020723-a769d52b0f97
32-
golang.org/x/net v0.0.0-20210726213435-c6fcb2dbf985 // indirect
33-
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c // indirect
32+
golang.org/x/crypto v0.0.0-20210817164053-32db794688a5
33+
golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d // indirect
34+
golang.org/x/sys v0.0.0-20210820121016-41cdb8703e55 // indirect
3435
golang.org/x/term v0.0.0-20210615171337-6886f2dfbf5b // indirect
36+
golang.org/x/text v0.3.7 // indirect
3537
gopkg.in/check.v1 v1.0.0-20200227125254-8fa46927fb4f // indirect
3638
)

0 commit comments

Comments
 (0)