Skip to content

Commit 5ccf339

Browse files
committed
chore: Update to go 1.19
1 parent ee5952d commit 5ccf339

8 files changed

Lines changed: 67 additions & 67 deletions

File tree

.github/workflows/run-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:
18-
version: [ '1.17', '1.18' ]
18+
version: [ '1.18', '1.19' ]
1919
name: Go ${{ matrix.version }}
2020
outputs:
2121
pr_number: ${{ github.event.number }}

catalog.go

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,57 +21,57 @@ import (
2121
"github.com/pivotal-cf/brokerapi/v8/domain"
2222
)
2323

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

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

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

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

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

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

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

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

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

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

54-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain
54+
// Deprecated: Use github.com/pivotal-cf/brokerapi/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 github.com/pivotal-cf/brokerapi/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 github.com/pivotal-cf/brokerapi/domain
6565
type RequiredPermission = domain.RequiredPermission
6666

67-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain
67+
// Deprecated: Use github.com/pivotal-cf/brokerapi/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 github.com/pivotal-cf/brokerapi/domain
7575
func GetJsonNames(s reflect.Value) (res []string) {
7676
return domain.GetJsonNames(s)
7777
}

domain/service_broker.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import (
88
//go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 -generate
99
//counterfeiter:generate -o ../fakes/auto_fake_service_broker.go -fake-name AutoFakeServiceBroker . ServiceBroker
1010

11-
//Each method of the ServiceBroker interface maps to an individual endpoint of the Open Service Broker API.
12-
//The specification is available here: https://github.com/openservicebrokerapi/servicebroker/blob/v2.14/spec.md
13-
//The OpenAPI documentation is available here: http://petstore.swagger.io/?url=https://raw.githubusercontent.com/openservicebrokerapi/servicebroker/v2.14/openapi.yaml
11+
// Each method of the ServiceBroker interface maps to an individual endpoint of the Open Service Broker API.
12+
// The specification is available here: https://github.com/openservicebrokerapi/servicebroker/blob/v2.14/spec.md
13+
// The OpenAPI documentation is available here: http://petstore.swagger.io/?url=https://raw.githubusercontent.com/openservicebrokerapi/servicebroker/v2.14/openapi.yaml
1414
type ServiceBroker interface {
1515

1616
// Services gets the catalog of services offered by the service broker

failure_response.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ import (
1010
"github.com/pivotal-cf/brokerapi/v8/domain/apiresponses"
1111
)
1212

13-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses
13+
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses
1414
// FailureResponse can be returned from any of the `ServiceBroker` interface methods
1515
// which allow an error to be returned. Doing so will provide greater control over
1616
// the HTTP response.
1717
type FailureResponse = apiresponses.FailureResponse
1818

19-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses
19+
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses
2020
// NewFailureResponse returns a pointer to a new instance of FailureResponse.
2121
// err will by default be used as both a logging message and HTTP response description.
2222
// 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
2525
return (*FailureResponse)(apiresponses.NewFailureResponse(err, statusCode, loggerAction))
2626
}
2727

28-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses
28+
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses
2929
// FailureResponseBuilder provides a fluent set of methods to build a *FailureResponse.
3030
type FailureResponseBuilder = apiresponses.FailureResponseBuilder
3131

32-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses
32+
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses
3333
// NewFailureResponseBuilder returns a pointer to a newly instantiated FailureResponseBuilder
3434
// Accepts required arguments to create a FailureResponse.
3535
func NewFailureResponseBuilder(err error, statusCode int, loggerAction string) *FailureResponseBuilder {

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/pivotal-cf/brokerapi/v8
22

3-
go 1.18
3+
go 1.19
44

55
require (
66
code.cloudfoundry.org/lager v2.0.0+incompatible

maintenance_info.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ import (
44
"github.com/pivotal-cf/brokerapi/v8/domain"
55
)
66

7-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain
7+
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain
88
type MaintenanceInfo = domain.MaintenanceInfo

response.go

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,47 +20,47 @@ import (
2020
"github.com/pivotal-cf/brokerapi/v8/domain/apiresponses"
2121
)
2222

23-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses
23+
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses
2424
type EmptyResponse = apiresponses.EmptyResponse
2525

26-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses
26+
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses
2727
type ErrorResponse = apiresponses.ErrorResponse
2828

29-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses
29+
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses
3030
type CatalogResponse = apiresponses.CatalogResponse
3131

32-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses
32+
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses
3333
type ProvisioningResponse = apiresponses.ProvisioningResponse
3434

35-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses
35+
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses
3636
type GetInstanceResponse = apiresponses.GetInstanceResponse
3737

38-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses
38+
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses
3939
type UpdateResponse = apiresponses.UpdateResponse
4040

41-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses
41+
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses
4242
type DeprovisionResponse = apiresponses.DeprovisionResponse
4343

44-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses
44+
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses
4545
type LastOperationResponse = apiresponses.LastOperationResponse
4646

47-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses
47+
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses
4848
type AsyncBindResponse = apiresponses.AsyncBindResponse
4949

50-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses
50+
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses
5151
type BindingResponse = apiresponses.BindingResponse
5252

53-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses
53+
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses
5454
type GetBindingResponse = apiresponses.GetBindingResponse
5555

56-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses
56+
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses
5757
type UnbindResponse = apiresponses.UnbindResponse
5858

59-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses
59+
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses
6060
type ExperimentalVolumeMountBindingResponse = apiresponses.ExperimentalVolumeMountBindingResponse
6161

62-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain
62+
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain
6363
type ExperimentalVolumeMount = domain.ExperimentalVolumeMount
6464

65-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain
65+
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain
6666
type ExperimentalVolumeMountPrivate = domain.ExperimentalVolumeMountPrivate

service_broker.go

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -23,91 +23,91 @@ import (
2323
//go:generate go run github.com/maxbrunsfeld/counterfeiter/v6 -generate
2424
//counterfeiter:generate -o fakes/auto_fake_service_broker.go -fake-name AutoFakeServiceBroker . ServiceBroker
2525

26-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain
27-
//Each method of the ServiceBroker interface maps to an individual endpoint of the Open Service Broker API.
26+
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain
27+
// Each method of the ServiceBroker interface maps to an individual endpoint of the Open Service Broker API.
2828
//
29-
//The specification is available here: https://github.com/openservicebrokerapi/servicebroker/blob/v2.14/spec.md
29+
// The specification is available here: https://github.com/openservicebrokerapi/servicebroker/blob/v2.14/spec.md
3030
//
31-
//The OpenAPI documentation is available here: http://petstore.swagger.io/?url=https://raw.githubusercontent.com/openservicebrokerapi/servicebroker/v2.14/openapi.yaml
31+
// The OpenAPI documentation is available here: http://petstore.swagger.io/?url=https://raw.githubusercontent.com/openservicebrokerapi/servicebroker/v2.14/openapi.yaml
3232
type ServiceBroker interface {
3333
domain.ServiceBroker
3434
}
3535

36-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain
36+
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain
3737
type DetailsWithRawParameters interface {
3838
domain.DetailsWithRawParameters
3939
}
4040

41-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain
41+
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain
4242
type DetailsWithRawContext interface {
4343
domain.DetailsWithRawContext
4444
}
4545

46-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain
46+
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain
4747
type ProvisionDetails = domain.ProvisionDetails
4848

49-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain
49+
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain
5050
type ProvisionedServiceSpec = domain.ProvisionedServiceSpec
5151

52-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain
52+
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain
5353
type GetInstanceDetailsSpec = domain.GetInstanceDetailsSpec
5454

55-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain
55+
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain
5656
type UnbindSpec = domain.UnbindSpec
5757

58-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain
58+
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain
5959
type BindDetails = domain.BindDetails
6060

61-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain
61+
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain
6262
type BindResource = domain.BindResource
6363

64-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain
64+
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain
6565
type UnbindDetails = domain.UnbindDetails
6666

67-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain
67+
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain
6868
type UpdateServiceSpec = domain.UpdateServiceSpec
6969

70-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain
70+
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain
7171
type DeprovisionServiceSpec = domain.DeprovisionServiceSpec
7272

73-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain
73+
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain
7474
type DeprovisionDetails = domain.DeprovisionDetails
7575

76-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain
76+
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain
7777
type UpdateDetails = domain.UpdateDetails
7878

79-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain
79+
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain
8080
type PreviousValues = domain.PreviousValues
8181

82-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain
82+
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain
8383
type PollDetails = domain.PollDetails
8484

85-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain
85+
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain
8686
type LastOperation = domain.LastOperation
8787

88-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain
88+
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain
8989
type LastOperationState = domain.LastOperationState
9090

91-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain
91+
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain
9292
const (
9393
InProgress LastOperationState = "in progress"
9494
Succeeded LastOperationState = "succeeded"
9595
Failed LastOperationState = "failed"
9696
)
9797

98-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain
98+
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain
9999
type Binding = domain.Binding
100100

101-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain
101+
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain
102102
type GetBindingSpec = domain.GetBindingSpec
103103

104-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain
104+
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain
105105
type VolumeMount = domain.VolumeMount
106106

107-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain
107+
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain
108108
type SharedDevice = domain.SharedDevice
109109

110-
//Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses
110+
// Deprecated: Use github.com/pivotal-cf/brokerapi/domain/apiresponses
111111
var (
112112
ErrInstanceAlreadyExists = apiresponses.ErrInstanceAlreadyExists
113113

0 commit comments

Comments
 (0)