Documentation
¶
Overview ¶
Package artifact provides neutral bundle archive assertions for tests.
Index ¶
- Constants
- type Entries
- func (e Entries) BlobPaths() map[string]struct{}
- func (e Entries) HasLayer(title string) (bool, error)
- func (e Entries) HasLayerInArtifact(title, artifactType string) (bool, error)
- func (e Entries) LayerInArtifact(title, artifactType string) ([]byte, error)
- func (e Entries) PackageManifestDigests() (map[string]struct{}, error)
Constants ¶
View Source
const BundleDefinitionMediaType = "application/vnd.defenseunicorns.uds.bundle.definition.v1"
BundleDefinitionMediaType identifies bundle-definition manifests (ADR-0007).
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entries ¶
Entries contains every archive path and the contents of entries small enough to contain OCI indexes and manifests.
func (Entries) HasLayer ¶
HasLayer reports whether an OCI manifest has a titled layer whose blob exists.
func (Entries) HasLayerInArtifact ¶
HasLayerInArtifact reports whether an OCI artifact manifest has a titled layer whose blob exists.
func (Entries) LayerInArtifact ¶
LayerInArtifact returns a titled layer from a manifest of the given artifact type.
func (Entries) PackageManifestDigests ¶
PackageManifestDigests returns all non-definition manifest digests.
Click to show internal directories.
Click to hide internal directories.