hub-tool
A (very early) asynchronous Rust library for the Docker Hub API v2
[!WARNING] At the moment only listing the repositories and the tags for a given org or username is supported, the SDK may be unstable and subject to breaking changes.
Get started with cargo add hub-tool and a Docker Hub account, to generate a Personal
Access Token (PAT) from https://app.docker.com/settings/personal-access-tokens, to
send request to the Docker Hub API from hub-tool.
What's missing?
- Support for the rest of the endpoints exposed by the Docker Hub API, read more about those at https://docs.docker.com/reference/api/hub/latest/
- Handle response headers for rate limiting, and make sure that requests are sent in batches carefully respecting those limits.
- Explore different ways of enhancing
hub-toolto be more than a Docker Hub API wrapper, and add functionality on top e.g. filtering. - Add support for custom Docker Registries (AFAIK the API differs a bit so that would imply most likely a different client + whatever the registry needs e.g. for Docker Registries in AWS the endpoints sometimes provide redirect URIs within the response etc.)
Usage
use Context;
use DockerHubClient;
async
License
This project is licensed under either of the following licenses, at your option:
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.