Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Artifact types CycloneDXArtifactType = "application/vnd.cyclonedx+json" SPDXArtifactType = "application/spdx+json" // Media types OCIImageManifest = "application/vnd.oci.image.manifest.v1+json" )
Variables ¶
View Source
var SupportedSBOMArtifactTypes = []string{ CycloneDXArtifactType, SPDXArtifactType, }
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.