Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Artifact types CycloneDXArtifactType = "application/vnd.cyclonedx+json" SPDXArtifactType = "application/spdx+json" // Sigstore bundle artifact type for Cosign attestations in "new bundle format" > 2.5.0 SigstoreBundleArtifactType = "application/vnd.dev.sigstore.bundle.v0.3+json" // Media types OCIImageManifest = "application/vnd.oci.image.manifest.v1+json" )
Variables ¶
View Source
var SupportedSBOMArtifactTypes = []string{ CycloneDXArtifactType, SPDXArtifactType, SigstoreBundleArtifactType, }
Functions ¶
This section is empty.
Types ¶
type Artifact ¶
type Artifact struct {
// For OCI registries
types.RegistryOptions
// contains filtered or unexported fields
}
Artifact is used to download artifacts such as vulnerability database and policies from OCI registries.
func NewArtifact ¶
func NewArtifact(repo string, registryOpt types.RegistryOptions, opts ...Option) *Artifact
NewArtifact returns a new artifact
type Artifacts ¶ added in v0.56.0
type Artifacts []*Artifact
func NewArtifacts ¶ added in v0.56.0
NewArtifacts returns a slice of artifacts.
type DownloadOption ¶ added in v0.39.0
Click to show internal directories.
Click to hide internal directories.