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

Method JSON

cmd/admin-update.go:104–109  ·  view source on GitHub ↗

JSON jsonified server update message.

()

Source from the content-addressed store, hash-verified

102
103// JSON jsonified server update message.
104func (s serverUpdateMessage) JSON() string {
105 serverUpdateJSONBytes, e := json.MarshalIndent(s, "", " ")
106 fatalIf(probe.NewError(e), "Unable to marshal into JSON.")
107
108 return string(serverUpdateJSONBytes)
109}
110
111// checkAdminServerUpdateSyntax - validate all the passed arguments
112func checkAdminServerUpdateSyntax(ctx *cli.Context) {

Callers

nothing calls this directly

Calls 2

NewErrorFunction · 0.92
fatalIfFunction · 0.85

Tested by

no test coverage detected