29 #ifndef SRC_DOCKER_VOLUMES_H_
30 #define SRC_DOCKER_VOLUMES_H_
56 #define free_docker_volume(vol) json_object_put((json_object*) vol)
64 #define docker_volume_name_get(vol) get_attr_str((json_object*)vol, "Name")
72 #define docker_volume_driver_get(vol) get_attr_str((json_object*)vol, "Driver")
80 #define docker_volume_mountpoint_vol_get(vol) get_attr_str((json_object*)vol, "Mountpoint")
90 #define docker_volume_go_scope_get(vol) get_attr_str((json_object*)vol, "Scope")
98 #define docker_volume_creation_time_get(vol) get_attr_time((json_object*)vol, "CreatedAt")
109 #define docker_volume_labels_get(vol) get_attr_json_object((json_object*)vol, "Labels")
119 #define docker_volume_labels_foreach(vol) json_object_object_foreach(docker_volume_labels_get(vol), key, val)
130 #define docker_volume_options_get(vol) get_attr_json_object((json_object*)vol, "Options")
140 #define docker_volume_options_foreach(vol) json_object_object_foreach(docker_volume_options_get(vol), key, val)
152 #define free_docker_volume_list(volume_ls) json_object_put(volume_ls)
160 #define docker_volume_list_length(volume_ls) json_object_array_length(volume_ls)
169 #define docker_volume_list_get_idx(volume_ls, i) (docker_volume*) json_object_array_get_idx(volume_ls, i)
183 #define free_docker_warnings(warnings) json_object_put(warnings)
191 #define docker_warnings_length(warnings) json_object_array_length(warnings)
200 #define docker_warnings_get_idx(warnings, i) (char*) json_object_array_get_idx(warnings, i)
217 int filter_dangling,
char* filter_driver,
char* filter_label,
232 docker_volume** volume,
char* name,
char* driver,
int num_labels,
255 const char* name,
int force);
268 arraylist** volumes_deleted,
269 unsigned long* space_reclaimed,
int num_label_filters, ...);
enum _config_error d_err_t
Definition: docker_result.h:60
d_err_t docker_volumes_list(docker_context *ctx, docker_volume_list **volumes, docker_volume_warnings **warnings, int filter_dangling, char *filter_driver, char *filter_label, char *filter_name)
Definition: docker_volumes.c:31
json_object docker_volume_warnings
The Docker Volume Warnings list json object.
Definition: docker_volumes.h:176
json_object docker_volume
The Docker Volume object.
Definition: docker_volumes.h:51
d_err_t docker_volumes_delete_unused(docker_context *ctx, arraylist **volumes_deleted, unsigned long *space_reclaimed, int num_label_filters,...)
Definition: docker_volumes.c:138
d_err_t docker_volume_inspect(docker_context *ctx, docker_volume **volume, char *name)
Definition: docker_volumes.c:104
d_err_t docker_volume_delete(docker_context *ctx, const char *name, int force)
Definition: docker_volumes.c:119
d_err_t docker_volume_create(docker_context *ctx, docker_volume **volume, char *name, char *driver, int num_labels,...)
Definition: docker_volumes.c:68
json_object docker_volume_list
Represents Docker Volume List in json.
Definition: docker_volumes.h:145
A docker context for a specific docker server.
Definition: docker_connection_util.h:141