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 ¶
type Artifacts []*Artifact
func NewArtifacts ¶
NewArtifacts returns a slice of artifacts.
type DownloadOption ¶
Click to show internal directories.
Click to hide internal directories.