Documentation ¶
Overview ¶
Copyright 2022 VMware, Inc. SPDX-License-Identifier: Apache-2.0
Index ¶
Constants ¶
View Source
const ( // DataTypeVulnerability defines a kind for vulnerability. DataTypeVulnerability = "vulnerability" // DataVersionVulnerability defines version of the vulnerability data scheme. DataVersionVulnerability = "v1.1" // DataSchemeVulnerability defines the data scheme used for storing and parsing. DataSchemeVulnerability = "application/vnd.security.vulnerability.report; version=1.1" )
Variables ¶
View Source
var ( // ErrorArtifactNotFound represents whether error not found. ErrorArtifactNotFound = errors.New("artifact not found") )
Functions ¶
func IsArtifactNotFoundError ¶
IsArtifactNotFoundError checks error whether artifact not found.
Types ¶
type ArtifactID ¶
type ArtifactID struct {
// contains filtered or unexported fields
}
ArtifactID is used to identify the artifact. Use imageID format in the container status. E.g: ghcr.io/goharbor/harbor-core@sha256:45dad4ee4e982ed42ec29b678321cde66dc30542612044b672082bf1d5a28d7e
func ParseArtifactIDFrom ¶
func ParseArtifactIDFrom(image, imageID string) ArtifactID
ParseArtifactIDFrom parse artifact ID from the image and imageID fields of the pod container.
func (ArtifactID) Namespace ¶
func (a ArtifactID) Namespace() string
Namespace or project of the artifact.
Click to show internal directories.
Click to hide internal directories.