Skip to main content

Module oci

Module oci 

Source
Expand description

OCI registry distribution for deterministic Tuff pack artifacts.

Structs§

OciPullResult
Deterministic result returned after pulling and verifying a pack.
OciPushResult
Deterministic result returned after publishing a pack.
OciResolvedTag
What a pack tag points at right now, learned from the manifest alone.
OciTransferOptions
Network and TLS settings shared by OCI push and pull operations.

Enums§

OciPushStatus
Whether a push wrote a manifest or found the same manifest already published.

Constants§

OCI_EMPTY_MEDIA_TYPE
OCI media type for the standard empty JSON descriptor.
PACK_ARTIFACT_MEDIA_TYPE
OCI artifact type identifying a Tuff pack manifest.
PACK_LAYER_MEDIA_TYPE
OCI layer media type containing exact .tuffpack bytes.

Functions§

list_pack_versions
List the tags published under a pack’s repository.
normalize_pack_repository
Normalize an arbitrary OCI reference into its repository form (“registry/repository”, no tag), so it can be recorded once and re-queried for available tags later without a pinned tag going stale.
pull_pack
Pulls one OCI-distributed pack, verifies both OCI and Tuff integrity, and persists it atomically.
push_pack
Publishes one verified .tuffpack artifact under an explicit OCI tag.
resolve_pack_tag
Resolves a tag (or digest) reference to the pack it currently names.