MCPcopy Index your code
hub / github.com/cloudfoundry/java-buildpack / GetService

Method GetService

src/java/common/context.go:164–170  ·  view source on GitHub ↗

GetService returns the first service with the given label Returns nil if no service with the label exists

(label string)

Source from the content-addressed store, hash-verified

162// GetService returns the first service with the given label
163// Returns nil if no service with the label exists
164func (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

Callers 13

findContrastServiceMethod · 0.80
getCredentialsMethod · 0.80
FinalizeMethod · 0.80
getCredentialsMethod · 0.80
findElasticApmServiceMethod · 0.80
FinalizeMethod · 0.80
DetectMethod · 0.80
FinalizeMethod · 0.80
getCredentialsMethod · 0.80
framework_test.goFile · 0.80
FinalizeMethod · 0.80
FinalizeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected