(etcdStore kv.TxnStore, key string)
| 63 | } |
| 64 | |
| 65 | func 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 | |
| 74 | func deleteEntity(entityList pb.EntityList, name string) (pb.EntityList, bool) { |
| 75 | nowTs := utils.Now().UnixNano() |
no test coverage detected