pub struct BundleParts<'a> {
pub oci_reference: &'a str,
pub oci_digest: &'a str,
pub manifest_bytes: &'a [u8],
pub config_bytes: &'a [u8],
pub config: &'a ArtifactBlobConfig,
pub signatures: &'a [BundleSignatureMaterial],
pub layers: &'a [BundleLayer<'a>],
}Expand description
Everything a bundle tar is assembled from.
The signed artifact’s raw manifest and config bytes (stored verbatim so the CLI can re-hash them against the cosign payload), the signature materials, and every layer’s stored bytes in manifest order.
Fields§
§oci_reference: &'a strCanonical stow reference of the signed artifact.
oci_digest: &'a strManifest digest of the signed artifact.
manifest_bytes: &'a [u8]The OCI manifest bytes exactly as the registry stores them.
config_bytes: &'a [u8]The OCI config bytes exactly as the registry stores them.
config: &'a ArtifactBlobConfigThe parsed config — config_bytes decoded.
signatures: &'a [BundleSignatureMaterial]Signature materials in signature-image layer order.
layers: &'a [BundleLayer<'a>]Layer payloads in manifest order: the config’s outputs, then the
native archive when the config declares one. Each entry is the layer’s
stored (zstd) bytes; the media type is the file’s storage media type.
Trait Implementations§
Source§impl<'a> Clone for BundleParts<'a>
impl<'a> Clone for BundleParts<'a>
Auto Trait Implementations§
impl<'a> Freeze for BundleParts<'a>
impl<'a> RefUnwindSafe for BundleParts<'a>
impl<'a> Send for BundleParts<'a>
impl<'a> Sync for BundleParts<'a>
impl<'a> Unpin for BundleParts<'a>
impl<'a> UnsafeUnpin for BundleParts<'a>
impl<'a> UnwindSafe for BundleParts<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more