MCPcopy
hub / github.com/cloudfoundry/cli / getServiceInstanceByNameAndSpace

Method getServiceInstanceByNameAndSpace

actor/v7action/service_instance.go:278–286  ·  view source on GitHub ↗
(serviceInstanceName string, spaceGUID string, query ...ccv3.Query)

Source from the content-addressed store, hash-verified

276}
277
278func (actor Actor) getServiceInstanceByNameAndSpace(serviceInstanceName string, spaceGUID string, query ...ccv3.Query) (resources.ServiceInstance, ccv3.IncludedResources, ccv3.Warnings, error) {
279 serviceInstance, includedResources, warnings, err := actor.CloudControllerClient.GetServiceInstanceByNameAndSpace(serviceInstanceName, spaceGUID, query...)
280 switch e := err.(type) {
281 case ccerror.ServiceInstanceNotFoundError:
282 return serviceInstance, ccv3.IncludedResources{}, warnings, actionerror.ServiceInstanceNotFoundError{Name: e.Name}
283 default:
284 return serviceInstance, includedResources, warnings, err
285 }
286}
287
288func (actor Actor) getServiceInstanceForUpdate(serviceInstanceName string, spaceGUID string, includePlan bool) (resources.ServiceInstance, resources.ServiceOffering, resources.ServiceBroker, ccv3.Warnings, error) {
289 var query []ccv3.Query

Implementers 1

FakeActorcommand/v7/v7fakes/fake_actor.go

Tested by

no test coverage detected