29 #ifndef SRC_DOCKER_RESULT_H_
30 #define SRC_DOCKER_RESULT_H_
40 #define DOCKER_PARAM_TRUE 1
43 #define DOCKER_PARAM_FALSE 0
53 E_FILE_NOT_FOUND = -2,
56 E_CONNECTION_FAILED = -5
63 #define HTTP_GET_STR "GET"
66 #define HTTP_POST_STR "POST"
69 #define HTTP_DELETE_STR "DELETE"
Some common declarations.
char * docker_result_get_method(docker_result *result)
Get the HTTP method used for the docker API call performed by this operation.
Definition: docker_result.c:131
char * docker_result_get_response_json_str(docker_result *result)
Get the JSON response string received from the docker API endpoint.
Definition: docker_result.c:149
time_t docker_result_get_end_time(docker_result *result)
Get the end time of the operation which produces this result.
Definition: docker_result.c:113
_config_error
Definition: docker_result.h:49
long docker_result_get_http_error_code(docker_result *result)
Get the HTTP error code returned by the docker API call.
Definition: docker_result.c:158
enum _config_error d_err_t
Definition: docker_result.h:60
docker_result * docker_result_clone(docker_result *result)
Clone the given docker_result object.
Definition: docker_result.c:74
d_err_t docker_result_get_error_code(docker_result *result)
Get the result error code. For possible values of the error code see the enum d_err_t.
Definition: docker_result.c:95
void docker_simple_error_handler_print(docker_result *res)
Definition: docker_result.c:187
char * docker_result_get_url(docker_result *result)
Get the url for the docker API call performed by this operation.
Definition: docker_result.c:122
void free_docker_result(docker_result *result)
Definition: docker_result.c:56
d_err_t new_docker_result(docker_result **result)
Definition: docker_result.c:35
char * docker_result_get_request_json_str(docker_result *result)
Get the JSON request string sent to the docker API endpoint.
Definition: docker_result.c:140
void docker_simple_error_handler_log(docker_result *res)
Definition: docker_result.c:200
struct docker_result_t docker_result
int is_ok(docker_result *result)
Definition: docker_result.c:179
char * docker_result_get_message(docker_result *result)
Get the message string received from docker API call. This is usually part of the JSON response....
Definition: docker_result.c:167
time_t docker_result_get_start_time(docker_result *result)
Get the start time of the operation which produced this result.
Definition: docker_result.c:104
Definition: docker_result.h:93
char * message
Definition: docker_result.h:108
time_t start_time
Definition: docker_result.h:96
long http_error_code
Response HTTP error code.
Definition: docker_result.h:107
char * method
Definition: docker_result.h:103
d_err_t error_code
Definition: docker_result.h:94
char * url
URL for the docker API call.
Definition: docker_result.h:102
time_t end_time
Definition: docker_result.h:99
char * response_json_str
Response JSON data (might be NULL)
Definition: docker_result.h:106
char * request_json_str
Request JSON data.
Definition: docker_result.h:105