Skip to content

Commit

Permalink
Adds endpoint to support get-binding response for OSB v2.16
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSp1der committed Jul 1, 2024
1 parent e9b1063 commit 6334468
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion domain/apiresponses/responses.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ type BindingResponse struct {

type GetBindingResponse struct {
BindingResponse
Parameters any `json:"parameters,omitempty"`
Parameters any `json:"parameters,omitempty"`
Endpoints []domain.Endpoint `json:"endpoints,omitempty"`
}

type UnbindResponse struct {
Expand Down
7 changes: 7 additions & 0 deletions domain/service_broker.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,13 @@ type GetBindingSpec struct {
RouteServiceURL string
VolumeMounts []VolumeMount
Parameters any
Endpoints []Endpoint
}

type Endpoint struct {
Host string `json:"host"`
Ports []string `json:"ports"`
Protocol string `json:"protocol,omitempty"`
}

func (d ProvisionDetails) GetRawContext() json.RawMessage {
Expand Down

0 comments on commit 6334468

Please sign in to comment.