Skip to main content

Module oci

Module oci 

Source
Expand description

CLI OCI surface (xbp oci, xbp config oci).

Registry math lives in xbp-oci; this module wires auth sources and clap.

Structs§

DefaultOciPromoter
DefaultOciResolver
Default resolver backed by OciClient.
OciAuth
Resolved registry credentials (never log token).
OciAuthRequest
Inputs for auth resolution (caller supplies env/global lookups).
OciClient
Thin wrapper around oci-client.
OciRef
Canonical OCI image reference.

Traits§

OciPromoter
Promote/copy by digest (no rebuild).
OciResolver
Resolve digests and existence without coupling callers to a registry SDK.

Functions§

auth_candidates_for_registry
Build ordered (source, username?, token) candidates for a registry.
parse_image_ref
Parse registry/repo[:tag][@digest].
resolve_auth_from_candidates
Pure resolution given explicit token candidates (no env/fs I/O).
run_config_oci
run_oci