Skip to main content

Crate cuenv_tools_oci

Crate cuenv_tools_oci 

Source
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.