MCPcopy Index your code
hub / github.com/minio/mc / JSON

Method JSON

cmd/cp-main.go:217–223  ·  view source on GitHub ↗

JSON jsonified copy message

()

Source from the content-addressed store, hash-verified

215
216// JSON jsonified copy message
217func (c copyMessage) JSON() string {
218 c.Status = "success"
219 copyMessageBytes, e := json.MarshalIndent(c, "", " ")
220 fatalIf(probe.NewError(e), "Unable to marshal into JSON.")
221
222 return string(copyMessageBytes)
223}
224
225// Progress - an interface which describes current amount
226// of data written.

Callers

nothing calls this directly

Calls 2

NewErrorFunction · 0.92
fatalIfFunction · 0.85

Tested by

no test coverage detected