Expand description
OCI-based binary provider for cuenv.
This crate provides functionality to:
- Resolve OCI image references to content-addressed digests
- Extract binaries from OCI container images
- Cache binaries by digest for hermetic builds
§Example
ⓘ
use cuenv_tools_oci::{OciClient, OciCache};
let client = OciClient::new()?;
let cache = OciCache::default();
// Resolve image to platform-specific digest
let digest = client.resolve_digest("nginx:1.25-alpine", "linux-arm64").await?;
// Fetch layers
let layers = client.pull_layers(&digest, &cache).await?;Structs§
- OciCache
- Content-addressed cache for OCI binaries.
- OciClient
- OCI registry client for image resolution and blob pulling.
- Platform
- A normalized platform specification.
Enums§
- Error
- Errors that can occur during OCI operations.
Constants§
- OCI_
MEDIA_ TYPE - Media type for OCI image layers (gzip compressed tar).
Functions§
- current_
platform - Get the current platform.
- extract_
from_ layers - Extract a file from OCI image layers.
- normalize_
platform - Normalize a platform string to canonical format.
Type Aliases§
- Result
- Result type for OCI provider operations.