Skip to main content

push_pack

Function push_pack 

Source
pub async fn push_pack(
    artifact_path: &Path,
    reference: &str,
    force: bool,
    options: &OciTransferOptions,
) -> Result<OciPushResult>
Expand description

Publishes one verified .tuffpack artifact under an explicit OCI tag.

The existing tag is treated as immutable unless force is true. Publishing the exact same manifest is idempotent and returns OciPushStatus::Unchanged.

ยงErrors

Returns an error for an invalid artifact or reference, credential and TLS failures, a conflicting tag, registry protocol failures, or a digest mismatch after publication.