github.com/kyma-project/kyma-environment-broker@v0.0.1/internal/broker/bind_get.go (about) 1 package broker 2 3 import ( 4 "context" 5 "fmt" 6 7 "github.com/pivotal-cf/brokerapi/v8/domain" 8 "github.com/sirupsen/logrus" 9 ) 10 11 type GetBindingEndpoint struct { 12 log logrus.FieldLogger 13 } 14 15 func NewGetBinding(log logrus.FieldLogger) *GetBindingEndpoint { 16 return &GetBindingEndpoint{log: log.WithField("service", "GetBindingEndpoint")} 17 } 18 19 // GetBinding fetches an existing service binding 20 // 21 // GET /v2/service_instances/{instance_id}/service_bindings/{binding_id} 22 func (b *GetBindingEndpoint) GetBinding(_ context.Context, instanceID, bindingID string, _ domain.FetchBindingDetails) (domain.GetBindingSpec, error) { 23 b.log.Infof("GetBinding instanceID: %s", instanceID) 24 b.log.Infof("GetBinding bindingID: %s", bindingID) 25 26 return domain.GetBindingSpec{}, fmt.Errorf("not supported") 27 }