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

feat!: import path changes for v12 #350

Merged
merged 1 commit into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
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
10 changes: 5 additions & 5 deletions api.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ import (
"log/slog"
"net/http"

"github.com/pivotal-cf/brokerapi/v11/internal/middleware"
"github.com/pivotal-cf/brokerapi/v12/internal/middleware"

"github.com/pivotal-cf/brokerapi/v11/auth"
"github.com/pivotal-cf/brokerapi/v11/domain"
"github.com/pivotal-cf/brokerapi/v11/handlers"
"github.com/pivotal-cf/brokerapi/v11/middlewares"
"github.com/pivotal-cf/brokerapi/v12/auth"
"github.com/pivotal-cf/brokerapi/v12/domain"
"github.com/pivotal-cf/brokerapi/v12/handlers"
"github.com/pivotal-cf/brokerapi/v12/middlewares"
)

type BrokerCredentials struct {
Expand Down
6 changes: 3 additions & 3 deletions api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ import (
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gbytes"
"github.com/pivotal-cf/brokerapi/v11"
"github.com/pivotal-cf/brokerapi/v11/fakes"
"github.com/pivotal-cf/brokerapi/v11/middlewares"
"github.com/pivotal-cf/brokerapi/v12"
"github.com/pivotal-cf/brokerapi/v12/fakes"
"github.com/pivotal-cf/brokerapi/v12/middlewares"
)

var _ = Describe("Service Broker API", func() {
Expand Down
2 changes: 1 addition & 1 deletion auth/auth_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"

"github.com/pivotal-cf/brokerapi/v11/auth"
"github.com/pivotal-cf/brokerapi/v12/auth"
)

var _ = Describe("Auth Wrapper", func() {
Expand Down
2 changes: 1 addition & 1 deletion catalog.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package brokerapi
import (
"reflect"

"github.com/pivotal-cf/brokerapi/v11/domain"
"github.com/pivotal-cf/brokerapi/v12/domain"
)

// Deprecated: Use github.com/pivotal-cf/brokerapi/domain
Expand Down
2 changes: 1 addition & 1 deletion catalog_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/pivotal-cf/brokerapi/v11"
"github.com/pivotal-cf/brokerapi/v12"
)

var _ = Describe("Catalog", func() {
Expand Down
2 changes: 1 addition & 1 deletion context_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package brokerapi
import (
"context"

"github.com/pivotal-cf/brokerapi/v11/utils"
"github.com/pivotal-cf/brokerapi/v12/utils"
)

func AddServiceToContext(ctx context.Context, service *Service) context.Context {
Expand Down
2 changes: 1 addition & 1 deletion context_utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"

"github.com/pivotal-cf/brokerapi/v11"
"github.com/pivotal-cf/brokerapi/v12"
)

var _ = Describe("Context Utilities", func() {
Expand Down
2 changes: 1 addition & 1 deletion domain/apiresponses/failure_responses_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gbytes"
"github.com/pivotal-cf/brokerapi/v11/domain/apiresponses"
"github.com/pivotal-cf/brokerapi/v12/domain/apiresponses"
)

var _ = Describe("FailureResponse", func() {
Expand Down
2 changes: 1 addition & 1 deletion domain/apiresponses/responses.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

package apiresponses

import "github.com/pivotal-cf/brokerapi/v11/domain"
import "github.com/pivotal-cf/brokerapi/v12/domain"

type EmptyResponse struct{}

Expand Down
4 changes: 2 additions & 2 deletions domain/apiresponses/responses_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/pivotal-cf/brokerapi/v11/domain"
"github.com/pivotal-cf/brokerapi/v11/domain/apiresponses"
"github.com/pivotal-cf/brokerapi/v12/domain"
"github.com/pivotal-cf/brokerapi/v12/domain/apiresponses"
)

var _ = Describe("Catalog Response", func() {
Expand Down
2 changes: 1 addition & 1 deletion domain/maintenance_info_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package domain_test
import (
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/pivotal-cf/brokerapi/v11/domain"
"github.com/pivotal-cf/brokerapi/v12/domain"
)

var _ = Describe("MaintenanceInfo", func() {
Expand Down
2 changes: 1 addition & 1 deletion domain/service_catalog_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/pivotal-cf/brokerapi/v11/domain"
"github.com/pivotal-cf/brokerapi/v12/domain"
)

var maximumPollingDuration = 3600
Expand Down
2 changes: 1 addition & 1 deletion domain/service_metadata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/pivotal-cf/brokerapi/v11/domain"
"github.com/pivotal-cf/brokerapi/v12/domain"
)

var _ = Describe("ServiceMetadata", func() {
Expand Down
4 changes: 2 additions & 2 deletions domain/service_plan_metadata_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/pivotal-cf/brokerapi/v11"
"github.com/pivotal-cf/brokerapi/v11/domain"
"github.com/pivotal-cf/brokerapi/v12"
"github.com/pivotal-cf/brokerapi/v12/domain"
)

var _ = Describe("ServicePlanMetadata", func() {
Expand Down
2 changes: 1 addition & 1 deletion failure_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
package brokerapi

import (
"github.com/pivotal-cf/brokerapi/v11/domain/apiresponses"
"github.com/pivotal-cf/brokerapi/v12/domain/apiresponses"
)

// Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses
Expand Down
4 changes: 2 additions & 2 deletions failure_response_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import (
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gbytes"
"github.com/pivotal-cf/brokerapi/v11"
"github.com/pivotal-cf/brokerapi/v11/domain/apiresponses"
"github.com/pivotal-cf/brokerapi/v12"
"github.com/pivotal-cf/brokerapi/v12/domain/apiresponses"
)

var _ = Describe("FailureResponse", func() {
Expand Down
2 changes: 1 addition & 1 deletion fakes/auto_fake_service_broker.go

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

6 changes: 3 additions & 3 deletions fakes/fake_service_broker.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"errors"
"reflect"

"github.com/pivotal-cf/brokerapi/v11"
"github.com/pivotal-cf/brokerapi/v11/domain"
"github.com/pivotal-cf/brokerapi/v11/domain/apiresponses"
"github.com/pivotal-cf/brokerapi/v12"
"github.com/pivotal-cf/brokerapi/v12/domain"
"github.com/pivotal-cf/brokerapi/v12/domain/apiresponses"
)

type FakeServiceBroker struct {
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/pivotal-cf/brokerapi/v11
module github.com/pivotal-cf/brokerapi/v12

go 1.22.1

Expand Down
4 changes: 2 additions & 2 deletions handlers/api_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"log/slog"
"net/http"

"github.com/pivotal-cf/brokerapi/v11/domain"
"github.com/pivotal-cf/brokerapi/v11/internal/blog"
"github.com/pivotal-cf/brokerapi/v12/domain"
"github.com/pivotal-cf/brokerapi/v12/internal/blog"
)

const (
Expand Down
8 changes: 4 additions & 4 deletions handlers/bind.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"log/slog"
"net/http"

"github.com/pivotal-cf/brokerapi/v11/domain"
"github.com/pivotal-cf/brokerapi/v11/domain/apiresponses"
"github.com/pivotal-cf/brokerapi/v11/internal/blog"
"github.com/pivotal-cf/brokerapi/v11/middlewares"
"github.com/pivotal-cf/brokerapi/v12/domain"
"github.com/pivotal-cf/brokerapi/v12/domain/apiresponses"
"github.com/pivotal-cf/brokerapi/v12/internal/blog"
"github.com/pivotal-cf/brokerapi/v12/middlewares"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions handlers/catalog.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"log/slog"
"net/http"

"github.com/pivotal-cf/brokerapi/v11/domain/apiresponses"
"github.com/pivotal-cf/brokerapi/v11/middlewares"
"github.com/pivotal-cf/brokerapi/v12/domain/apiresponses"
"github.com/pivotal-cf/brokerapi/v12/middlewares"
)

const getCatalogLogKey = "getCatalog"
Expand Down
12 changes: 6 additions & 6 deletions handlers/catalog_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import (

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/pivotal-cf/brokerapi/v11/domain"
"github.com/pivotal-cf/brokerapi/v11/domain/apiresponses"
brokerFakes "github.com/pivotal-cf/brokerapi/v11/fakes"
"github.com/pivotal-cf/brokerapi/v11/handlers"
"github.com/pivotal-cf/brokerapi/v11/handlers/fakes"
"github.com/pivotal-cf/brokerapi/v11/middlewares"
"github.com/pivotal-cf/brokerapi/v12/domain"
"github.com/pivotal-cf/brokerapi/v12/domain/apiresponses"
brokerFakes "github.com/pivotal-cf/brokerapi/v12/fakes"
"github.com/pivotal-cf/brokerapi/v12/handlers"
"github.com/pivotal-cf/brokerapi/v12/handlers/fakes"
"github.com/pivotal-cf/brokerapi/v12/middlewares"
)

var _ = Describe("Services", func() {
Expand Down
8 changes: 4 additions & 4 deletions handlers/deprovision.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"log/slog"
"net/http"

"github.com/pivotal-cf/brokerapi/v11/domain"
"github.com/pivotal-cf/brokerapi/v11/domain/apiresponses"
"github.com/pivotal-cf/brokerapi/v11/internal/blog"
"github.com/pivotal-cf/brokerapi/v11/middlewares"
"github.com/pivotal-cf/brokerapi/v12/domain"
"github.com/pivotal-cf/brokerapi/v12/domain/apiresponses"
"github.com/pivotal-cf/brokerapi/v12/internal/blog"
"github.com/pivotal-cf/brokerapi/v12/middlewares"
)

const deprovisionLogKey = "deprovision"
Expand Down
8 changes: 4 additions & 4 deletions handlers/get_binding.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"log/slog"
"net/http"

"github.com/pivotal-cf/brokerapi/v11/domain"
"github.com/pivotal-cf/brokerapi/v11/domain/apiresponses"
"github.com/pivotal-cf/brokerapi/v11/internal/blog"
"github.com/pivotal-cf/brokerapi/v11/middlewares"
"github.com/pivotal-cf/brokerapi/v12/domain"
"github.com/pivotal-cf/brokerapi/v12/domain/apiresponses"
"github.com/pivotal-cf/brokerapi/v12/internal/blog"
"github.com/pivotal-cf/brokerapi/v12/middlewares"
)

const getBindLogKey = "getBinding"
Expand Down
8 changes: 4 additions & 4 deletions handlers/get_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import (
"log/slog"
"net/http"

"github.com/pivotal-cf/brokerapi/v11/internal/blog"
"github.com/pivotal-cf/brokerapi/v12/internal/blog"

"github.com/pivotal-cf/brokerapi/v11/domain"
"github.com/pivotal-cf/brokerapi/v11/domain/apiresponses"
"github.com/pivotal-cf/brokerapi/v11/middlewares"
"github.com/pivotal-cf/brokerapi/v12/domain"
"github.com/pivotal-cf/brokerapi/v12/domain/apiresponses"
"github.com/pivotal-cf/brokerapi/v12/middlewares"
)

const getInstanceLogKey = "getInstance"
Expand Down
8 changes: 4 additions & 4 deletions handlers/last_binding_operation.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"log/slog"
"net/http"

"github.com/pivotal-cf/brokerapi/v11/domain"
"github.com/pivotal-cf/brokerapi/v11/domain/apiresponses"
"github.com/pivotal-cf/brokerapi/v11/internal/blog"
"github.com/pivotal-cf/brokerapi/v11/middlewares"
"github.com/pivotal-cf/brokerapi/v12/domain"
"github.com/pivotal-cf/brokerapi/v12/domain/apiresponses"
"github.com/pivotal-cf/brokerapi/v12/internal/blog"
"github.com/pivotal-cf/brokerapi/v12/middlewares"
)

const lastBindingOperationLogKey = "lastBindingOperation"
Expand Down
10 changes: 5 additions & 5 deletions handlers/last_binding_operation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ import (

. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/pivotal-cf/brokerapi/v11"
"github.com/pivotal-cf/brokerapi/v11/domain"
"github.com/pivotal-cf/brokerapi/v11/domain/apiresponses"
brokerFakes "github.com/pivotal-cf/brokerapi/v11/fakes"
"github.com/pivotal-cf/brokerapi/v11/middlewares"
"github.com/pivotal-cf/brokerapi/v12"
"github.com/pivotal-cf/brokerapi/v12/domain"
"github.com/pivotal-cf/brokerapi/v12/domain/apiresponses"
brokerFakes "github.com/pivotal-cf/brokerapi/v12/fakes"
"github.com/pivotal-cf/brokerapi/v12/middlewares"
)

var _ = Describe("LastBindingOperation", func() {
Expand Down
8 changes: 4 additions & 4 deletions handlers/last_operation.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"log/slog"
"net/http"

"github.com/pivotal-cf/brokerapi/v11/domain"
"github.com/pivotal-cf/brokerapi/v11/domain/apiresponses"
"github.com/pivotal-cf/brokerapi/v11/internal/blog"
"github.com/pivotal-cf/brokerapi/v11/middlewares"
"github.com/pivotal-cf/brokerapi/v12/domain"
"github.com/pivotal-cf/brokerapi/v12/domain/apiresponses"
"github.com/pivotal-cf/brokerapi/v12/internal/blog"
"github.com/pivotal-cf/brokerapi/v12/middlewares"
)

const lastOperationLogKey = "lastOperation"
Expand Down
10 changes: 5 additions & 5 deletions handlers/provision.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ import (
"log/slog"
"net/http"

"github.com/pivotal-cf/brokerapi/v11/domain"
"github.com/pivotal-cf/brokerapi/v11/domain/apiresponses"
"github.com/pivotal-cf/brokerapi/v11/internal/blog"
"github.com/pivotal-cf/brokerapi/v11/middlewares"
"github.com/pivotal-cf/brokerapi/v11/utils"
"github.com/pivotal-cf/brokerapi/v12/domain"
"github.com/pivotal-cf/brokerapi/v12/domain/apiresponses"
"github.com/pivotal-cf/brokerapi/v12/internal/blog"
"github.com/pivotal-cf/brokerapi/v12/middlewares"
"github.com/pivotal-cf/brokerapi/v12/utils"
)

const (
Expand Down
8 changes: 4 additions & 4 deletions handlers/unbind.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"log/slog"
"net/http"

"github.com/pivotal-cf/brokerapi/v11/domain"
"github.com/pivotal-cf/brokerapi/v11/domain/apiresponses"
"github.com/pivotal-cf/brokerapi/v11/internal/blog"
"github.com/pivotal-cf/brokerapi/v11/middlewares"
"github.com/pivotal-cf/brokerapi/v12/domain"
"github.com/pivotal-cf/brokerapi/v12/domain/apiresponses"
"github.com/pivotal-cf/brokerapi/v12/internal/blog"
"github.com/pivotal-cf/brokerapi/v12/middlewares"
)

const unbindLogKey = "unbind"
Expand Down
8 changes: 4 additions & 4 deletions handlers/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"net/http"
"strconv"

"github.com/pivotal-cf/brokerapi/v11/domain"
"github.com/pivotal-cf/brokerapi/v11/domain/apiresponses"
"github.com/pivotal-cf/brokerapi/v11/internal/blog"
"github.com/pivotal-cf/brokerapi/v11/middlewares"
"github.com/pivotal-cf/brokerapi/v12/domain"
"github.com/pivotal-cf/brokerapi/v12/domain/apiresponses"
"github.com/pivotal-cf/brokerapi/v12/internal/blog"
"github.com/pivotal-cf/brokerapi/v12/middlewares"
)

const updateLogKey = "update"
Expand Down
2 changes: 1 addition & 1 deletion internal/blog/blog.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"log/slog"
"strings"

"github.com/pivotal-cf/brokerapi/v11/middlewares"
"github.com/pivotal-cf/brokerapi/v12/middlewares"
)

const (
Expand Down
Loading
Loading