MCPcopy
hub / github.com/uber/aresdb / readEntityList

Function readEntityList

controller/mutators/etcd/common.go:65–72  ·  view source on GitHub ↗
(etcdStore kv.TxnStore, key string)

Source from the content-addressed store, hash-verified

63}
64
65func readEntityList(etcdStore kv.TxnStore, key string) (entityList pb.EntityList, version int, err error) {
66 version, err = readValue(etcdStore, key, &entityList)
67 if common.IsNonExist(err) {
68 err = common.ErrNamespaceDoesNotExist
69 return
70 }
71 return
72}
73
74func deleteEntity(entityList pb.EntityList, name string) (pb.EntityList, bool) {
75 nowTs := utils.Now().UnixNano()

Callers 15

GetJobsMethod · 0.85
DeleteJobMethod · 0.85
UpdateJobMethod · 0.85
AddJobMethod · 0.85
CreateNamespaceMethod · 0.85
ListNamespacesMethod · 0.85
GetHashMethod · 0.85
getHashFunction · 0.85

Calls 2

IsNonExistFunction · 0.92
readValueFunction · 0.85

Tested by

no test coverage detected