Thanks for the contribution! A few ideas for improving:
Perhaps we modify init_curl to take a memory pointer so we can use docker_get in docker_get_archive. Reduce duplicate code and al lthat.
Maybe it's worth keeping docker.c as the core REST functions and have something like container.c/h to contain functions related to containers. You could see expanding based on the other nouns in the API.
Thanks for the contribution! A few ideas for improving:
Perhaps we modify
init_curl
to take a memory pointer so we can usedocker_get
indocker_get_archive
. Reduce duplicate code and al lthat.Maybe it's worth keeping
docker.c
as the core REST functions and have something likecontainer.c/h
to contain functions related to containers. You could see expanding based on the other nouns in the API.