MCPcopy
hub / github.com/spacecloud-io/space-cloud / Get

Method Get

gateway/utils/atomic.go:57–63  ·  view source on GitHub ↗

Get gets the value of a key from the object

(key string)

Source from the content-addressed store, hash-verified

55
56// Get gets the value of a key from the object
57func (obj *Object) Get(key string) (value interface{}, present bool) {
58 obj.lock.RLock()
59 defer obj.lock.RUnlock()
60
61 value, present = obj.object[key]
62 return
63}
64
65// GetAll returns the entire object
66func (obj *Object) GetAll() map[string]interface{} {

Callers 15

CheckAndSetMethod · 0.45
CheckIfKeyExistsMethod · 0.45
CreateSecretMethod · 0.45
SetFileSecretRootPathMethod · 0.45
SetKeyMethod · 0.45
DeleteKeyMethod · 0.45
getSecretsMethod · 0.45
applyDeploymentMethod · 0.45
applyServiceMethod · 0.45

Calls

no outgoing calls

Tested by 15

ReadMethod · 0.36
ExecPreparedQueryMethod · 0.36
ParseTokenMethod · 0.36
IsCreateOpAuthorisedMethod · 0.36
IsReadOpAuthorisedMethod · 0.36
IsUpdateOpAuthorisedMethod · 0.36
IsDeleteOpAuthorisedMethod · 0.36
IsFuncCallAuthorisedMethod · 0.36
CallWithContextMethod · 0.36
GetSchemaMethod · 0.36
InvokeHookMethod · 0.36