-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Discussion][WIP] Add more capabilities to the project. #2
Comments
@donflopez I'm done ! |
@donflopez, should I start my own project or contribute to yours ? |
Hi @nuRRL! I'm glad you like it! Sorry about the delay, I'm travelling and vacationing for this and next week. I really like all the points you made they're pretty well aligned with what I have in mind, I needed this in a rush so I didn't spend the time to make it better, like versioning and all. Please, contribute to the project, I'll help as much as I can (end of May will have a lot more time). Let's start with the image split work, others should replicate that one :) Let's make this the facto docker lib for Rust! 💪 ⚙️ |
Hello @donflopez, no problem, I think we should start by the |
Tho I don't know if I want to contribute or to start my own project, because this would help me to gain some skills in Rust to start over. Also I'd prefer to work on a GPLv3 project :) For further uses on other projects ! |
Hello @donflopez,
I think you did a great start job for the project and that I could contribute to it,
I found the using syntax pretty elegant and the code very simple,
tho I would like some base features for now, for which I can provide some work.
I think we should discuss about the coding standards, goals and needs of this project, and include them to the README.md.
First of all, I think we should differentiate
images
andimage
types:images
being the global images functions, likelist
,pull
,create
image
being the image itself, withdelete
,inspect
Same for
containers
/container
,networks
/network
,volumes
/volume
...To be compliant with the Docker API and provide a lot of things, we would need:
For
docker
:connect
, giving us adocker
object, so we can use the following functions on:version
, with a way to match the version with a compliantVec
like:info
with all relevant information.ping
because why not, just to test if the server is still reachable.For
images
:pull
to make the Docker server pull, but alsoget
to select an image from aname
/crate&tag
.list
to list all images.For
image
:remove
to delete it.info
to have access to all stats like size, created date.For
containers
:get
container from name:list
to list all containers, but with a mask if needed like:create
to create a container image we got forImages::get();
For
container
:start
/stop
/restart
/kill
/pause
/unpause
/remove
As normal use cases but also:
config
and,commit
which will permit to modify the given container and then after all modifications, commit it to the docker daemon.Also, because the
Docker
Object has aconnect
function, he should have arequest
function, which all other modules should use, replacing yourClient
trait.Note: I will be improving this post over time so we can add more and more features.
The text was updated successfully, but these errors were encountered: