use-docker-image 0.0.1

Primitive Docker image reference parsing for RustUse
Documentation
  • Coverage
  • 100%
    15 out of 15 items documented1 out of 11 items with examples
  • Size
  • Source code size: 10.75 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 451.34 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-docker
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-docker-image

Primitive Docker image reference parsing for RustUse.

This crate splits common image references into registry, path, repository, tag, and digest components. It intentionally validates a conservative subset of image name syntax rather than claiming complete Docker compatibility.

Basic Usage

use use_docker_image::DockerImageReference;

let reference: DockerImageReference = "ghcr.io/rustuse/app:0.1.0".parse()?;

assert_eq!(reference.registry(), Some("ghcr.io"));
assert_eq!(reference.namespace(), Some("rustuse"));
assert_eq!(reference.repository(), "app");
assert_eq!(reference.tag(), Some("0.1.0"));
# Ok::<(), Box<dyn std::error::Error>>(())