GetService returns the first service with the given label Returns nil if no service with the label exists
(label string)
| 162 | // GetService returns the first service with the given label |
| 163 | // Returns nil if no service with the label exists |
| 164 | func (v VCAPServices) GetService(label string) *VCAPService { |
| 165 | services, exists := v[label] |
| 166 | if !exists || len(services) == 0 { |
| 167 | return nil |
| 168 | } |
| 169 | return &services[0] |
| 170 | } |
| 171 | |
| 172 | // HasTag checks if any service has the given tag |
| 173 | // Matching is case-insensitive to handle various service broker tag conventions |
no outgoing calls
no test coverage detected