Skip to main content

Crate use_docker_registry

Crate use_docker_registry 

Source
Expand description

§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");

Structs§

DockerRegistry
A validated Docker registry host label.
DockerRepositoryPath
A validated Docker repository path.
RegistryImagePath
A registry-qualified or local repository path.

Enums§

DockerRegistryError
Error returned when registry or repository reference text is invalid.