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

Method readJob

controller/mutators/etcd/job_mutator.go:193–199  ·  view source on GitHub ↗
(namespace string, name string)

Source from the content-addressed store, hash-verified

191}
192
193func (j *jobMutatorImpl) readJob(namespace string, name string) (jobConfig pb.EntityConfig, version int, err error) {
194 version, err = readValue(j.etcdStore, utils.JobKey(namespace, name), &jobConfig)
195 if common.IsNonExist(err) {
196 err = common.ErrJobConfigDoesNotExist
197 }
198 return
199}

Callers 4

GetJobMethod · 0.95
DeleteJobMethod · 0.95
UpdateJobMethod · 0.95
AddJobMethod · 0.95

Calls 3

JobKeyFunction · 0.92
IsNonExistFunction · 0.92
readValueFunction · 0.85

Tested by

no test coverage detected