Skip to main content

Module output

Module output 

Source
Expand description

The output: json (the server’s response, indented), table (columns) and raw, and the shape of the API errors (doc 19b, section 18.11.3).

Enums§

Format

Functions§

cluster_table
The ClusterStatus as tables: the simple fields, one row per node and one per condition.
render
The text of a response in the requested format. raw returns the text as it came.
table
A table with the items of a list (items, messages or a list at the root) or, for a single object, one row per field. None if the text is not JSON of one of those shapes.
write_api_error
Writes an API error to the error output: code: message (requestId ...), the details and the Retry-After. With json and a server ErrorResponse, writes the body as it came (indented).