JSON jsonified server update message.
()
| 102 | |
| 103 | // JSON jsonified server update message. |
| 104 | func (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 |
| 112 | func checkAdminServerUpdateSyntax(ctx *cli.Context) { |