Skip to content

Commit

Permalink
Merge pull request #986 from Scalingo/deps/go-scalingo-6.7.2
Browse files Browse the repository at this point in the history
Bump go scalingo to 6.7.2
  • Loading branch information
SCedricThomas authored Jul 18, 2023
2 parents 4e89643 + a1d89b5 commit c831feb
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 17 deletions.
6 changes: 3 additions & 3 deletions db/maintenance/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ func List(ctx context.Context, app string, addonName string, paginationOpts scal
return errors.Notef(ctx, err, "get Scalingo client")
}

response, err := c.DatabaseListMaintenance(ctx, app, addonName, paginationOpts)
maintenances, pagination, err := c.DatabaseListMaintenance(ctx, app, addonName, paginationOpts)
if err != nil {
return errors.Notef(ctx, err, "list the database maintenance")
}

t := tablewriter.NewWriter(os.Stdout)
t.SetHeader([]string{"ID", "Type", "Started At", "Ended At", "Status"})

for _, maintenance := range response.Maintenance {
for _, maintenance := range maintenances {
startedAt := "Not started"
if maintenance.StartedAt != nil {
startedAt = maintenance.StartedAt.Local().Format(utils.TimeFormat)
Expand All @@ -48,6 +48,6 @@ func List(ctx context.Context, app string, addonName string, paginationOpts scal
})
}
t.Render()
fmt.Fprintln(os.Stderr, io.Gray(fmt.Sprintf("Page: %d, Last Page: %d", response.Meta.CurrentPage, response.Meta.TotalPages)))
fmt.Fprintln(os.Stderr, io.Gray(fmt.Sprintf("Page: %d, Last Page: %d", pagination.CurrentPage, pagination.TotalPages)))
return nil
}
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.20

require (
github.com/AlecAivazis/survey/v2 v2.3.6
github.com/Scalingo/go-scalingo/v6 v6.7.1
github.com/Scalingo/go-scalingo/v6 v6.7.2
github.com/Scalingo/go-utils/errors/v2 v2.3.0
github.com/Scalingo/go-utils/logger v1.2.0
github.com/Scalingo/go-utils/retry v1.1.1
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2 h1:+vx7roKuyA63n
github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2/go.mod h1:HBCaDeC1lPdgDeDbhX8XFpy1jqjK0IBG8W5K+xYqA0w=
github.com/ProtonMail/go-crypto v0.0.0-20230518184743-7afd39499903 h1:ZK3C5DtzV2nVAQTx5S5jQvMeDqWtD1By5mOoyY/xJek=
github.com/ProtonMail/go-crypto v0.0.0-20230518184743-7afd39499903/go.mod h1:8TI4H3IbrackdNgv+92dI+rhpCaLqM0IfpgCgenFvRE=
github.com/Scalingo/go-scalingo/v6 v6.7.1 h1:Jn5uQVXrrig+tDCfCX3BhcA+zjqHjFvHgprQdo3aeBQ=
github.com/Scalingo/go-scalingo/v6 v6.7.1/go.mod h1:h58MZqmLQauBsyFWL8UkQAOdmX4jRTz4jc9vsDr8bTA=
github.com/Scalingo/go-scalingo/v6 v6.7.2 h1:CPuJNPE/TtI0AQB4RFgwS5t4ZWNGRTNwGDZQ1iznpcA=
github.com/Scalingo/go-scalingo/v6 v6.7.2/go.mod h1:h58MZqmLQauBsyFWL8UkQAOdmX4jRTz4jc9vsDr8bTA=
github.com/Scalingo/go-utils/errors/v2 v2.3.0 h1:9Ju4EmxXWoUsm0LOEWyEYUfT503l78YeQx0r6i1MdBI=
github.com/Scalingo/go-utils/errors/v2 v2.3.0/go.mod h1:ovQmOjKaifysELQaMU21SAy8nqhZQ3xW/xrj0Ed9lWo=
github.com/Scalingo/go-utils/logger v1.2.0 h1:E3jtaoRxpIsFcZu/jsvWew8ttUAwKUYQufdPqGYp7EU=
Expand Down
4 changes: 4 additions & 0 deletions vendor/github.com/Scalingo/go-scalingo/v6/CHANGELOG.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions vendor/github.com/Scalingo/go-scalingo/v6/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/Scalingo/go-scalingo/v6/databases.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 7 additions & 6 deletions vendor/github.com/Scalingo/go-scalingo/v6/maintenance.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/Scalingo/go-scalingo/v6/version.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ github.com/ProtonMail/go-crypto/openpgp/internal/ecc
github.com/ProtonMail/go-crypto/openpgp/internal/encoding
github.com/ProtonMail/go-crypto/openpgp/packet
github.com/ProtonMail/go-crypto/openpgp/s2k
# github.com/Scalingo/go-scalingo/v6 v6.7.1
# github.com/Scalingo/go-scalingo/v6 v6.7.2
## explicit; go 1.20
github.com/Scalingo/go-scalingo/v6
github.com/Scalingo/go-scalingo/v6/billing
Expand Down

0 comments on commit c831feb

Please sign in to comment.