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!: update import path to v11 #299

Merged
merged 1 commit into from
Apr 2, 2024
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 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

A Go package for building [V2 Open Service Broker API](https://github.com/openservicebrokerapi/servicebroker/) compliant Service Brokers.

## [Docs](https://godoc.org/github.com/pivotal-cf/brokerapi/v10)
## [Docs](https://godoc.org/github.com/pivotal-cf/brokerapi/v11)

## Dependencies

Expand All @@ -18,15 +18,15 @@ We appreciate and welcome open source contribution. We will try to review the ch
## Usage

`brokerapi` defines a
[`ServiceBroker`](https://godoc.org/github.com/pivotal-cf/brokerapi/v10#ServiceBroker)
[`ServiceBroker`](https://godoc.org/github.com/pivotal-cf/brokerapi/v11#ServiceBroker)
interface. Pass an implementation of this to
[`brokerapi.New`](https://godoc.org/github.com/pivotal-cf/brokerapi/v10#New)
or [`brokerapi.NewWithOptions`](https://pkg.go.dev/github.com/pivotal-cf/brokerapi/v10#NewWithOptions),
[`brokerapi.New`](https://godoc.org/github.com/pivotal-cf/brokerapi/v11#New)
or [`brokerapi.NewWithOptions`](https://pkg.go.dev/github.com/pivotal-cf/brokerapi/v11#NewWithOptions),
which returns an `http.Handler` that you can use to serve handle HTTP requests.

Alternatively, if you already have a `*chi.Mux` that you want to attach
service broker routes to, you can use
[`brokerapi.AttachRoutes`](https://godoc.org/github.com/pivotal-cf/brokerapi/v10#AttachRoutes).
[`brokerapi.AttachRoutes`](https://godoc.org/github.com/pivotal-cf/brokerapi/v11#AttachRoutes).
Note in this case, the Basic Authentication and Originating Identity middleware
will not be set up, so you will have to attach them manually if required.

Expand Down
2 changes: 1 addition & 1 deletion api.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"net/http"

"github.com/go-chi/chi/v5"
"github.com/pivotal-cf/brokerapi/v10/handlers"
"github.com/pivotal-cf/brokerapi/v11/handlers"
)

type BrokerCredentials struct {
Expand Down
6 changes: 3 additions & 3 deletions api_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import (
"net/http"

"github.com/go-chi/chi/v5"
"github.com/pivotal-cf/brokerapi/v10/auth"
"github.com/pivotal-cf/brokerapi/v10/domain"
"github.com/pivotal-cf/brokerapi/v10/middlewares"
"github.com/pivotal-cf/brokerapi/v11/auth"
"github.com/pivotal-cf/brokerapi/v11/domain"
"github.com/pivotal-cf/brokerapi/v11/middlewares"
)

type middlewareFunc func(http.Handler) http.Handler
Expand Down
6 changes: 3 additions & 3 deletions api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ import (
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gbytes"
"github.com/pivotal-cf/brokerapi/v10"
"github.com/pivotal-cf/brokerapi/v10/fakes"
"github.com/pivotal-cf/brokerapi/v10/middlewares"
"github.com/pivotal-cf/brokerapi/v11"
"github.com/pivotal-cf/brokerapi/v11/fakes"
"github.com/pivotal-cf/brokerapi/v11/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/v10/auth"
"github.com/pivotal-cf/brokerapi/v11/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/v10/domain"
"github.com/pivotal-cf/brokerapi/v11/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/v10"
"github.com/pivotal-cf/brokerapi/v11"
)

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/v10/utils"
"github.com/pivotal-cf/brokerapi/v11/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/v10"
"github.com/pivotal-cf/brokerapi/v11"
)

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/v10/domain/apiresponses"
"github.com/pivotal-cf/brokerapi/v11/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/v10/domain"
import "github.com/pivotal-cf/brokerapi/v11/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/v10/domain"
"github.com/pivotal-cf/brokerapi/v10/domain/apiresponses"
"github.com/pivotal-cf/brokerapi/v11/domain"
"github.com/pivotal-cf/brokerapi/v11/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/v10/domain"
"github.com/pivotal-cf/brokerapi/v11/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/v10/domain"
"github.com/pivotal-cf/brokerapi/v11/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/v10/domain"
"github.com/pivotal-cf/brokerapi/v11/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/v10"
"github.com/pivotal-cf/brokerapi/v10/domain"
"github.com/pivotal-cf/brokerapi/v11"
"github.com/pivotal-cf/brokerapi/v11/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/v10/domain/apiresponses"
"github.com/pivotal-cf/brokerapi/v11/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/v10"
"github.com/pivotal-cf/brokerapi/v10/domain/apiresponses"
"github.com/pivotal-cf/brokerapi/v11"
"github.com/pivotal-cf/brokerapi/v11/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/v10"
"github.com/pivotal-cf/brokerapi/v10/domain"
"github.com/pivotal-cf/brokerapi/v10/domain/apiresponses"
"github.com/pivotal-cf/brokerapi/v11"
"github.com/pivotal-cf/brokerapi/v11/domain"
"github.com/pivotal-cf/brokerapi/v11/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/v10
module github.com/pivotal-cf/brokerapi/v11

go 1.21

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/v10/domain"
"github.com/pivotal-cf/brokerapi/v10/internal/blog"
"github.com/pivotal-cf/brokerapi/v11/domain"
"github.com/pivotal-cf/brokerapi/v11/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 @@ -7,10 +7,10 @@ import (
"net/http"

"github.com/go-chi/chi/v5"
"github.com/pivotal-cf/brokerapi/v10/domain"
"github.com/pivotal-cf/brokerapi/v10/domain/apiresponses"
"github.com/pivotal-cf/brokerapi/v10/internal/blog"
"github.com/pivotal-cf/brokerapi/v10/middlewares"
"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"
)

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/v10/domain/apiresponses"
"github.com/pivotal-cf/brokerapi/v10/middlewares"
"github.com/pivotal-cf/brokerapi/v11/domain/apiresponses"
"github.com/pivotal-cf/brokerapi/v11/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 @@ -9,12 +9,12 @@ import (
. "github.com/onsi/gomega"
"github.com/pkg/errors"

"github.com/pivotal-cf/brokerapi/v10/domain"
"github.com/pivotal-cf/brokerapi/v10/domain/apiresponses"
brokerFakes "github.com/pivotal-cf/brokerapi/v10/fakes"
"github.com/pivotal-cf/brokerapi/v10/handlers"
"github.com/pivotal-cf/brokerapi/v10/handlers/fakes"
"github.com/pivotal-cf/brokerapi/v10/middlewares"
"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"
)

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 @@ -6,10 +6,10 @@ import (
"net/http"

"github.com/go-chi/chi/v5"
"github.com/pivotal-cf/brokerapi/v10/domain"
"github.com/pivotal-cf/brokerapi/v10/domain/apiresponses"
"github.com/pivotal-cf/brokerapi/v10/internal/blog"
"github.com/pivotal-cf/brokerapi/v10/middlewares"
"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"
)

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 @@ -7,10 +7,10 @@ import (
"net/http"

"github.com/go-chi/chi/v5"
"github.com/pivotal-cf/brokerapi/v10/domain"
"github.com/pivotal-cf/brokerapi/v10/domain/apiresponses"
"github.com/pivotal-cf/brokerapi/v10/internal/blog"
"github.com/pivotal-cf/brokerapi/v10/middlewares"
"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"
)

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,12 +6,12 @@ import (
"log/slog"
"net/http"

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

"github.com/go-chi/chi/v5"
"github.com/pivotal-cf/brokerapi/v10/domain"
"github.com/pivotal-cf/brokerapi/v10/domain/apiresponses"
"github.com/pivotal-cf/brokerapi/v10/middlewares"
"github.com/pivotal-cf/brokerapi/v11/domain"
"github.com/pivotal-cf/brokerapi/v11/domain/apiresponses"
"github.com/pivotal-cf/brokerapi/v11/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 @@ -7,10 +7,10 @@ import (
"net/http"

"github.com/go-chi/chi/v5"
"github.com/pivotal-cf/brokerapi/v10/domain"
"github.com/pivotal-cf/brokerapi/v10/domain/apiresponses"
"github.com/pivotal-cf/brokerapi/v10/internal/blog"
"github.com/pivotal-cf/brokerapi/v10/middlewares"
"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"
)

const lastBindingOperationLogKey = "lastBindingOperation"
Expand Down
12 changes: 6 additions & 6 deletions handlers/last_binding_operation_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ import (
"github.com/go-chi/chi/v5"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
"github.com/pivotal-cf/brokerapi/v10/domain"
"github.com/pivotal-cf/brokerapi/v10/domain/apiresponses"
brokerFakes "github.com/pivotal-cf/brokerapi/v10/fakes"
"github.com/pivotal-cf/brokerapi/v10/handlers"
"github.com/pivotal-cf/brokerapi/v10/handlers/fakes"
"github.com/pivotal-cf/brokerapi/v10/middlewares"
"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/pkg/errors"
)

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

"github.com/go-chi/chi/v5"
"github.com/pivotal-cf/brokerapi/v10/domain"
"github.com/pivotal-cf/brokerapi/v10/domain/apiresponses"
"github.com/pivotal-cf/brokerapi/v10/internal/blog"
"github.com/pivotal-cf/brokerapi/v10/middlewares"
"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"
)

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 @@ -7,11 +7,11 @@ import (
"net/http"

"github.com/go-chi/chi/v5"
"github.com/pivotal-cf/brokerapi/v10/domain"
"github.com/pivotal-cf/brokerapi/v10/domain/apiresponses"
"github.com/pivotal-cf/brokerapi/v10/internal/blog"
"github.com/pivotal-cf/brokerapi/v10/middlewares"
"github.com/pivotal-cf/brokerapi/v10/utils"
"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"
)

const (
Expand Down
Loading
Loading