()
| 2192 | } |
| 2193 | |
| 2194 | func (h *handler) getReplication() error { |
| 2195 | replicationID := mux.Vars(h.rq)["replicationID"] |
| 2196 | replication, err := h.db.SGReplicateMgr.GetReplication(replicationID) |
| 2197 | if replication == nil { |
| 2198 | if err == nil { |
| 2199 | return kNotFoundError |
| 2200 | } |
| 2201 | return err |
| 2202 | } |
| 2203 | base.Audit(h.ctx(), base.AuditIDISGRRead, base.AuditFields{base.AuditFieldReplicationID: replicationID}) |
| 2204 | h.writeJSON(replication.Redacted(h.ctx())) |
| 2205 | return nil |
| 2206 | } |
| 2207 | |
| 2208 | func (h *handler) putReplication() error { |
| 2209 |
nothing calls this directly
no test coverage detected