diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index fc57814b..8cf9d4bb 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - version: [ '1.17', '1.18' ] + version: [ '1.18', '1.19' ] name: Go ${{ matrix.version }} outputs: pr_number: ${{ github.event.number }} diff --git a/catalog.go b/catalog.go index 4c6a2a26..1cb04b05 100644 --- a/catalog.go +++ b/catalog.go @@ -21,57 +21,57 @@ import ( "github.com/pivotal-cf/brokerapi/v8/domain" ) -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain type Service = domain.Service -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain type ServiceDashboardClient = domain.ServiceDashboardClient -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain type ServicePlan = domain.ServicePlan -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain type ServiceSchemas = domain.ServiceSchemas -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain type ServiceInstanceSchema = domain.ServiceInstanceSchema -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain type ServiceBindingSchema = domain.ServiceBindingSchema -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain type Schema = domain.Schema -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain type ServicePlanMetadata = domain.ServicePlanMetadata -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain type ServicePlanCost = domain.ServicePlanCost -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain type ServiceMetadata = domain.ServiceMetadata -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain func FreeValue(v bool) *bool { return domain.FreeValue(v) } -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain func BindableValue(v bool) *bool { return domain.BindableValue(v) } -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain type RequiredPermission = domain.RequiredPermission -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain const ( PermissionRouteForwarding = domain.PermissionRouteForwarding PermissionSyslogDrain = domain.PermissionSyslogDrain PermissionVolumeMount = domain.PermissionVolumeMount ) -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain func GetJsonNames(s reflect.Value) (res []string) { return domain.GetJsonNames(s) } diff --git a/domain/service_broker.go b/domain/service_broker.go index c13bfd98..3a9f3490 100644 --- a/domain/service_broker.go +++ b/domain/service_broker.go @@ -8,9 +8,9 @@ import ( //go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 -generate //counterfeiter:generate -o ../fakes/auto_fake_service_broker.go -fake-name AutoFakeServiceBroker . ServiceBroker -//Each method of the ServiceBroker interface maps to an individual endpoint of the Open Service Broker API. -//The specification is available here: https://github.com/openservicebrokerapi/servicebroker/blob/v2.14/spec.md -//The OpenAPI documentation is available here: http://petstore.swagger.io/?url=https://raw.githubusercontent.com/openservicebrokerapi/servicebroker/v2.14/openapi.yaml +// Each method of the ServiceBroker interface maps to an individual endpoint of the Open Service Broker API. +// The specification is available here: https://github.com/openservicebrokerapi/servicebroker/blob/v2.14/spec.md +// The OpenAPI documentation is available here: http://petstore.swagger.io/?url=https://raw.githubusercontent.com/openservicebrokerapi/servicebroker/v2.14/openapi.yaml type ServiceBroker interface { // Services gets the catalog of services offered by the service broker diff --git a/failure_response.go b/failure_response.go index c5aa0eac..6293c1a9 100644 --- a/failure_response.go +++ b/failure_response.go @@ -10,13 +10,13 @@ import ( "github.com/pivotal-cf/brokerapi/v8/domain/apiresponses" ) -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses // FailureResponse can be returned from any of the `ServiceBroker` interface methods // which allow an error to be returned. Doing so will provide greater control over // the HTTP response. type FailureResponse = apiresponses.FailureResponse -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses // NewFailureResponse returns a pointer to a new instance of FailureResponse. // err will by default be used as both a logging message and HTTP response description. // statusCode is the HTTP status code to be returned, must be 4xx or 5xx @@ -25,11 +25,11 @@ func NewFailureResponse(err error, statusCode int, loggerAction string) *Failure return (*FailureResponse)(apiresponses.NewFailureResponse(err, statusCode, loggerAction)) } -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses // FailureResponseBuilder provides a fluent set of methods to build a *FailureResponse. type FailureResponseBuilder = apiresponses.FailureResponseBuilder -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses // NewFailureResponseBuilder returns a pointer to a newly instantiated FailureResponseBuilder // Accepts required arguments to create a FailureResponse. func NewFailureResponseBuilder(err error, statusCode int, loggerAction string) *FailureResponseBuilder { diff --git a/go.mod b/go.mod index eac612e2..cd73e34b 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/pivotal-cf/brokerapi/v8 -go 1.18 +go 1.19 require ( code.cloudfoundry.org/lager v2.0.0+incompatible diff --git a/maintenance_info.go b/maintenance_info.go index fe37df7e..91d54d2c 100644 --- a/maintenance_info.go +++ b/maintenance_info.go @@ -4,5 +4,5 @@ import ( "github.com/pivotal-cf/brokerapi/v8/domain" ) -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain type MaintenanceInfo = domain.MaintenanceInfo diff --git a/response.go b/response.go index 2f8b3ebd..5dcd0fa3 100644 --- a/response.go +++ b/response.go @@ -20,47 +20,47 @@ import ( "github.com/pivotal-cf/brokerapi/v8/domain/apiresponses" ) -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses type EmptyResponse = apiresponses.EmptyResponse -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses type ErrorResponse = apiresponses.ErrorResponse -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses type CatalogResponse = apiresponses.CatalogResponse -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses type ProvisioningResponse = apiresponses.ProvisioningResponse -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses type GetInstanceResponse = apiresponses.GetInstanceResponse -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses type UpdateResponse = apiresponses.UpdateResponse -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses type DeprovisionResponse = apiresponses.DeprovisionResponse -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses type LastOperationResponse = apiresponses.LastOperationResponse -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses type AsyncBindResponse = apiresponses.AsyncBindResponse -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses type BindingResponse = apiresponses.BindingResponse -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses type GetBindingResponse = apiresponses.GetBindingResponse -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses type UnbindResponse = apiresponses.UnbindResponse -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses type ExperimentalVolumeMountBindingResponse = apiresponses.ExperimentalVolumeMountBindingResponse -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain type ExperimentalVolumeMount = domain.ExperimentalVolumeMount -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain type ExperimentalVolumeMountPrivate = domain.ExperimentalVolumeMountPrivate diff --git a/service_broker.go b/service_broker.go index 404ace71..bfb3ff98 100644 --- a/service_broker.go +++ b/service_broker.go @@ -23,91 +23,91 @@ import ( //go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 -generate //counterfeiter:generate -o fakes/auto_fake_service_broker.go -fake-name AutoFakeServiceBroker . ServiceBroker -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain -//Each method of the ServiceBroker interface maps to an individual endpoint of the Open Service Broker API. +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain +// Each method of the ServiceBroker interface maps to an individual endpoint of the Open Service Broker API. // -//The specification is available here: https://github.com/openservicebrokerapi/servicebroker/blob/v2.14/spec.md +// The specification is available here: https://github.com/openservicebrokerapi/servicebroker/blob/v2.14/spec.md // -//The OpenAPI documentation is available here: http://petstore.swagger.io/?url=https://raw.githubusercontent.com/openservicebrokerapi/servicebroker/v2.14/openapi.yaml +// The OpenAPI documentation is available here: http://petstore.swagger.io/?url=https://raw.githubusercontent.com/openservicebrokerapi/servicebroker/v2.14/openapi.yaml type ServiceBroker interface { domain.ServiceBroker } -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain type DetailsWithRawParameters interface { domain.DetailsWithRawParameters } -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain type DetailsWithRawContext interface { domain.DetailsWithRawContext } -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain type ProvisionDetails = domain.ProvisionDetails -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain type ProvisionedServiceSpec = domain.ProvisionedServiceSpec -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain type GetInstanceDetailsSpec = domain.GetInstanceDetailsSpec -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain type UnbindSpec = domain.UnbindSpec -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain type BindDetails = domain.BindDetails -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain type BindResource = domain.BindResource -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain type UnbindDetails = domain.UnbindDetails -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain type UpdateServiceSpec = domain.UpdateServiceSpec -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain type DeprovisionServiceSpec = domain.DeprovisionServiceSpec -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain type DeprovisionDetails = domain.DeprovisionDetails -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain type UpdateDetails = domain.UpdateDetails -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain type PreviousValues = domain.PreviousValues -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain type PollDetails = domain.PollDetails -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain type LastOperation = domain.LastOperation -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain type LastOperationState = domain.LastOperationState -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain const ( InProgress LastOperationState = "in progress" Succeeded LastOperationState = "succeeded" Failed LastOperationState = "failed" ) -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain type Binding = domain.Binding -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain type GetBindingSpec = domain.GetBindingSpec -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain type VolumeMount = domain.VolumeMount -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain type SharedDevice = domain.SharedDevice -//Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses +// Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses var ( ErrInstanceAlreadyExists = apiresponses.ErrInstanceAlreadyExists