// BindingParentHierarchy retrieves all ancestor resources of a binding.
BindingParentHierarchy retrieves all ancestor resources of a binding.
// BindingParentHierarchy retrieves all ancestor resources of a binding .
func (sdk *SDK) BindingParentHierarchy(binding *v1beta1.ServiceBinding,
) (*v1beta1.ServiceInstance, *v1beta1.ClusterServiceClass, *v1beta1.ClusterServicePlan, *v1beta1.ClusterServiceBroker, error) {
	instance, err := sdk.RetrieveInstanceByBinding(binding)
	if err != nil {
		return nil, nil, nil, nil, err
	}
	class, plan, err := sdk.InstanceToServiceClassAndPlan(instance)
	if err != nil {
		return nil, nil, nil, nil, err
	}
	broker, err := sdk.RetrieveBrokerByClass(class)
	if err != nil {
		return nil, nil, nil, nil, err
	}
	return instance, class, plan, broker, nil
}
func ( sdk * SDK ) BindingParentHierarchy ( binding * v1beta1 . ServiceBinding , ) ( * v1beta1 . ServiceInstance , * v1beta1 . ClusterServiceClass , * v1beta1 . ClusterServicePlan , * v1beta1 . ClusterServiceBroker , error ) { instance , err := sdk . RetrieveInstanceByBinding ( binding ) if err != nil { return nil , nil , nil , nil , err } class , plan , err := sdk . InstanceToServiceClassAndPlan ( instance ) if err != nil { return nil , nil , nil , nil , err } broker , err := sdk . RetrieveBrokerByClass ( class ) if err != nil { return nil , nil , nil , nil , err } return instance , class , plan , broker , nil }
BindingParentHierarchy retrieves all ancestor resources of a binding.
BindingParentHierarchy retrieves all ancestor resources of a binding .