github.com/kyma-project/kyma-environment-broker@v0.0.1/internal/broker/bind_delete.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 UnbindEndpoint struct {
    12  	log logrus.FieldLogger
    13  }
    14  
    15  func NewUnbind(log logrus.FieldLogger) *UnbindEndpoint {
    16  	return &UnbindEndpoint{log: log.WithField("service", "UnbindEndpoint")}
    17  }
    18  
    19  // Unbind deletes an existing service binding
    20  //
    21  //	DELETE /v2/service_instances/{instance_id}/service_bindings/{binding_id}
    22  func (b *UnbindEndpoint) Unbind(ctx context.Context, instanceID, bindingID string, details domain.UnbindDetails, asyncAllowed bool) (domain.UnbindSpec, error) {
    23  	b.log.Infof("Unbind instanceID: %s", instanceID)
    24  	b.log.Infof("Unbind details: %+v", details)
    25  	b.log.Infof("Unbind asyncAllowed: %v", asyncAllowed)
    26  
    27  	return domain.UnbindSpec{}, fmt.Errorf("not supported")
    28  }