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

Function assertServiceInstanceType

actor/v7action/service_instance.go:352–361  ·  view source on GitHub ↗
(requiredType resources.ServiceInstanceType, instance resources.ServiceInstance)

Source from the content-addressed store, hash-verified

350}
351
352func assertServiceInstanceType(requiredType resources.ServiceInstanceType, instance resources.ServiceInstance) error {
353 if instance.Type != requiredType {
354 return actionerror.ServiceInstanceTypeError{
355 Name: instance.Name,
356 RequiredType: requiredType,
357 }
358 }
359
360 return nil
361}
362
363func handleServiceInstanceErrors(warnings ccv3.Warnings, err error) (Warnings, error) {
364 switch e := err.(type) {

Calls

no outgoing calls

Tested by

no test coverage detected