Skip to content

Commit 94be725

Browse files
authored
feat!: import path changes for v13 (#353)
The repo has moved, so creating a new major version to reflect import path change Technically the import path change is a new major version, but to avoid any confusion between versions, we are creating a v13 to make it clear that this is the successor to all earlier versions.
1 parent 6f7bc1b commit 94be725

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+156
-156
lines changed

.github/workflows/run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ jobs:
2828
call-dependabot-pr-workflow:
2929
needs: test
3030
if: ${{ success() && github.actor == 'dependabot[bot]' }}
31-
uses: pivotal-cf/brokerapi/.github/workflows/dependabot-test.yml@main
31+
uses: cloudfoundry/brokerapi/.github/workflows/dependabot-test.yml@main
3232
with:
3333
pr_number: ${{ github.event.number }}

api.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ import (
1919
"log/slog"
2020
"net/http"
2121

22-
"github.com/pivotal-cf/brokerapi/v12/internal/middleware"
22+
"code.cloudfoundry.org/brokerapi/v13/internal/middleware"
2323

24-
"github.com/pivotal-cf/brokerapi/v12/auth"
25-
"github.com/pivotal-cf/brokerapi/v12/domain"
26-
"github.com/pivotal-cf/brokerapi/v12/handlers"
27-
"github.com/pivotal-cf/brokerapi/v12/middlewares"
24+
"code.cloudfoundry.org/brokerapi/v13/auth"
25+
"code.cloudfoundry.org/brokerapi/v13/domain"
26+
"code.cloudfoundry.org/brokerapi/v13/handlers"
27+
"code.cloudfoundry.org/brokerapi/v13/middlewares"
2828
)
2929

3030
type BrokerCredentials struct {

api_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ import (
2828
"net/url"
2929
"strings"
3030

31+
"code.cloudfoundry.org/brokerapi/v13"
32+
"code.cloudfoundry.org/brokerapi/v13/fakes"
33+
"code.cloudfoundry.org/brokerapi/v13/middlewares"
3134
. "github.com/onsi/ginkgo/v2"
3235
. "github.com/onsi/gomega"
3336
"github.com/onsi/gomega/gbytes"
34-
"github.com/pivotal-cf/brokerapi/v12"
35-
"github.com/pivotal-cf/brokerapi/v12/fakes"
36-
"github.com/pivotal-cf/brokerapi/v12/middlewares"
3737
)
3838

3939
var _ = Describe("Service Broker API", func() {

auth/auth_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
. "github.com/onsi/ginkgo/v2"
2323
. "github.com/onsi/gomega"
2424

25-
"github.com/pivotal-cf/brokerapi/v12/auth"
25+
"code.cloudfoundry.org/brokerapi/v13/auth"
2626
)
2727

2828
var _ = Describe("Auth Wrapper", func() {

catalog.go

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,60 +18,60 @@ package brokerapi
1818
import (
1919
"reflect"
2020

21-
"github.com/pivotal-cf/brokerapi/v12/domain"
21+
"code.cloudfoundry.org/brokerapi/v13/domain"
2222
)
2323

24-
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain
24+
// Deprecated: Use code.cloudfoundry.org/brokerapi/v13/domain
2525
type Service = domain.Service
2626

27-
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain
27+
// Deprecated: Use code.cloudfoundry.org/brokerapi/v13/domain
2828
type ServiceDashboardClient = domain.ServiceDashboardClient
2929

30-
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain
30+
// Deprecated: Use code.cloudfoundry.org/brokerapi/v13/domain
3131
type ServicePlan = domain.ServicePlan
3232

33-
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain
33+
// Deprecated: Use code.cloudfoundry.org/brokerapi/v13/domain
3434
type ServiceSchemas = domain.ServiceSchemas
3535

36-
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain
36+
// Deprecated: Use code.cloudfoundry.org/brokerapi/v13/domain
3737
type ServiceInstanceSchema = domain.ServiceInstanceSchema
3838

39-
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain
39+
// Deprecated: Use code.cloudfoundry.org/brokerapi/v13/domain
4040
type ServiceBindingSchema = domain.ServiceBindingSchema
4141

42-
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain
42+
// Deprecated: Use code.cloudfoundry.org/brokerapi/v13/domain
4343
type Schema = domain.Schema
4444

45-
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain
45+
// Deprecated: Use code.cloudfoundry.org/brokerapi/v13/domain
4646
type ServicePlanMetadata = domain.ServicePlanMetadata
4747

48-
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain
48+
// Deprecated: Use code.cloudfoundry.org/brokerapi/v13/domain
4949
type ServicePlanCost = domain.ServicePlanCost
5050

51-
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain
51+
// Deprecated: Use code.cloudfoundry.org/brokerapi/v13/domain
5252
type ServiceMetadata = domain.ServiceMetadata
5353

54-
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain
54+
// Deprecated: Use code.cloudfoundry.org/brokerapi/v13/domain
5555
func FreeValue(v bool) *bool {
5656
return domain.FreeValue(v)
5757
}
5858

59-
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain
59+
// Deprecated: Use code.cloudfoundry.org/brokerapi/v13/domain
6060
func BindableValue(v bool) *bool {
6161
return domain.BindableValue(v)
6262
}
6363

64-
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain
64+
// Deprecated: Use code.cloudfoundry.org/brokerapi/v13/domain
6565
type RequiredPermission = domain.RequiredPermission
6666

67-
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain
67+
// Deprecated: Use code.cloudfoundry.org/brokerapi/v13/domain
6868
const (
6969
PermissionRouteForwarding = domain.PermissionRouteForwarding
7070
PermissionSyslogDrain = domain.PermissionSyslogDrain
7171
PermissionVolumeMount = domain.PermissionVolumeMount
7272
)
7373

74-
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain
74+
// Deprecated: Use code.cloudfoundry.org/brokerapi/v13/domain
7575
func GetJsonNames(s reflect.Value) (res []string) {
7676
return domain.GetJsonNames(s)
7777
}

catalog_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ import (
2020
"reflect"
2121
"sync"
2222

23+
"code.cloudfoundry.org/brokerapi/v13"
2324
. "github.com/onsi/ginkgo/v2"
2425
. "github.com/onsi/gomega"
25-
"github.com/pivotal-cf/brokerapi/v12"
2626
)
2727

2828
var _ = Describe("Catalog", func() {

context_utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package brokerapi
33
import (
44
"context"
55

6-
"github.com/pivotal-cf/brokerapi/v12/utils"
6+
"code.cloudfoundry.org/brokerapi/v13/utils"
77
)
88

99
func AddServiceToContext(ctx context.Context, service *Service) context.Context {

context_utils_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
. "github.com/onsi/ginkgo/v2"
77
. "github.com/onsi/gomega"
88

9-
"github.com/pivotal-cf/brokerapi/v12"
9+
"code.cloudfoundry.org/brokerapi/v13"
1010
)
1111

1212
var _ = Describe("Context Utilities", func() {

domain/apiresponses/failure_responses_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import (
55
"log/slog"
66
"net/http"
77

8+
"code.cloudfoundry.org/brokerapi/v13/domain/apiresponses"
89
. "github.com/onsi/ginkgo/v2"
910
. "github.com/onsi/gomega"
1011
"github.com/onsi/gomega/gbytes"
11-
"github.com/pivotal-cf/brokerapi/v12/domain/apiresponses"
1212
)
1313

1414
var _ = Describe("FailureResponse", func() {

domain/apiresponses/responses.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
package apiresponses
1717

18-
import "github.com/pivotal-cf/brokerapi/v12/domain"
18+
import "code.cloudfoundry.org/brokerapi/v13/domain"
1919

2020
type EmptyResponse struct{}
2121

0 commit comments

Comments
 (0)