29 #ifndef SRC_DOCKER_NETWORKS_H_
30 #define SRC_DOCKER_NETWORKS_H_
55 #define docker_network_container_name_get(ctr) get_attr_str((json_object*)ctr, "Name")
63 #define docker_network_container_endpoint_id_get(ctr) get_attr_str((json_object*)ctr, "EndpointID")
71 #define docker_network_container_mac_address_get(ctr) get_attr_str((json_object*)ctr, "MacAddress")
79 #define docker_network_container_ipv4_address_get(ctr) get_attr_str((json_object*)ctr, "IPv4Address")
87 #define docker_network_container_ipv6_address_get(ctr) get_attr_str((json_object*)ctr, "IPv6Address")
100 #define docker_network_ipam_driver_get(ipam) get_attr_str((json_object*)ipam, "Driver")
108 #define docker_network_ipam_config_length(ipam) json_object_array_length(get_attr_json_object((json_object*)ipam, "Config"))
117 #define docker_network_ipam_config_get_idx(ipam, i) json_object_array_get_idx(get_attr_json_object((json_object*)ipam, "Config"))
129 #define free_docker_network(net) json_object_put((json_object*) net)
137 #define docker_network_name_get(net) get_attr_str((json_object*)net, "Name")
145 #define docker_network_id_get(net) get_attr_str((json_object*)net, "Id")
153 #define docker_network_created_get(net) get_attr_str((json_object*)net, "Created")
161 #define docker_network_scope_get(net) get_attr_str((json_object*)net, "Scope")
169 #define docker_network_driver_get(net) get_attr_str((json_object*)net, "Driver")
177 #define docker_network_enable_ipv6_get(net) get_attr_boolean((json_object*)net, "EnableIPv6")
185 #define docker_network_internal_get(net) get_attr_boolean((json_object*)net, "Internal")
193 #define docker_network_attachable_get(net) get_attr_boolean((json_object*)net, "Attachable")
201 #define docker_network_ingress_get(net) get_attr_boolean((json_object*)net, "Ingress")
209 #define docker_network_options_get(net) get_attr_json_object((json_object*)net, "Options")
216 #define docker_network_options_foreach(net) json_object_object_foreach(docker_network_options_get(net), key, val)
224 #define docker_network_labels_get(net) get_attr_json_object((json_object*)net, "Labels")
231 #define docker_network_labels_foreach(net) json_object_object_foreach(docker_network_labels_get(net), key, val)
239 #define docker_network_ipam_get(net) (docker_network_ipam*)get_attr_json_object((json_object*)net, "IPAM")
247 #define docker_network_containers_get(net) get_attr_json_object((json_object*)net, "Containers")
254 #define docker_network_containers_foreach(net) json_object_object_foreach(docker_network_containers_get(net), key, val)
266 #define free_docker_network_list(network_ls) json_object_put(network_ls)
274 #define docker_network_list_length(network_ls) json_object_array_length(network_ls)
283 #define docker_network_list_get_idx(network_ls, i) (docker_network*) json_object_array_get_idx(network_ls, i)
300 char* filter_driver,
char* filter_id,
301 char* filter_label,
char* filter_name,
char* filter_scope,
315 char* id_or_name,
int verbose,
char* scope);
json_object docker_network_ipam
Docker Network Ipam json object.
Definition: docker_networks.h:92
json_object docker_network
Docker Network json object.
Definition: docker_networks.h:122
d_err_t docker_networks_list(docker_context *ctx, docker_network_list **networks, char *filter_driver, char *filter_id, char *filter_label, char *filter_name, char *filter_scope, char *filter_type)
Definition: docker_networks.c:27
d_err_t docker_network_inspect(docker_context *ctx, docker_network **net, char *id_or_name, int verbose, char *scope)
Definition: docker_networks.c:65
json_object docker_network_container
Docker Network Container json object.
Definition: docker_networks.h:47
json_object docker_network_list
docker network list object
Definition: docker_networks.h:259
enum _config_error d_err_t
Definition: docker_result.h:60
A docker context for a specific docker server.
Definition: docker_connection_util.h:141