Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump v7.0.0 #380

Merged
merged 3 commits into from
Apr 19, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## To Be Released

## 7.0.0

* feat(domains): Add `letsencrypt_enabled` parameter
* BREAKING: api(domains): Change signature of `DomainsAdd`, add method `DomainsUpdate`

## 6.7.7

* feat(databases): add databases user update
Expand Down
4 changes: 2 additions & 2 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 v6.7.7
# Go client for Scalingo API v7.0.0

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

Expand All @@ -10,7 +10,7 @@ This repository is the Go client for the [Scalingo APIs](https://developers.scal
package main

import (
"github.com/Scalingo/go-scalingo/v6"
"github.com/Scalingo/go-scalingo/v7"
)

func getClient() (*scalingo.Client, error) {
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/v6/http"
"github.com/Scalingo/go-scalingo/v7/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/v6/http"
"github.com/Scalingo/go-scalingo/v7/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/v6/http"
httpclient "github.com/Scalingo/go-scalingo/v7/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/v6/http"
"github.com/Scalingo/go-scalingo/v6/http/httpmock"
httpclient "github.com/Scalingo/go-scalingo/v7/http"
"github.com/Scalingo/go-scalingo/v7/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/v6/http"
"github.com/Scalingo/go-scalingo/v7/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/v6/http"
"github.com/Scalingo/go-scalingo/v7/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/v6/debug"
"github.com/Scalingo/go-scalingo/v7/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/v6/http"
httpclient "github.com/Scalingo/go-scalingo/v7/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/v6/http"
httpclient "github.com/Scalingo/go-scalingo/v7/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/v6/http"
"github.com/Scalingo/go-scalingo/v7/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/v6/http"
httpclient "github.com/Scalingo/go-scalingo/v7/http"
"github.com/Scalingo/go-utils/errors/v2"
)

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 (
"github.com/gorilla/websocket"
"gopkg.in/errgo.v1"

httpclient "github.com/Scalingo/go-scalingo/v6/http"
httpclient "github.com/Scalingo/go-scalingo/v7/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/v6/http"
"github.com/Scalingo/go-scalingo/v7/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/v6/http"
"github.com/Scalingo/go-scalingo/v7/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/v6/billing"
"github.com/Scalingo/go-scalingo/v7/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/v6/debug"
"github.com/Scalingo/go-scalingo/v7/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/v6/http/httpmock"
"github.com/Scalingo/go-scalingo/v7/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/v6/http"
"github.com/Scalingo/go-scalingo/v7/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/v6"
"github.com/Scalingo/go-scalingo/v7"
)

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/v6"
"github.com/Scalingo/go-scalingo/v7"
)

func main() {
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/v6
module github.com/Scalingo/go-scalingo/v7

go 1.20

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/v6/debug"
pkgio "github.com/Scalingo/go-scalingo/v6/io"
"github.com/Scalingo/go-scalingo/v7/debug"
pkgio "github.com/Scalingo/go-scalingo/v7/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/v6/http/tokensservicemock"
"github.com/Scalingo/go-scalingo/v7/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/v6/debug"
"github.com/Scalingo/go-scalingo/v7/debug"
errorspkg "github.com/Scalingo/go-utils/errors/v2"
)

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/v6/http"
httpclient "github.com/Scalingo/go-scalingo/v7/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/v6/http"
"github.com/Scalingo/go-scalingo/v7/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/v6/http"
httpclient "github.com/Scalingo/go-scalingo/v7/http"
)

type LogsService interface {
Expand Down
2 changes: 1 addition & 1 deletion mocks.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"base_directory": "github.com/Scalingo/go-scalingo",
"base_package": "github.com/Scalingo/go-scalingo/v6",
"base_package": "github.com/Scalingo/go-scalingo/v7",
"mocks": [
{
"interface": "Client",
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/v6/debug"
"github.com/Scalingo/go-scalingo/v6/http"
"github.com/Scalingo/go-scalingo/v7/debug"
"github.com/Scalingo/go-scalingo/v7/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/v6/debug"
"github.com/Scalingo/go-scalingo/v7/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/v6/debug"
"github.com/Scalingo/go-scalingo/v7/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/v6/http"
httpclient "github.com/Scalingo/go-scalingo/v7/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/v6/http"
"github.com/Scalingo/go-scalingo/v7/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/v6/http"
"github.com/Scalingo/go-scalingo/v7/http"
)

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

"github.com/Scalingo/go-scalingo/v6/http"
"github.com/Scalingo/go-scalingo/v7/http"
errors "github.com/Scalingo/go-utils/errors/v2"
)

Expand Down
4 changes: 2 additions & 2 deletions scalingomock/addonprovidersservice_mock.go

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

Loading