MCPcopy Create free account
hub / github.com/composable-operator/composable / getPlan

Function getPlan

controllers/composable_controller_test.go:550–557  ·  view source on GitHub ↗

returns service plan of Service.ibmcloud.ibm.com

(objMap map[string]interface{})

Source from the content-addressed store, hash-verified

548
549// returns service plan of Service.ibmcloud.ibm.com
550func getPlan(objMap map[string]interface{}) string {
551 if spec, ok := objMap[spec].(map[string]interface{}); ok {
552 if plan, ok := spec["plan"].(string); ok {
553 return plan
554 }
555 }
556 return ""
557}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected