MCPcopy
hub / github.com/cloudfoundry/cli / Retrieve

Method Retrieve

integration/assets/hydrabroker/database/database.go:40–46  ·  view source on GitHub ↗
(id ID)

Source from the content-addressed store, hash-verified

38}
39
40func (db *Database) Retrieve(id ID) (interface{}, bool) {
41 db.mutex.Lock() // Tests do not fail if this lock is removed
42 defer db.mutex.Unlock()
43
44 value, ok := db.data[id]
45 return value, ok
46}
47
48func (db *Database) Update(id ID, value interface{}) {
49 db.mutex.Lock()

Callers 6

database_test.goFile · 0.80
RetrieveBindingMethod · 0.80
RetrieveInstanceMethod · 0.80
UpdateInstanceMethod · 0.80
RetrieveBrokerMethod · 0.80
ListBrokersMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected