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, quiet bool, registryOpt types.RegistryOptions, opts ...Option) (*Artifact, error)
NewArtifact returns a new artifact
type DownloadOption ¶
Click to show internal directories.
Click to hide internal directories.