Skip to content

Commit

Permalink
Bump v6.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
leo-scalingo committed Sep 28, 2022
1 parent 397fa37 commit 2f68fe6
Show file tree
Hide file tree
Showing 78 changed files with 131 additions and 114 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,23 @@

## To Be Released

## 6.0.0

BREAKING CHANGES:

Linting:
* `App.GitUrl``App.GitURL`
* `ContainerStat.CpuUsage``ContainerStat.CPUUsage`
* `LogsArchiveItem.Url``LogsArchiveItem.URL`
* `PullRequest.Url``PullRequest.URL`
* `PullRequest.HtmlUrl``PullRequest.HTMLURL`

Making things more homogeneous:
* `PeriodicBackupsConfig``DatabaseUpdatePeriodicBackupsConfig`
* `PeriodicBackupsConfigParams``DatabaseUpdatePeriodicBackupsConfigParams`

Changelog:

* feat(data_access_consent): Add DataAccessConsent field on `app` [#287](https://github.com/Scalingo/go-scalingo/pull/287)
* refactor(linting): Fix linter offense on App, ContainerStat, LogsArchiveItem and PullRequest public structs [#288](https://github.com/Scalingo/go-scalingo/pull/288)
* feat(databases): Add mock of DatabasesService, unifomize naming [#286](https://github.com/Scalingo/go-scalingo/pull/286)
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[ ![Codeship Status for Scalingo/go-scalingo](https://app.codeship.com/projects/cf518dc0-0034-0136-d6b3-5a0245e77f67/status?branch=master)](https://app.codeship.com/projects/279805)

# Go client for Scalingo API v5.2.2
# Go client for Scalingo API v6.0.0

This repository is the Go client for the [Scalingo APIs](https://developers.scalingo.com/).

Expand Down Expand Up @@ -81,10 +81,10 @@ Commit, tag and create a new release:

```sh
git add CHANGELOG.md README.md version.go
git commit -m "Bump v5.2.2"
git tag v5.2.2
git push origin master v5.2.2
gh release create v5.2.2
git commit -m "Bump v6.0.0"
git tag v6.0.0
git push origin master v6.0.0
gh release create v6.0.0
```

The title of the release should be the version number and the text of the
Expand Down
2 changes: 1 addition & 1 deletion addons.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"gopkg.in/errgo.v1"

"github.com/Scalingo/go-scalingo/v5/http"
"github.com/Scalingo/go-scalingo/v6/http"
)

type AddonsService interface {
Expand Down
2 changes: 1 addition & 1 deletion addons_providers.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"gopkg.in/errgo.v1"

"github.com/Scalingo/go-scalingo/v5/http"
"github.com/Scalingo/go-scalingo/v6/http"
)

type AddonProvidersService interface {
Expand Down
2 changes: 1 addition & 1 deletion apps.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"gopkg.in/errgo.v1"

httpclient "github.com/Scalingo/go-scalingo/v5/http"
httpclient "github.com/Scalingo/go-scalingo/v6/http"
)

type AppStatus string
Expand Down
4 changes: 2 additions & 2 deletions auth_mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"github.com/golang-jwt/jwt/v4"
"github.com/golang/mock/gomock"

httpclient "github.com/Scalingo/go-scalingo/v5/http"
"github.com/Scalingo/go-scalingo/v5/http/httpmock"
httpclient "github.com/Scalingo/go-scalingo/v6/http"
"github.com/Scalingo/go-scalingo/v6/http/httpmock"
)

func MockAuth(ctrl *gomock.Controller) *httpmock.MockClient {
Expand Down
2 changes: 1 addition & 1 deletion backups.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"gopkg.in/errgo.v1"

"github.com/Scalingo/go-scalingo/v5/http"
"github.com/Scalingo/go-scalingo/v6/http"
)

type BackupsService interface {
Expand Down
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"gopkg.in/errgo.v1"

"github.com/Scalingo/go-scalingo/v5/http"
"github.com/Scalingo/go-scalingo/v6/http"
)

type API interface {
Expand Down
2 changes: 1 addition & 1 deletion cmd/gen_events_specialize/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func genSpecialize(types []string) {
import (
"encoding/json"
"github.com/Scalingo/go-scalingo/v5/debug"
"github.com/Scalingo/go-scalingo/v6/debug"
)
func (pev *Event) Specialize() DetailedEvent {
Expand Down
2 changes: 1 addition & 1 deletion container.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"gopkg.in/errgo.v1"

httpclient "github.com/Scalingo/go-scalingo/v5/http"
httpclient "github.com/Scalingo/go-scalingo/v6/http"
)

type ContainersService interface {
Expand Down
2 changes: 1 addition & 1 deletion container_sizes.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"gopkg.in/errgo.v1"

httpclient "github.com/Scalingo/go-scalingo/v5/http"
httpclient "github.com/Scalingo/go-scalingo/v6/http"
)

type ContainerSize struct {
Expand Down
2 changes: 1 addition & 1 deletion database_type_versions.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"gopkg.in/errgo.v1"

"github.com/Scalingo/go-scalingo/v5/http"
"github.com/Scalingo/go-scalingo/v6/http"
)

type DatabaseTypeVersionPlugin struct {
Expand Down
2 changes: 1 addition & 1 deletion databases.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"gopkg.in/errgo.v1"

httpclient "github.com/Scalingo/go-scalingo/v5/http"
httpclient "github.com/Scalingo/go-scalingo/v6/http"
)

// DatabasesService is the interface gathering all the methods related to
Expand Down
2 changes: 1 addition & 1 deletion deployments.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"golang.org/x/net/websocket"
"gopkg.in/errgo.v1"

httpclient "github.com/Scalingo/go-scalingo/v5/http"
httpclient "github.com/Scalingo/go-scalingo/v6/http"
)

type DeploymentsService interface {
Expand Down
2 changes: 1 addition & 1 deletion env.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"gopkg.in/errgo.v1"

"github.com/Scalingo/go-scalingo/v5/http"
"github.com/Scalingo/go-scalingo/v6/http"
)

type VariablesService interface {
Expand Down
2 changes: 1 addition & 1 deletion events.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"gopkg.in/errgo.v1"

"github.com/Scalingo/go-scalingo/v5/http"
"github.com/Scalingo/go-scalingo/v6/http"
)

type EventsService interface {
Expand Down
2 changes: 1 addition & 1 deletion events_billing.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package scalingo
import (
"fmt"

"github.com/Scalingo/go-scalingo/v5/billing"
"github.com/Scalingo/go-scalingo/v6/billing"
)

type EventAddCreditType struct {
Expand Down
2 changes: 1 addition & 1 deletion events_specialize.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package scalingo
import (
"encoding/json"

"github.com/Scalingo/go-scalingo/v5/debug"
"github.com/Scalingo/go-scalingo/v6/debug"
)

func (pev *Event) Specialize() DetailedEvent {
Expand Down
2 changes: 1 addition & 1 deletion events_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/require"

"github.com/Scalingo/go-scalingo/v5/http/httpmock"
"github.com/Scalingo/go-scalingo/v6/http/httpmock"
)

var eventsListCases = map[string]struct {
Expand Down
2 changes: 1 addition & 1 deletion events_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"gopkg.in/errgo.v1"

"github.com/Scalingo/go-scalingo/v5/http"
"github.com/Scalingo/go-scalingo/v6/http"
)

type EventCategory struct {
Expand Down
2 changes: 1 addition & 1 deletion examples/app_show/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"os"

"github.com/Scalingo/go-scalingo/v5"
"github.com/Scalingo/go-scalingo/v6"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/backup_download/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"net/http"
"os"

"github.com/Scalingo/go-scalingo/v5"
"github.com/Scalingo/go-scalingo/v6"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion github_link.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"errors"
"time"

"github.com/Scalingo/go-scalingo/v5/http"
"github.com/Scalingo/go-scalingo/v6/http"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/Scalingo/go-scalingo/v5
module github.com/Scalingo/go-scalingo/v6

go 1.17

Expand Down
4 changes: 2 additions & 2 deletions http/api_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import (

"gopkg.in/errgo.v1"

"github.com/Scalingo/go-scalingo/v5/debug"
pkgio "github.com/Scalingo/go-scalingo/v5/io"
"github.com/Scalingo/go-scalingo/v6/debug"
pkgio "github.com/Scalingo/go-scalingo/v6/io"
)

type APIRequest struct {
Expand Down
2 changes: 1 addition & 1 deletion http/api_token_generator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/golang/mock/gomock"
"github.com/stretchr/testify/require"

"github.com/Scalingo/go-scalingo/v5/http/tokensservicemock"
"github.com/Scalingo/go-scalingo/v6/http/tokensservicemock"
)

func TestAPITokenGenerator_GetAccessToken(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion http/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"gopkg.in/errgo.v1"

"github.com/Scalingo/go-scalingo/v5/debug"
"github.com/Scalingo/go-scalingo/v6/debug"
)

type (
Expand Down
4 changes: 2 additions & 2 deletions http/httpmock/client_mock.go

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

2 changes: 1 addition & 1 deletion http/tokensservicemock/tokensservice_mock.go

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

2 changes: 1 addition & 1 deletion log_drains.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"gopkg.in/errgo.v1"

httpclient "github.com/Scalingo/go-scalingo/v5/http"
httpclient "github.com/Scalingo/go-scalingo/v6/http"
)

type LogDrainsService interface {
Expand Down
2 changes: 1 addition & 1 deletion logs-archives.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

"gopkg.in/errgo.v1"

"github.com/Scalingo/go-scalingo/v5/http"
"github.com/Scalingo/go-scalingo/v6/http"
)

type LogsArchivesService interface {
Expand Down
2 changes: 1 addition & 1 deletion logs.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"gopkg.in/errgo.v1"

httpclient "github.com/Scalingo/go-scalingo/v5/http"
httpclient "github.com/Scalingo/go-scalingo/v6/http"
)

type LogsService interface {
Expand Down
4 changes: 2 additions & 2 deletions notification_platforms.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (

"gopkg.in/errgo.v1"

"github.com/Scalingo/go-scalingo/v5/debug"
"github.com/Scalingo/go-scalingo/v5/http"
"github.com/Scalingo/go-scalingo/v6/debug"
"github.com/Scalingo/go-scalingo/v6/http"
)

type NotificationPlatformsService interface {
Expand Down
2 changes: 1 addition & 1 deletion notifier_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package scalingo
import (
"encoding/json"

"github.com/Scalingo/go-scalingo/v5/debug"
"github.com/Scalingo/go-scalingo/v6/debug"
)

// Used to omit attributes
Expand Down
2 changes: 1 addition & 1 deletion notifiers.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"gopkg.in/errgo.v1"

"github.com/Scalingo/go-scalingo/v5/debug"
"github.com/Scalingo/go-scalingo/v6/debug"
)

type NotifiersService interface {
Expand Down
2 changes: 1 addition & 1 deletion operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"gopkg.in/errgo.v1"

httpclient "github.com/Scalingo/go-scalingo/v5/http"
httpclient "github.com/Scalingo/go-scalingo/v6/http"
)

type OperationsService interface {
Expand Down
2 changes: 1 addition & 1 deletion region_migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"gopkg.in/errgo.v1"

"github.com/Scalingo/go-scalingo/v5/http"
"github.com/Scalingo/go-scalingo/v6/http"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion regions.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

"gopkg.in/errgo.v1"

"github.com/Scalingo/go-scalingo/v5/http"
"github.com/Scalingo/go-scalingo/v6/http"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion run.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"gopkg.in/errgo.v1"

"github.com/Scalingo/go-scalingo/v5/http"
"github.com/Scalingo/go-scalingo/v6/http"
)

type RunsService interface {
Expand Down
Loading

0 comments on commit 2f68fe6

Please sign in to comment.