MCPcopy Index your code
hub / github.com/cloudfoundry/cli / Execute

Method Execute

cf/requirements/service_instance.go:28–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26}
27
28func (req *serviceInstanceAPIRequirement) Execute() error {
29 var apiErr error
30 req.serviceInstance, apiErr = req.serviceRepo.FindInstanceByName(req.name)
31
32 if apiErr != nil {
33 return apiErr
34 }
35
36 return nil
37}
38
39func (req *serviceInstanceAPIRequirement) GetServiceInstance() models.ServiceInstance {
40 return req.serviceInstance

Callers

nothing calls this directly

Calls 1

FindInstanceByNameMethod · 0.65

Tested by

no test coverage detected