use-docker-registry 0.0.1

Primitive Docker registry and repository reference helpers for RustUse
Documentation
  • Coverage
  • 100%
    16 out of 16 items documented1 out of 13 items with examples
  • Size
  • Source code size: 9.3 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 607.58 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 4s 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-registry

Primitive Docker registry and repository reference helpers for RustUse.

This crate models registry host labels and repository paths without performing HTTP registry API calls.

Basic Usage

use use_docker_registry::{DockerRegistry, DockerRepositoryPath, RegistryImagePath};

let registry = DockerRegistry::new("ghcr.io")?;
let repository = DockerRepositoryPath::new("rustuse/app")?;
let reference = RegistryImagePath::new(Some(registry), repository);

assert_eq!(reference.to_string(), "ghcr.io/rustuse/app");
# Ok::<(), Box<dyn std::error::Error>>(())