29 #ifndef SRC_DOCKER_IMAGES_H_
30 #define SRC_DOCKER_IMAGES_H_
36 #include <coll_arraylist.h>
44 #define DEFAULT_DOCKER_FILE_NAME "Dockerfile"
68 #define docker_image_id_get(img) get_attr_str((json_object*)img, "Id")
76 #define docker_image_container_get(img) get_attr_str((json_object*)img, "Container")
84 #define docker_image_comment_get(img) get_attr_str((json_object*)img, "Comment")
92 #define docker_image_os_get(img) get_attr_str((json_object*)img, "Os")
100 #define docker_image_architecture_get(img) get_attr_str((json_object*)img, "Architecture")
108 #define docker_image_parent_get(img) get_attr_str((json_object*)img, "Parent")
116 #define docker_image_docker_version_get(img) get_attr_str((json_object*)img, "DockerVersion")
124 #define docker_image_virtual_size_get(img) get_attr_long_long((json_object*)img, "VirtualSize")
132 #define docker_image_size_get(img) get_attr_long_long((json_object*)img, "Size")
140 #define docker_image_author_get(img) get_attr_str((json_object*)img, "Author")
148 #define docker_image_created_get(img) get_attr_unsigned_long((json_object*)img, "Created")
160 #define docker_image_repo_tags_get(img) get_attr_json_object((json_object*)img, "RepoTags")
169 #define docker_image_repo_tags_length(img) json_object_array_length(docker_image_repo_tags_get(img))
179 #define docker_image_repo_tags_get_idx(img, i) (char*)json_object_get_string(json_object_array_get_idx(docker_image_repo_tags_get(img), i))
191 #define docker_image_repo_digests_get(img) get_attr_json_object((json_object*)img, "RepoDigests")
200 #define docker_image_repo_digests_length(img) json_object_array_length(docker_image_repo_digests_get(img))
210 #define docker_image_repo_digests_get_idx(img, i) (char*)json_object_get_string(json_object_array_get_idx(docker_image_repo_digests_get(img), i))
225 #define free_docker_image_list(image_ls) json_object_put(image_ls)
233 #define docker_image_list_length(image_ls) json_object_array_length(image_ls)
242 #define docker_image_list_get_idx(image_ls, i) (docker_image*) json_object_array_get_idx(image_ls, i)
260 int filter_dangling,
char* filter_label,
char* filter_reference,
305 char* from_image,
char* tag,
char* platform);
322 void* cbargs,
char* from_image,
char* tag,
char* platform);
339 char* folder,
char* dockerfile,
struct docker_build_status_t docker_build_status
Docker Build Status is used to provide a status update of the docker image build status.
json_object docker_image
The Docker Image object.
Definition: docker_images.h:60
json_object docker_image_list
Docker Image List object.
Definition: docker_images.h:218
d_err_t docker_image_build_cb(docker_context *ctx, char *folder, char *dockerfile, void(*status_cb)(docker_build_status *, void *cbargs), void *cbargs,...)
Definition: docker_images.c:259
struct docker_image_create_status_t docker_image_create_status
Docker Image Creation Status is returned when creating a docker image. It is useful for a user facing...
d_err_t docker_images_list(docker_context *ctx, docker_image_list **images, int all, int digests, char *filter_before, int filter_dangling, char *filter_label, char *filter_reference, char *filter_since)
Definition: docker_images.c:37
d_err_t docker_image_create_from_image_cb(docker_context *ctx, void(*status_cb)(docker_image_create_status *, void *cbargs), void *cbargs, char *from_image, char *tag, char *platform)
Definition: docker_images.c:148
d_err_t docker_image_create_from_image(docker_context *ctx, char *from_image, char *tag, char *platform)
Definition: docker_images.c:141
struct docker_progress_detail_t docker_progress_detail
Provides progress detail for docker image creation process.
enum _config_error d_err_t
Definition: docker_result.h:60
Docker Build Status is used to provide a status update of the docker image build status.
Definition: docker_images.h:287
char * stream
the status stream
Definition: docker_images.h:288
char * aux_id
the aux id
Definition: docker_images.h:289
A docker context for a specific docker server.
Definition: docker_connection_util.h:141
Docker Image Creation Status is returned when creating a docker image. It is useful for a user facing...
Definition: docker_images.h:276
char * progress
progress description
Definition: docker_images.h:279
char * id
image id
Definition: docker_images.h:278
docker_progress_detail * progress_detail
progress detail (provides current and total steps)
Definition: docker_images.h:280
char * status
a status message from the docker api
Definition: docker_images.h:277
Provides progress detail for docker image creation process.
Definition: docker_images.h:266
long current
current value of progress bar
Definition: docker_images.h:267
long total
total value of progress bar
Definition: docker_images.h:268